uec-publish-tarball does not show errors from uec-publish-image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils (Ubuntu) |
Fix Released
|
Low
|
Scott Moser |
Bug Description
Binary package hint: cloud-utils
$ uec-publish-tarball mytar.tar.gz mybucket x86_64
The above will correctly exit with failure if one of the underlying calls to euca-* fails. However, it will not show the user the output of those euca tools. This is because uec-publish-tarball captures the stdout of the call to uec-publish-image (which calls euca tools). The stderr is correctly passed through. The problem is that the euca2ools are writing (some) errors to stdout rather than stdin. That stdout was being consumed and not sent to the user even on non zero exit
So, the work around here is to print uec-publish-image's output to the user when the call to uec-publish-image fails.
Also noticed here that the error message printed by uec-publish-image contains a trailing '%s' which just looks confusing.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: cloud-utils 0.10-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-19-generic x86_64
Architecture: amd64
Date: Fri Apr 9 09:34:35 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: cloud-utils
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, tarball: send stdout through on failure of uec-publish-image,
or Exception on bad usage, LP: #559236
* uec-publish-image: remove error trailing '%s' in error message,
LP: #559244
* uec-publish-
LP: #559244
-- Scott Moser <email address hidden> Fri, 09 Apr 2010 10:03:29 -0400