← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2015241] Re: "pro attach" tries to enable livepatch on non-amd64 LTSs and fails

 

This bug was fixed in the package ubuntu-advantage-tools - 27.14.4

---------------
ubuntu-advantage-tools (27.14.4) lunar; urgency=medium

  * timer: disable update_contract_info job (LP: #2015302)
  * livepatch: prevent livepatch from auto-enabling and subsequently failing
    on non-amd64 systems (LP: #2015241)

 -- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx>  Tue, 04 Apr 2023
17:56:07 -0300

** Changed in: ubuntu-advantage-tools (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2015241

Title:
  "pro attach" tries to enable livepatch on non-amd64 LTSs and fails

Status in ubuntu-advantage-tools package in Ubuntu:
  Fix Released
Status in ubuntu-advantage-tools source package in Xenial:
  New
Status in ubuntu-advantage-tools source package in Bionic:
  New
Status in ubuntu-advantage-tools source package in Focal:
  New
Status in ubuntu-advantage-tools source package in Jammy:
  New

Bug description:
  [ Impact ]
  `pro attach` fails on non-amd64 systems because it attempts to enable livepatch, which is only built for amd64, and errors.

  The fix is to honor the existing "architecture" affordance which
  specifies which architectures livepatch can be enabled on.

  [ Test Plan ]
  `pro attach` on an arm64 system.

  Before the fix, it will fail while enabling Livepatch.

  After the fix, it will not attempt to enable livepatch.

  [ Where problems could occur ]
  The affordance checking code now runs before enabling livepatch. This is well-tested, but if there is an error, then the bug could reoccur in some situation.
  More likely, is that we forget to add a supported architecture to the list of supported architectures in the future - which would prevent livepatch from getting enabled on that future supported architecture.

  [ Other Info ]
  This bug occurred because we were relaxing our affordance checking before enabling livepatch - in order to allow livepatch client to be the source of truth for whether a certain kernel is supported or not. This is generally good and works for kernel versions and flavors, but interim releases and non-amd64 architectures are not supported at all, so they need to be treated specially.

  [ Original Description ]
  27.14.3 on jammy arm64:
  ubuntu@j-uat:~$ sudo pro attach <redacted>
  Enabling default service esm-apps
  Updating package lists
  Ubuntu Pro: ESM Apps enabled
  Enabling default service esm-infra
  Updating package lists
  Ubuntu Pro: ESM Infra enabled
  Enabling default service livepatch
  Installing canonical-livepatch snap
  Stderr: error: snap "canonical-livepatch" is not available on latest/stable but other
         tracks exist.

         Please be mindful that different tracks may include different features.
         Get more information with 'snap info canonical-livepatch'.

  Stdout:
  Stderr: error: snap "canonical-livepatch" is not available on latest/stable but other
         tracks exist.

         Please be mindful that different tracks may include different features.
         Get more information with 'snap info canonical-livepatch'.

  Stdout:
  Stderr: error: snap "canonical-livepatch" is not available on latest/stable but other
         tracks exist.

         Please be mindful that different tracks may include different features.
         Get more information with 'snap info canonical-livepatch'.

  Stdout:
  Stderr: error: snap "canonical-livepatch" is not available on latest/stable but other
         tracks exist.

         Please be mindful that different tracks may include different features.
         Get more information with 'snap info canonical-livepatch'.

  Stdout:
  Failed to enable default services, check: sudo pro status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2015241/+subscriptions