[Bug 2009808] Re: Doesn't display the correct livepatch service status

Grant Orndorff 2009808 at bugs.launchpad.net
Fri Mar 10 15:41:58 UTC 2023


Hi Nathan,

I suggest that if you see "status" == "warning" then look at the
"warning.code" field. That will be a short string unique to the warning
situation that won't change. It will be different for different warnings
in the future, though currently the only warning is the one presented in
my comment above.

So I suggest you keep a translatable string for each known
"warning.code" and look up that string based on the code field.

If you don't have a string for a certain code, then you can fallback to
"warning.message" (or "description_override" if it exists) as you see
fit. These will always be english but at least will be human readable
strings for the situation.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/2009808

Title:
  Doesn't display the correct livepatch service status

Status in software-properties package in Ubuntu:
  Triaged
Status in ubuntu-advantage-tools package in Ubuntu:
  In Progress

Bug description:
  Starting a focal VM which didn't get updated the livepatch icon in the
  panel shows an orange warning and the popdown display a string saying
  it hit an error fetching the status

  $ canonical-livepatch status
  last check: 58 seconds ago
  kernel: 5.15.0-56.62~20.04.1-generic
  server check-in: failed: livepatch check failed: unauthorized
  patch state: ✗ kernel version not supported

  
  The software-properties tab doesn't give any clue about that though, maybe it should?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2009808/+subscriptions




More information about the foundations-bugs mailing list