euca-describe-volumes fails in lucid

Bug #517871 reported by Scott Moser
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Eucalyptus
Fix Released
Undecided
Unassigned
euca2ools (Ubuntu)
Fix Released
High
Neil Soman

Bug Description

Binary package hint: euca2ools

euca-describe-volumes fails in lucid right now, this is due to python-boto being at version 1.9 rather than 1.8.

Revision history for this message
Scott Moser (smoser) wrote :
Scott Moser (smoser)
Changed in euca2ools (Ubuntu):
milestone: none → lucid-alpha-3
Revision history for this message
Robert Collins (lifeless) wrote :

hasattr can swallow exceptions. I suggest

=== modified file 'bin/euca-describe-volumes'
--- bin/euca-describe-volumes 2009-10-12 09:11:57 +0000
+++ bin/euca-describe-volumes 2010-02-06 00:15:08 +0000
@@ -73,8 +73,11 @@
      volume_string += '\t%s' % (volume.snapshot_id)
  else:
      volume_string += '\t'
- if volume.availabilityZone:
- volume_string += '\t%s' % volume.availabilityZone
+
+ az = getattr(volume, 'availabilityZone', object)
+ if az is object: az=volume.zone
+ if az: volume_string += '\t%s' % az
+
  volume_string += '\t%s\t%s' % (volume.status, volume.create_time)
  print 'VOLUME\t%s' % (volume_string)
  if volume.status == 'in-use':

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Neil-

This bug is high priority, and targeted at Alpha3.

Any chance you could take a look at the suggested patch(es) and perhaps mangle one upstream?

Changed in euca2ools (Ubuntu):
assignee: nobody → Neil Soman (neilsoman)
tags: added: patch
Revision history for this message
Neil Soman (neilsoman) wrote :

Thanks for the patch. The main consideration was whether this breaks upstream compatibility with boto-1.8d, which is the version the upstream will stick with for euca2ools-1.2 and it does not seem to. I have applied it.

thanks
neil

------------------------------------------------------------
revno: 248
committer: Neil
branch nick: euca2ools-1.0
timestamp: Thu 2010-02-11 13:45:50 -0800
message:
  fixes LP: #517871
------------------------------------------------------------

Neil Soman (neilsoman)
Changed in eucalyptus:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package euca2ools - 1.2~bzr248-0ubuntu1

---------------
euca2ools (1.2~bzr248-0ubuntu1) lucid; urgency=low

  * Merge from upstream bzr revision; should fix:
    - LP: #517871 - fix euca-describe-volumes
 -- Dustin Kirkland <email address hidden> Thu, 11 Feb 2010 16:17:10 -0600

Changed in euca2ools (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

Is this at all valid against Eucalyptus ? Or is it just euca2ools and we should close the Eucalyptus track.

Revision history for this message
Thierry Carrez (ttx) wrote :

@Scott: "Eucalyptus" is eucalyptus upstream, not the eucalyptus package. At this point, it also contains euca2ools upstream, so I think it's valid to keep it open ?

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

@Thierry,
 You're right. I forgot that. I think its valid to keep it open, but my guess is its fixed-released in current released version of euca2ools, but leave that up to Eucalyptus people.

Emmet Hikory (persia)
tags: added: patch-acccepted-upstream
Changed in eucalyptus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.