"effective kernel" status is misleading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch Charm |
Fix Released
|
Medium
|
Barry Price |
Bug Description
ksplice reported its patching status by means of a reported "effective kernel" version, and the livepatch charm parroted this reporting, but using the "kernel" field from "canonical-
ubuntu@
Linux juju-4da59b22-
ubuntu@
ii linux-image-
ubuntu@
02:08:04 up 82 days, 17:54, 2 users, load average: 5.46, 6.28, 6.70
ubuntu@
kernel: 4.4.0-79.
fully-patched: true
version: "29.1"
ubuntu@
The livepatch charm should probably switch to reporting these fields, and refer to the kernel, if at all, as "running kernel". My assumption is that fully-patched will change to "false" if livepatch has problems talking to the servers, but it may also be worth verifying this with livepatch upstream first.
Related branches
- Paul Gear (community): Approve
- Stuart Bishop (community): Approve
-
Diff: 171 lines (+54/-26)1 file modifiedreactive/canonical_livepatch.py (+54/-26)
Changed in canonical-livepatch-charm: | |
status: | Triaged → Fix Released |
That's a good spot, I guess we assumed the "kernel" status line was the equivalent of ksplice's "effective kernel" without ever confirming this.
I'm leaning towards a status output of something like "Kernel x.y-z is fully patched (version)", or "Kernel x.y.z is not fully patched (version)" depending on the value of 'fully-patched'...