Public bug reported:

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)

** Affects: euca2ools (Ubuntu)
     Importance: High
         Status: Triaged


** Tags: amd64 apport-bug patch trusty

** Changed in: euca2ools (Ubuntu)
       Status: New => Triaged

** Changed in: euca2ools (Ubuntu)
   Importance: Undecided => High

** Changed in: euca2ools (Ubuntu)
    Milestone: None => ubuntu-14.04

** Description changed:

+ 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)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in Ubuntu.
https://bugs.launchpad.net/bugs/1266898

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/euca2ools/+bug/1266898/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to