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

Bug #1700781 reported by Michael Eischer on 2017-06-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
High
Unassigned
update-manager (Ubuntu)
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)

Michael Eischer (eischer) wrote :
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
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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers