Prio: P4 — neither important nor urgent (the reboot flag and its reason already work; this adds detail).
HostStatusMixin.get_host_status() returns reboot_required and a reason string. parse_host_status already reads uname -r ([kernel]) and /lib/modules ([modules]) to decide "a newer kernel of the running flavour is installed" — and throws both away.
netOrk's graph source source.reboot_required (NetOrk/netork#1697) would like to show which kernel runs and which newest one is installed, without a second command (get_facts() is ~8 SSH commands, too heavy for a sample every minute) and without parsing the English reason text.
Proposal: add optional running_kernel: str | None and newest_kernel: str | None to HostStatusDict, filled from the sections parse_host_status already has; drivers that override get_host_status (e.g. OPNsense) leave them None. netOrk then bumps the pin and exposes them as outputs.
Prio: P4 — neither important nor urgent (the reboot flag and its reason already work; this adds detail).
`HostStatusMixin.get_host_status()` returns `reboot_required` and a reason string. `parse_host_status` already reads `uname -r` (`[kernel]`) and `/lib/modules` (`[modules]`) to decide "a newer kernel of the running flavour is installed" — and throws both away.
netOrk's graph source `source.reboot_required` (NetOrk/netork#1697) would like to show **which** kernel runs and which newest one is installed, without a second command (`get_facts()` is ~8 SSH commands, too heavy for a sample every minute) and without parsing the English reason text.
**Proposal:** add optional `running_kernel: str | None` and `newest_kernel: str | None` to `HostStatusDict`, filled from the sections `parse_host_status` already has; drivers that override `get_host_status` (e.g. OPNsense) leave them `None`. netOrk then bumps the pin and exposes them as outputs.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Prio: P4 — neither important nor urgent (the reboot flag and its reason already work; this adds detail).
HostStatusMixin.get_host_status()returnsreboot_requiredand a reason string.parse_host_statusalready readsuname -r([kernel]) and/lib/modules([modules]) to decide "a newer kernel of the running flavour is installed" — and throws both away.netOrk's graph source
source.reboot_required(NetOrk/netork#1697) would like to show which kernel runs and which newest one is installed, without a second command (get_facts()is ~8 SSH commands, too heavy for a sample every minute) and without parsing the English reason text.Proposal: add optional
running_kernel: str | Noneandnewest_kernel: str | NonetoHostStatusDict, filled from the sectionsparse_host_statusalready has; drivers that overrideget_host_status(e.g. OPNsense) leave themNone. netOrk then bumps the pin and exposes them as outputs.