@astrofoundry/pi-astro 0.40.43 → 0.40.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -638,21 +638,22 @@ class Bridge {
|
|
|
638
638
|
if (present.has("backup")) areas.push((async () => backupStatus(await json("backup", ["vzdump-archives"]), await text("backup", ["restic-check-status"]), Date.now()))());
|
|
639
639
|
if (present.has("edge")) areas.push((async () => edgeStatus(await text("edge", ["vps", "status"]), await text("edge", ["vps", "updates"])))());
|
|
640
640
|
if (present.has("proxmox")) {
|
|
641
|
+
const proxmox = (async () => {
|
|
642
|
+
const hosts: ProxmoxHost[] = [];
|
|
643
|
+
for (const h of PROXMOX_HOSTS) {
|
|
644
|
+
const before = await text("proxmox", [...h.prefix, "updates"]);
|
|
645
|
+
// Host packages install on their own; a new Proxmox VE major is held by the entry script for the owner.
|
|
646
|
+
const upgrade = before !== null && pendingPackageLines(before).length > 0 ? await this.runEntry("proxmox", AUTO_CALLER, [...h.prefix, "host-upgrade"], HOST_UPGRADE_MS).catch((err) => (log(`daily: ${h.name} host-upgrade failed: ${err instanceof Error ? err.message : String(err)}`), null)) : undefined;
|
|
647
|
+
const updates = upgrade === undefined ? before : await text("proxmox", [...h.prefix, "updates"]);
|
|
648
|
+
hosts.push({ name: h.name, id: h.id, status: await text("proxmox", [...h.prefix, "host-status"]), updates, upgrade });
|
|
649
|
+
}
|
|
650
|
+
return proxmoxStatus(hosts);
|
|
651
|
+
})();
|
|
652
|
+
areas.push(proxmox);
|
|
641
653
|
areas.push(
|
|
642
654
|
(async () => {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
const before = await text("proxmox", [...h.prefix, "updates"]);
|
|
646
|
-
// Host packages install on their own; a new Proxmox VE major is held by the entry script for the owner.
|
|
647
|
-
const upgrade = before !== null && pendingPackageLines(before).length > 0 ? await this.runEntry("proxmox", AUTO_CALLER, [...h.prefix, "host-upgrade"], HOST_UPGRADE_MS).catch((err) => (log(`daily: ${h.name} host-upgrade failed: ${err instanceof Error ? err.message : String(err)}`), null)) : undefined;
|
|
648
|
-
const updates = upgrade === undefined ? before : await text("proxmox", [...h.prefix, "updates"]);
|
|
649
|
-
hosts.push({ name: h.name, id: h.id, status: await text("proxmox", [...h.prefix, "host-status"]), updates, upgrade });
|
|
650
|
-
}
|
|
651
|
-
return proxmoxStatus(hosts);
|
|
652
|
-
})(),
|
|
653
|
-
);
|
|
654
|
-
areas.push(
|
|
655
|
-
(async () => {
|
|
655
|
+
// An upgrade of pve-cluster restarts it, and every guest read on that host fails meanwhile.
|
|
656
|
+
await proxmox;
|
|
656
657
|
const hosts: Record<string, string | null> = {};
|
|
657
658
|
// Guests one at a time: each call is an SSH session on the host.
|
|
658
659
|
for (const prefix of [[], ["space-x"]]) {
|