report availability of Ubuntu Advantage ESM services on unattached machines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Error messages emitted to software-
* This logic results in multiple `ua status` calls which each result in a network-egress to https:/
[Test Case]
1. Install latest version of software-
cat > setup_proposed.sh <<EOF
#!/bin/bash
mirror=http://
echo deb \$mirror \$(lsb_release -sc)-proposed main | tee /etc/apt/
apt-get update -q
apt-get install -qy software-
EOF
IP=`uvt-kvm ip ${DESKTOP_VM}`
scp setup_proposed.sh ubuntu@$IP:.
ssh ubuntu@$IP -- sudo bash ./setup_proposed.sh
2. run software-
ssh ubuntu@$IP -- software-
# Validate no error messages on launch
3. Click Updates tab and validate
Basic Security Maintenance "Extend..."
Active until 04/23/2025
(Extend.. is a link that will spawn a browser to ubuntu.
4. Click Cancel button
5. Attach to a UA contract and re-run Software and updates UX
ssh ubuntu@$IP -- sudo ua attach $MY_TOKEN
ssh ubuntu@$IP -- software-
# validate no error messages
6. Click Updates tab and validate:
Extended Security Maintenance
Active until 12/31/1999
# Note no "Extend..." text or link
[Where problems could occur]
* invalid parsing of UA contract information or missing /var/lib/
* failures and tracebacks in this code will result in invalid representation of system defaults in the Updates tab about whether or not a machine is attached to a contract or whether the contract is expired.
* Other than user-facing documentation about the state of the UA subscription this does not prevent the dialogs from functioning.
* limited network environments could have a delay of UX rendering due to `ua status` calls timing out on attempts to reach contracts.
[Original Description]
Release: bionic/focal
Version: 0.96.24.32 (bionic)
Issue:
Software & Updates GTK UI doesn't report availability of Ubuntu Advantage ESM Infra or ESM Apps services on unattached machines
Steps to repropduce:
Launch software-
See unexpected errors on the terminal
No ua status file written:
[Errno 2] No such file or directory: '/var/lib/
Navigation to the "Updates" tab
See only:
Basic Security Maintenance
04/26/2023
Expected results:
See no error messages on terminal
See a link to the right of Basic Security Maintenance on the "Updates" tab that points to ESM info
Basic Security Maintenance Extend...(links to ubuntu.
description: | updated |
Changed in software-properties (Ubuntu): | |
status: | New → Fix Committed |
description: | updated |
description: | updated |
description: | updated |
Changed in software-properties (Ubuntu Bionic): | |
status: | New → Fix Committed |
Hello Chad, or anyone else affected,
Accepted software-properties into impish-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ software- properties/ 0.99.13. 1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- impish to verification- done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- impish. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.