[Bug 1965138] Re: Desktop application should check for service available information before listing it
Robert Ancell
1965138 at bugs.launchpad.net
Wed Mar 16 22:10:05 UTC 2022
The following PR should hopefully fix this:
https://github.com/canonical/ubuntu-advantage-desktop-daemon/pull/14
** Changed in: software-properties (Ubuntu)
Assignee: (unassigned) => Robert Ancell (robert-ancell)
** Changed in: software-properties (Ubuntu)
Importance: Undecided => High
** Changed in: software-properties (Ubuntu)
Status: New => In Progress
** Package changed: software-properties (Ubuntu) => ubuntu-advantage-
desktop-daemon (Ubuntu)
** Changed in: ubuntu-advantage-desktop-daemon (Ubuntu)
Assignee: Robert Ancell (robert-ancell) => (unassigned)
--
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/1965138
Title:
Desktop application should check for service available information
before listing it
Status in ubuntu-advantage-desktop-daemon package in Ubuntu:
In Progress
Bug description:
Currently, it seems that software-properties is incorrectly assuming
that both ESM and Livepatch services can be enabled in a Jammy
machine. Those services are not yet available in Jammy and we are
attaching an image showing that the Desktop message is that we had an
error enabling then and that the user should try again.
It seems that software-proporties source `/var/lib/ubuntu-
advantage/status.json` and assumes the services is available if it
appears on the services list and the `entitled` field has the `yes`
value. However, it is perfectly possible for a service to be entitled
to an user, but not available in the user's machine.
We are now suggesting that software-properties also looks at the
`available` field in the services json output to make that assumption,
this will probably solve the issue we are seeing on Jammy.
Another approach would be using the output of `ua status --format
json` directly. However, this command will make a request to the
contract's server if the user is unattached and maybe it is not wise
to use it in that context. However, the output of that command only
show services that are available, so we would not need to apply that
extra available filter to it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-desktop-daemon/+bug/1965138/+subscriptions
More information about the foundations-bugs
mailing list