apport's "is ec2 instance" check is out of date

Bug #525003 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt
Lucid
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

apport's code to determine "is this an ec2 instance" looks like:
./data/general-hooks/ubuntu.py
| ec2_instance = False
| try:
| if apport.packaging.get_version('ec2-init'):
| ec2_instance = True

The above is out of date, cloud-init has replaced ec2-init.

I'd suggest, for backwards compatibility:

if apport.packaging.get_version('ec2-init') or
   apport.packaging.get_version('cloud-init'):

ProblemType: Bug
Architecture: i386
Date: Sat Feb 20 19:02:55 2010
DistroRelease: Ubuntu 10.04
Package: apport 1.12-0ubuntu5
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: User Name 2.6.32-302.6-ec2
SourcePackage: apport
Uname: Linux 2.6.32-302-ec2 i686

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Scott Moser (smoser)
Changed in apport (Ubuntu):
importance: Undecided → Medium
milestone: none → ubuntu-10.04-beta-1
Revision history for this message
Scott Moser (smoser) wrote :

I've requested a merge of the linked branch to fix this.

Scott Moser (smoser)
Changed in apport (Ubuntu Lucid):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

I applied the patch manually, since you based off the wrong branch (please use the Vcs-Bzr: one, with "debcheckout apport").

Thanks! Will upload this soon.

Changed in apport (Ubuntu Lucid):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.12.1-0ubuntu2

---------------
apport (1.12.1-0ubuntu2) lucid; urgency=low

  [ Leann Ogasawara ]
  * data/package-hooks/source_linux.py: Prevent filing bugs against
    linux-meta. Use the linux package instead. (LP: #526787)

  [ Scott Moser ]
  * data/general-hooks/ubuntu.py: Update "is ec2 instance" logic for lucid uec
    images. (LP: #525003)
 -- Martin Pitt <email address hidden> Thu, 25 Feb 2010 19:06:39 +0100

Changed in apport (Ubuntu Lucid):
status: Fix Committed → 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.