← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2025731] Re: Unexpected error occurred by ua detach

 

This bug was fixed in the package ubuntu-advantage-tools - 29.4~23.04

---------------
ubuntu-advantage-tools (29.4~23.04) lunar; urgency=medium

  * Backport new upstream release: (LP: #2029144) to lunar

ubuntu-advantage-tools (29.4) mantic; urgency=medium

  * esm: remove static config file that pin packages from esm-infra
    and esm-apps

ubuntu-advantage-tools (29.3) mantic; urgency=medium

  * api: fix circular import that prevents enabled_services
    endpoint from being imported

ubuntu-advantage-tools (29.2) mantic; urgency=medium

  * d/ubuntu-advantage-tools.postinst:
    - replace deb-systemd-invoke back to systemctl
  * proxy: alert user if ca-certificates is not installed when using
    a TLS-in-TLS proxy

ubuntu-advantage-tools (29.1) mantic; urgency=medium

  * anbox: allow enabling service on container using the --access-only
flag

ubuntu-advantage-tools (29) mantic; urgency=medium

  * d/control:
    - update links for the project github page
  * d/copyright:
    - bump date to 2023
    - update upstream-name and source
  * d/ubuntu-advantage-tools.{postinst,postrm}:
    - rename repo GPG keys from -advantage to -pro (GH: #1539)
    - replace calls to systemctl for deb-systemd-invoke
  * d/README.source:
    - add file with basic explanation on the source code (GH: #2463)
  * New upstream release 29 (LP: #2029144)
    - anbox-cloud: add support for service
    - api
      + new endpoint: u.pro.security.fix.plan.cve.v1
      + new endpoint: u.pro.security.fix.plan.usn.v1
      + new endpoint: u.apt_news.current_news.v1
      + add more data explaining the decision made for
        u.pro.security.status.reboot_required.v1 endpoint
    - contract:
      + send activityInfo after cli attach, enable and disable
      + start recording when the machine has attached to a Pro subscription
      + more reliable detection when running on a docker container
    - esm: create static files to pin packages from esm-infra and esm-apps with
      higher priority (GH: #2580)
    - fix: ignore non-USN items on related usns
    - landscape: add support for the service
    - logging: update to ubuntupro logging namespace
    - proxy: add support for TLS-in-TLS proxy (LP: #1999909)
    - snapd: look for the snapd package instead of the snap command
    - system: try/except logic to remove files and folders (LP: #2025731)

 -- Lucas Moura <lucas.moura@xxxxxxxxxxxxx>  Mon, 11 Sep 2023 12:28:34
-0300

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

Title:
  Unexpected error occurred by ua detach

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 Lunar:
  Fix Released

Bug description:
  [ Impact ]
  Due to this race condition, user may seen unhanded exception when running a Pro command. Additionally, since the race condition is not obvious, users will be really confused on why the command failed in the first place

  [ Test Plan ]
  Because of the nature of this race condition, it is not straightforward to reproduce this issue. Our fix is basically trying to remove the file and handling the exception instead of checking if the file exists and then removing it. Since we call the function that generated this issue on several Pro commands that are covered in the integration test, we will assume that the full run will guarantee the we have not changed any behavior while addressing the race condition.

  [ Where problems could occur ]
  We don't believe any problems can occur here, as we are using a less error prone approach to deleting files in Python

  [ Original Description ]
  On Bionic, ua attach was successful, but a subsequent ua detach failed.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: ubuntu-advantage-tools 27.14.4~18.04
  ProcVersionSignature: Ubuntu 5.4.0-84.94~18.04.1-generic 5.4.133
  Uname: Linux 5.4.0-84-generic x86_64
  NonfreeKernelModules: lkp_Ubuntu_5_4_0_84_94_generic_94
  ApportVersion: 2.20.9-0ubuntu7.26
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Jul  4 10:12:41 2023
  InstallationDate: Installed on 2023-06-28 (5 days ago)
  InstallationMedia: Ubuntu 18.04.6 LTS "Bionic Beaver" - Release amd64 (20210915)
  SourcePackage: ubuntu-advantage-tools
  UpgradeStatus: No upgrade log present (probably fresh install)
  cloud-id.txt-error: Invalid command specified 'cloud-id'.
  livepatch-status.txt-error:
   Failed running command '/snap/bin/canonical-livepatch status' [exit(1)]. Message: Machine is not enabled. Please run 'sudo canonical-livepatch enable' with the
   token obtained from https://ubuntu.com/livepatch.
  uaclient.conf:
   contract_url: https://contracts.canonical.com
   log_level: debug
  ubuntu-advantage-timer.log:
   ["2023-06-30T12:59:12.159", "DEBUG", "__main__", "run", 51, "Running job: metering", {}]
   ["2023-06-30T12:59:12.162", "DEBUG", "__main__", "run", 51, "Running job: update_messaging", {}]

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