Add active tasks indicator, propagate LXC create errors, fix Fedora logo
- Surface a topbar indicator with a live count of active tasks - Propagate exceptions from Proxmox LXC container creation instead of swallowing them, and validate minimum password length - Replace the Fedora catalog icon with the official logo artwork
This commit is contained in:
@@ -721,23 +721,26 @@ def poc_install(db: Session, spec: InstallSpec, on_step: StepCb = _noop) -> Inst
|
||||
on_step(f"Создание LXC VMID {vmid} на ноде {node}...", 20)
|
||||
ip_cfg = spec.ip_config or "ip=dhcp"
|
||||
net0 = f"name=eth0,bridge={spec.bridge},{ip_cfg},firewall=1"
|
||||
upid = client.create_lxc_container(
|
||||
node=node,
|
||||
vmid=vmid,
|
||||
ostemplate=spec.ostemplate,
|
||||
hostname=spec.name,
|
||||
cores=spec.cores,
|
||||
memory=spec.memory,
|
||||
swap=spec.swap,
|
||||
storage=spec.storage,
|
||||
rootfs_size=spec.disk,
|
||||
net0=net0,
|
||||
features=spec.features, # nesting=1,keyctl=1 — критично для Docker
|
||||
unprivileged=True,
|
||||
start_after_create=False,
|
||||
description=f"pvemanager-appstore: {spec.name}",
|
||||
nameserver=spec.nameserver or settings.APPSTORE_NAMESERVER,
|
||||
)
|
||||
try:
|
||||
upid = client.create_lxc_container(
|
||||
node=node,
|
||||
vmid=vmid,
|
||||
ostemplate=spec.ostemplate,
|
||||
hostname=spec.name,
|
||||
cores=spec.cores,
|
||||
memory=spec.memory,
|
||||
swap=spec.swap,
|
||||
storage=spec.storage,
|
||||
rootfs_size=spec.disk,
|
||||
net0=net0,
|
||||
features=spec.features, # nesting=1,keyctl=1 — критично для Docker
|
||||
unprivileged=True,
|
||||
start_after_create=False,
|
||||
description=f"pvemanager-appstore: {spec.name}",
|
||||
nameserver=spec.nameserver or settings.APPSTORE_NAMESERVER,
|
||||
)
|
||||
except Exception as e:
|
||||
raise PocError(f"Ошибка создания контейнера: {e}") from e
|
||||
if not upid:
|
||||
raise PocError("Proxmox не вернул UPID создания контейнера")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user