euca-get-console-output fails if output not to a console [error: decode() argument 1 must be string, not None]

Bug #1266898 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
euca2ools (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Filed upstream as https://eucalyptus.atlassian.net/browse/TOOLS-407

If i redirect stdout of euca-get-console-output to a file or to a pipe, it fails with:
euca-get-console-output: error: decode() argument 1 must be string, not None

This is terribly unhelpful, as if I'm looking for console output, I most likely want to do something other than just read it manually (ie, search it or grep it).

$ dpkg-query --show euca2ools
euca2ools 3.0.2-1

$ IID=i-36874418
$ euca-get-console-output --region=us-east-1 $IID > /tmp/out
euca-get-console-output: error: decode() argument 1 must be string, not None
$ echo $?
1

$ euca-get-console-output --region=us-east-1 $IID | tee $IID.log
euca-get-console-output: error: decode() argument 1 must be string, not None
i-36874418
2014-01-07T19:25:52.000Z

$ euca-get-console-output --region=us-east-1 $IID
i-36874418
2014-01-07T19:25:52.000Z
Xen Minimal OS!
start_info: 0xac4000(VA)
nr_pages: 0x26700

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: euca2ools 3.0.2-1
ProcVersionSignature: Ubuntu 3.12.0-2.7-generic 3.12.0
Uname: Linux 3.12.0-2-generic x86_64
ApportVersion: 2.12.7-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jan 7 15:15:57 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-19 (811 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
SourcePackage: euca2ools
UpgradeStatus: Upgraded to trusty on 2013-05-20 (232 days ago)

Revision history for this message
Scott Moser (smoser) wrote :
Changed in euca2ools (Ubuntu):
status: New → Triaged
importance: Undecided → High
milestone: none → ubuntu-14.04
description: updated
Revision history for this message
Scott Moser (smoser) wrote :

Fix is fairly trivial, jsut avoid passing None to decode().

Revision history for this message
Scott Moser (smoser) wrote :

This could be fixed in ubuntu with the above patch, but we'll watch the upstream to see if we can avoid carrying delta in ubuntu over debian.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package euca2ools - 3.0.2-1ubuntu1

---------------
euca2ools (3.0.2-1ubuntu1) trusty; urgency=medium

  * fix euca-get-console-output when redirected to a file (LP: #1266898).
 -- Scott Moser <email address hidden> Wed, 08 Jan 2014 11:11:55 -0500

Changed in euca2ools (Ubuntu):
status: Triaged → 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.