Public bug reported:

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.

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "jammy-desktop-error.png"
   
https://bugs.launchpad.net/bugs/1965138/+attachment/5569662/+files/jammy-desktop-error.png

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 software-properties package in Ubuntu:
  New

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/software-properties/+bug/1965138/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to