2024-06-07 15:44:21 |
Marco Trevisan (Treviño) |
bug |
|
|
added bug |
2024-06-07 15:44:21 |
Marco Trevisan (Treviño) |
attachment added |
|
ubuntu-pro.log https://bugs.launchpad.net/bugs/2068744/+attachment/5787199/+files/ubuntu-pro.log |
|
2024-06-07 16:12:00 |
Renan Rodrigo |
information type |
Private |
Public |
|
2024-06-07 16:24:07 |
Apport retracing service |
tags |
amd64 apport-bug jammy need-amd64-retrace wayland-session |
amd64 apport-bug jammy wayland-session |
|
2024-06-10 08:20:16 |
Renan Rodrigo |
ubuntu-advantage-tools (Ubuntu): status |
New |
Fix Committed |
|
2024-06-13 19:21:09 |
Renan Rodrigo |
description |
This is in 22.04
❯ ua status
An unexpected error occurred: list index out of range
For more details, see the log: /home/marco/.cache/ubuntu-pro/ubuntu-pro.log
If you think this is a bug, please run: ubuntu-bug ubuntu-advantage-tools
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 31.2.3~22.04
ProcVersionSignature: Ubuntu 6.8.0-35.35-generic 6.8.4
Uname: Linux 6.8.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Jun 7 17:42:12 2024
InstallationDate: Installed on 2010-07-10 (5081 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: Upgraded to jammy on 2020-06-14 (1453 days ago)
cloud-id.txt-error: Invalid command specified 'cloud-id'.
jobs-status.json: {"metering": {"last_run": "2024-06-07T15:40:15.416242+00:00", "next_run": "2024-06-07T19:40:15.416242+00:00"}, "update_contract_info": null, "update_messaging": {"last_run": "2024-06-07T15:40:15.416242+00:00", "next_run": "2024-06-07T21:40:15.416242+00:00"}}
uaclient.conf:
contract_url: https://contracts.canonical.com
log_level: debug |
[ Impact ]
If `apt` is masked by other helper tools, such as `nala`, as seen in the original description, `apt list --installed` will return data in a different format. This will cause the Pro Client to fail to parse the data, and break.
The Pro Client should not be relying on CLI output when there are Python bindings available to perform the same task - and python3-apt provides ways to list installed packages.
The fix to this bug is to rely on the programmatic integration with APT instead of calling the CLI.
[ Test Plan ]
Listing installed packages is part of the regular operation of the Pro Client in many scenarios covered by the integration / acceptance tests.
For this particular issue:
- Launch a container for the release to be tested
- install nala
- alias `apt` to `nala` in the system
- see it fail
- install the package from -proposed
- see it does not fail anymore
[ Where problems could occur ]
Switching from the CLI call to python3-apt brings the risk of wrong implementation of the integration, which would lead to a different package list to be returned by python3-apt. The regression potential is mitigated by extensive testing - unit, integration and acceptance tests rely on this functionality.
[ Original description ]
This is in 22.04
❯ ua status
An unexpected error occurred: list index out of range
For more details, see the log: /home/marco/.cache/ubuntu-pro/ubuntu-pro.log
If you think this is a bug, please run: ubuntu-bug ubuntu-advantage-tools
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 31.2.3~22.04
ProcVersionSignature: Ubuntu 6.8.0-35.35-generic 6.8.4
Uname: Linux 6.8.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Jun 7 17:42:12 2024
InstallationDate: Installed on 2010-07-10 (5081 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: Upgraded to jammy on 2020-06-14 (1453 days ago)
cloud-id.txt-error: Invalid command specified 'cloud-id'.
jobs-status.json: {"metering": {"last_run": "2024-06-07T15:40:15.416242+00:00", "next_run": "2024-06-07T19:40:15.416242+00:00"}, "update_contract_info": null, "update_messaging": {"last_run": "2024-06-07T15:40:15.416242+00:00", "next_run": "2024-06-07T21:40:15.416242+00:00"}}
uaclient.conf:
contract_url: https://contracts.canonical.com
log_level: debug |
|
2024-07-05 00:05:45 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu): status |
Fix Committed |
Fix Released |
|
2024-07-08 11:29:08 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Noble): status |
New |
Fix Committed |
|
2024-07-08 11:29:09 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-07-08 11:29:13 |
Robie Basak |
bug |
|
|
added subscriber SRU Verification |
2024-07-08 11:29:15 |
Robie Basak |
tags |
amd64 apport-bug jammy wayland-session |
amd64 apport-bug jammy verification-needed verification-needed-noble wayland-session |
|
2024-07-08 11:33:21 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Jammy): status |
New |
Fix Committed |
|
2024-07-08 11:33:25 |
Robie Basak |
tags |
amd64 apport-bug jammy verification-needed verification-needed-noble wayland-session |
amd64 apport-bug jammy verification-needed verification-needed-jammy verification-needed-noble wayland-session |
|
2024-07-08 11:34:07 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Focal): status |
New |
Fix Committed |
|
2024-07-08 11:34:09 |
Robie Basak |
tags |
amd64 apport-bug jammy verification-needed verification-needed-jammy verification-needed-noble wayland-session |
amd64 apport-bug jammy verification-needed verification-needed-focal verification-needed-jammy verification-needed-noble wayland-session |
|
2024-07-08 11:34:56 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Bionic): status |
New |
Fix Committed |
|
2024-07-08 11:34:58 |
Robie Basak |
tags |
amd64 apport-bug jammy verification-needed verification-needed-focal verification-needed-jammy verification-needed-noble wayland-session |
amd64 apport-bug jammy verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-noble wayland-session |
|
2024-07-08 11:35:57 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Xenial): status |
New |
Fix Committed |
|
2024-07-08 11:36:00 |
Robie Basak |
tags |
amd64 apport-bug jammy verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-noble wayland-session |
amd64 apport-bug jammy verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-noble verification-needed-xenial wayland-session |
|