uec-query-builds python trace on bad usage or no-builds

Bug #559236 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-utils (Ubuntu)
Fix Released
Low
Scott Moser

Bug Description

Binary package hint: cloud-utils

In 2 cases of uec-query-builds usage, the user gets a python trace. Possibly more annoyingly, they get a apport crash dialog as a result:

$ uec-query-builds is-update-available --build-name server --suite lucid
Traceback (most recent call last):
  File "/usr/bin/uec-query-builds", line 217, in <module>
    main()
  File "/usr/bin/uec-query-builds", line 191, in main
    ( "stream", "base_url", "build_name", "suite", "serial" ))
  File "/usr/bin/uec-query-builds", line 75, in checkopts
    raise Exception("must provide argument for %s" % f)
Exception: must provide argument for serial

$ uec-query-builds is-update-available --build-name desktop --suite lucid --serial 20100401
Traceback (most recent call last):
  File "/usr/bin/uec-query-builds", line 217, in <module>
    main()
  File "/usr/bin/uec-query-builds", line 200, in main
    result=result[0]
IndexError: list index out of range

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: cloud-utils 0.10-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic x86_64
Architecture: amd64
Date: Fri Apr 9 09:34:20 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: cloud-utils

Revision history for this message
Scott Moser (smoser) wrote :
Changed in cloud-utils (Ubuntu):
status: New → In Progress
Scott Moser (smoser)
Changed in cloud-utils (Ubuntu):
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-utils - 0.11-0ubuntu1

---------------
cloud-utils (0.11-0ubuntu1) lucid; urgency=low

  * uec-query-builds: do not throw IndexError on no builds available,
    or Exception on bad usage, LP: #559236
  * uec-publish-image: remove error trailing '%s' in error message,
    LP: #559244
  * uec-publish-tarball: send stdout through on failure of uec-publish-image,
    LP: #559244
 -- Scott Moser <email address hidden> Fri, 09 Apr 2010 10:03:29 -0400

Changed in cloud-utils (Ubuntu):
status: In Progress → 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.