ubuntu-support-status fails with exception if using libvirt from the ocata cloud-archive

Bug #1700781 reported by Michael Eischer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
Fix Released
High
Unassigned
update-manager (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Setps to reproduce:
1. Use Ubuntu 16.04.2 LTS
2. Add Cloud-Archive for Ocata: sudo add-apt-repository cloud-archive:ocata
3. Install libvirt-clients: sudo apt-get install libvirt-clients
4. Run ubuntu-support-status

Expected result:
List of support durations for the installed packages

Actual result:
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 135, in <module>
    pkg.name, support_tag)
  File "/usr/bin/ubuntu-support-status", line 45, in get_maintenance_status
    raise Exception("No Release file found for %s" % pkgname)
Exception: No Release file found for libvirt-clients

By Digging through the source code I've found out that the cloud-archive packages have a "Supported: 48m" field and are therefore considered by the release check but the package list is ignored as its origin and label are != "Ubuntu". Packages which have an equivalent in the standard ubuntu package sources silently fallback to the standard package. However, there is no equivalent for libvirt-clients and therefore ubuntu-support-status breaks.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libvirt-clients 2.5.0-3ubuntu5~cloud0 [origin: Canonical]
ProcVersionSignature: Ubuntu 4.4.0-81.104-generic 4.4.67
Uname: Linux 4.4.0-81-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CrashDB:
 {
                "impl": "launchpad",
                "project": "cloud-archive",
                "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
             }
Date: Tue Jun 27 17:46:50 2017
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michael Eischer (eischer) wrote :
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Michael,

Thanks for reporting this. I'm seeing the same behavior. It looks like the ubuntu-support-status command from the update-manager package will need some updates to better handle cloud-archive packages.

Corey

Changed in update-manager (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Also marking this as high for cloud-archive even though it really isn't a cloud-archive issue. Appears to be an update-manager package issue.

Changed in cloud-archive:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

It looks like that has been fixed sometime in the last two and a half years as I cannot reproduce this error:

root@test:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
root@test:~# apt-cache policy libvirt-clients
libvirt-clients:
  Installed: 2.5.0-3ubuntu5.6~cloud3
  Candidate: 2.5.0-3ubuntu5.6~cloud3
  Version table:
 *** 2.5.0-3ubuntu5.6~cloud3 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata/main amd64 Packages
        100 /var/lib/dpkg/status
root@test:~# ubuntu-support-status
Support status summary of 'test':

You have 435 packages (97.3%) supported until April 2021 (Canonical - 5y)

You have 0 packages (0.0%) that can not/no-longer be downloaded
You have 12 packages (2.7%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
root@test:~# ubuntu-support-status --list | grep libvirt
libvirt-clients Unsupported
libvirt0 Unsupported

Changed in cloud-archive:
status: Triaged → Won't Fix
Changed in update-manager (Ubuntu):
status: Triaged → Fix Released
Changed in cloud-archive:
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.