← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2012735] Re: update-manager crashed with uaclient.exceptions.UserFacingError in get_lscpu_arch()

 

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

---------------
ubuntu-advantage-tools (27.14.4~16.04) xenial; urgency=medium

  * Backport new upstream release: (LP: #2011477) to xenial

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)

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

  * livepatch: prevent livepatch from auto-enabling and subsequently failing
    on interim releases (LP: #2013409)

ubuntu-advantage-tools (27.14.2~23.04.1) lunar; urgency=medium

  * status:
    - always use dpkg instead of lscpu for fetching architecture
      information (LP: #2012735)

ubuntu-advantage-tools (27.14.1~23.04.1) lunar; urgency=medium

  * New upstream release 27.14.1
    - apt: fix a configuration leak in the apt.get_pkg_candidate_version
      function (LP: #2012642)

ubuntu-advantage-tools (27.14~23.04.1) lunar; urgency=medium

  * d/ubuntu-advantage-tools.{postinst,postrm,preinst}:
    - migrate certain settings out of uaclient.conf to a new file managed by
      the pro config subcommand (LP: #2004280)
  * d/ubuntu-advantage-tools.postinst:
    - refactor PREVIOUS_PKG_VER as a global variable
    - simplify how we add notices
  * New upstream release 27.14 (LP: #2011477)
    - api: new u.unattended_upgrades.status.v1 endpoint for querying status of
      unattended upgrades
    - apt:
      + remove legacy apt-hook
      + deliver json apt-hook for interim releases
      + fix cloud identification logic in json apt-hook
      + make all calls to esm-cache isolated from system configuration
        (LP: #2008280)
      + only set up the esm cache on supported systems (LP: #2004018)
    - fix:
      + format the output to be more readable (LP: #1926182)
      + add option to attach during a fix without a token
      + verify if fixed version can be installed before trying (LP: #2006705)
    - livepatch: show warning if current kernel is not supported
    - locks: alert user about corrupted lock files (LP: #1996931)
    - logging: logs are now formatted as jsonlines
    - motd: remove esm-apps announcement
    - notices: new representation on disk as separate files (LP: #1987738)
    - realtime: remove ubuntu-realtime package on disablement
    - status:
      + removed contract info update check network call
      + no longer includes warnings about notices when non-root (LP: #2006138)
      + unattached status sends virt type to contract server for better
        resource availability calculation
    - timer jobs: add daily job to check for contract updates
    - yaml: always import distro-provided pyyaml (LP: #2007234, LP: #2007241)

 -- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx>  Thu, 06 Apr 2023
10:50:05 -0300

** Changed in: ubuntu-advantage-tools (Ubuntu Xenial)
       Status: Fix Committed => 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/2012735

Title:
  update-manager crashed with uaclient.exceptions.UserFacingError in
  get_lscpu_arch()

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

Bug description:
  [Impact]
  This will impact all of users that want to run pro status and also any other tool that is depending on the status command through the CLI or through the code itself.

  On pro status, users will see the following message:
  Failed to parse architecture from output of lscpu

  And update-manager will break as reported here.

  [Test Case]
  1. Launch a lunar container
  2. Update the Pro Client to 27.13.6
  3. Install the language-pack-fr-base package
  4. Run update-locale LANG=fr_FR.UTF-8
  5. Reboot
  6. Run pro status and confirm the error message
  7. Install the new version of the Pro Client
  8. Confirm that pro status no longer breaks

  [Regression Potential]
  We are no longer relying on lscpu, but on dpkg --print-architecture now.
  Since we have used this command for other architecture related flows, we believe the dpkg command is stable enough to not cause regressions.

  We are also confident in that because the command is being replaced in
  two distinct functions:

  * enabled_warning_status

  This function is responsible for just saying a warning message if the
  user does not have a support livepatch kernel. The message is as
  follows:

  The current kernel (KERNEL_VERSION, ARCH) is not supported by
  livepatch.

  Since we are also introducing that message on this releases, changes from
  x86_64 to amd64 will not matter that much to the user.

  * on_supported_kernel

  Here we check the Livepatch API to see that we are running on a
  supported kernel. However, before we send the architecture information
  to the API, we make the following normalization:

      "x86_64" -> "amd64",
      "i686" -> "i386",
      "ppc64le" -> "ppc64el",
      "aarch64" -> "arm64",
      "armv7l" -> "armhf",

  The name on the right is consistent with the output of dpkg --print-
  architecture. Therefore, we should not see any change there as well.

  [Discussion]
  The status function from the Pro Client is now relying in the output of lscpu to fetch architecture information for Livepatch. However, the user might be using a locale on their system that changes the output of
  lscpu causing our code to fail and raise an Exception.

  Our planned release will only fix that specific bug. We are fixing it
  by relying on dpkg --print-architecture. This command is already used
  in other parts of the package and is not affected by the user's
  locale.

  [Changelog]

    * status:
      - always use dpkg instead of lscpu for fetching architecture
        information (LP: #2012735)

  [Proposed MP]
  We are addressing this bug fix on this MP here:
  https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/439855

  [Original Description]
  do nothing and crash

  ProblemType: Crash
  DistroRelease: Ubuntu 23.04
  Package: update-manager 1:23.04.1
  ProcVersionSignature: Ubuntu 6.2.0-18.18-generic 6.2.6
  Uname: Linux 6.2.0-18-generic x86_64
  ApportVersion: 2.26.0-0ubuntu2
  Aptdaemon:

  Architecture: amd64
  CasperMD5CheckResult: unknown
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Mar 24 15:15:28 2023
  ExecutablePath: /usr/bin/update-manager
  GsettingsChanges:
   b'com.ubuntu.update-manager' b'launch-count' b'1'
   b'com.ubuntu.update-manager' b'launch-time' b'int64 1679663727'
  InstallationDate: Installed on 2023-03-24 (0 days ago)
  InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20230324)
  InterpreterPath: /usr/bin/python3.11
  JournalErrors: бер 24 15:15:33 hostname gnome-control-c[2657]: Extension tiling-assistant@xxxxxxxxxx is not available or invalid (state 99)
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map
  ProcEnviron:
   LANG=uk_UA.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
  Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
  PythonArgs: ['/usr/bin/update-manager', '--no-update', '--no-focus-on-map']
  PythonDetails: N/A
  SourcePackage: update-manager
  Title: update-manager crashed with uaclient.exceptions.UserFacingError in get_lscpu_arch()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sudo users

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