feat: report where an update comes from and whether it is a security fix, refresh the index, read the host status #9

Merged
christianmanivong merged 1 commits from feat/update-origin-host-status into master 2026-10-05 22:20:09 +00:00
Owner

For netOrk MVP 5. Builds on NAPALM/napalm-device-types#6 (2.3.0).

Live check (PVE 9, pve-dual): 15 pending updates came back through apt, with origin=stable (Ceph from the Proxmox repo, not security-relevant). The host status reported no reboot needed. The APT API names only an Origin (Proxmox/Debian), which is why it now serves only as the fallback.

$ PYTHONPATH=.:../napalm-device-types pytest -q tests
288 passed

ruff and mypy report nothing new against master: the new attr-defined notices are the same kind the mixin already has 47 of.

For netOrk MVP 5. Builds on NAPALM/napalm-device-types#6 (2.3.0). **Live check (PVE 9, pve-dual):** 15 pending updates came back through apt, with `origin=stable` (Ceph from the Proxmox repo, not security-relevant). The host status reported no reboot needed. The APT API names only an Origin (`Proxmox`/`Debian`), which is why it now serves only as the fallback. ``` $ PYTHONPATH=.:../napalm-device-types pytest -q tests 288 passed ``` ruff and mypy report nothing new against `master`: the new `attr-defined` notices are the same kind the mixin already has 47 of.
christianmanivong added 1 commit 2026-10-05 22:20:09 +00:00
For netOrk MVP 5, on napalm-device-types 2.3.0:

- get_available_updates reads `apt list --upgradable` over the exec path
  (APT_UPGRADABLE_COMMAND), so each update carries its suite and security
  status; the APT API, which names only "Debian"/"Proxmox", is the fallback
  with security unknown. It raises when neither answers instead of returning
  [] -- it used to swallow every error.
- refresh_available_updates(): POST nodes/{n}/apt/update.
- HostStatusMixin over the exec path (reboot required, self-patching).
christianmanivong merged commit 222cd45c66 into master 2026-10-05 22:20:09 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-proxmox#9