← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1996931] Re: pro cli errors on corrupted lock file

 

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

---------------
ubuntu-advantage-tools (27.14.4~18.04) bionic; urgency=medium

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

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:49:20 -0300

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

** Changed in: ubuntu-advantage-tools (Ubuntu Focal)
       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/1996931

Title:
  pro cli errors on corrupted lock file

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]
  In some scenarios, the system could end up with a corrupted pro-client lock file. In that case the pro client would fail without a useful error message.

  The fix is to provide a helpful error message in this situation so
  that the user can remove the corrupt lock file and retry the
  operation.

  [Test Case]
  This will be covered by our full test run for u-a-t 27.14.
  The specific test that covers this scenario can be inspected here:
  https://github.com/canonical/ubuntu-pro-client/blob/27.14/features/attached_enable.feature#L1235

  [Regression Potential]
  If we made an error in the python changes, then it could result in a new unhandled exception.

  We recommend the user to remove the corrupted lock file. If the lock
  file still represented a running pro process despite its corruption,
  then the user may end up running two pro processes at once that are
  both trying to make changes to the system. That would likely result in
  new errors.

  [Discussion]
  Corruption could either occur from an incomplete file write, or from interference from some other process. It seems highly unlikely that the process that needed the lock is still running if the lock file is corrupted.

  [Original Description]

  unbuntu-advantage charm on newly deployed juju stack is erroring out
  both on CLI and the json output to config-changed

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: ubuntu-advantage-tools 27.11.3~18.04.1
  ProcVersionSignature: Ubuntu 4.15.0-197.208-generic 4.15.18
  Uname: Linux 4.15.0-197-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.28
  Architecture: amd64
  Date: Thu Nov 17 18:26:55 2022
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: ubuntu-advantage-tools
  UpgradeStatus: No upgrade log present (probably fresh install)
  cloud-id.txt: ovf
  jobs-status.json: {"update_messaging": {"last_run": "2022-11-17T14:02:33.594345+00:00", "next_run": "2022-11-17T20:02:33.594345+00:00"}, "update_status": {"last_run": "2022-10-21T01:09:08+00:00", "next_run": "2022-10-21T13:09:08+00:00"}, "metering": {"last_run": "2022-10-21T01:09:08+00:00", "next_run": "2022-10-21T05:09:08+00:00"}}
  mtime.conffile..etc.ubuntu-advantage.uaclient.conf: 2022-10-05T01:23:50.950990
  ua-status.json-error: Failed running command 'pro status --format json' [exit(1)]. Message:

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