diff --git a/README.md b/README.md index 25e4f3d..ced82d6 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ fleet is running its newest kernel, has updates waiting, or needs a reboot. ingest API and a login-protected dashboard. You don't need pip, a venv or a build step. -Supported: agents on **Debian 12/13** and **Ubuntu 22.04/24.04 LTS**; server on +Supported: agents on **Debian 12/13** and **Ubuntu 22.04/24.04/26.04 LTS**; server on **Debian 12+** or **Ubuntu 22.04+** (the system `python3`, 3.10 or newer). ``` @@ -66,7 +66,8 @@ How the agent works it out: - **Phased updates** (Ubuntu only): Ubuntu rolls some updates out gradually and holds them back from a share of machines at first. apt doesn't offer these to the host yet, so they aren't counted as available updates. They appear as - `+N phased` in the Updates column, with the package list on the host page. + their own Phased column (hover for the packages, `–` on Debian), with the + list also on the host page. They never affect status, because Ubuntu doesn't phase security updates and there's nothing to act on until apt offers them. - **Package list freshness**: the mtime of apt's update stamps. The agent diff --git a/agent/install.sh b/agent/install.sh index 85493dd..19dbeb0 100755 --- a/agent/install.sh +++ b/agent/install.sh @@ -36,7 +36,7 @@ done # shellcheck source=/dev/null . /etc/os-release case "$ID:$VERSION_ID" in -debian:12 | debian:13 | ubuntu:22.04 | ubuntu:24.04) ;; +debian:12 | debian:13 | ubuntu:22.04 | ubuntu:24.04 | ubuntu:26.04) ;; *) echo "warning: untested OS $PRETTY_NAME; continuing" >&2 ;; esac diff --git a/server/kernelwatch/__init__.py b/server/kernelwatch/__init__.py index 419fc53..54cddf9 100644 --- a/server/kernelwatch/__init__.py +++ b/server/kernelwatch/__init__.py @@ -1,6 +1,6 @@ """kernelwatch: fleet kernel and reboot status dashboard.""" -__version__ = "0.3.0" +__version__ = "0.3.1" # Version of agent/kernelwatch-agent shipped alongside this server; older agents # are noted on the dashboard. tests/test_status.py checks the two stay in sync. diff --git a/server/kernelwatch/web.py b/server/kernelwatch/web.py index f2010b0..89c238d 100644 --- a/server/kernelwatch/web.py +++ b/server/kernelwatch/web.py @@ -84,6 +84,19 @@ def utc(ts: float | None) -> str: return time.strftime("%Y-%m-%d %H:%M:%S UTC", time.gmtime(ts)) if ts else "" +def phased_summary(report: dict[str, Any]) -> tuple[str, str]: + """(short cell text, full description) for updates deferred by Ubuntu's phasing.""" + if report.get("os_id") not in (None, "ubuntu"): + return "–", "this distribution doesn't phase updates" + pkgs = report.get("phased_packages") + if pkgs is None: + return "?", "unknown: agent too old to report phased updates" + if not pkgs: + return "0", "none deferred" + return str(len(pkgs)), ("held back by Ubuntu's phased rollout, not offered to this host " + "yet (never security updates): " + ", ".join(pkgs)) + + def services_summary(report: dict[str, Any]) -> tuple[str, str]: """(short cell text, full description) for services needing a restart.""" services = report.get("services_need_restart") @@ -407,7 +420,7 @@ class Handler(BaseHTTPRequestHandler): if not hosts else '
| Status | Host | OS | Running kernel | " - "Newest installed | Updates | Services | Uptime | Last seen | " + "Newest installed | Updates | Phased | Services | Uptime | Last seen | " "Details |
|---|
{e(r.get('kernel_running') or '–')}{e(r.get('kernel_newest_installed') or '–')}