eucalyptus/eutester — Issue #7: get_emi() in eucaops selects de-registered image
Author: jeevanullas
Created: 2012-01-24 13:29:47+00:00
State: open

Hey Vic,

Looks like get_emi() is selecting de-registered images for me?

Does this works?

--- /root/eutester/eucaops/__init__.py	2012-01-24 05:25:32.000000000 -0800
+++ /root/eutester/eucaops/__init__.py.new	2012-01-24 05:28:25.000000000 -0800
@@ -352,7 +352,7 @@
image_id = self.ec2.register_image(name=name, description=description, kernel_id=kernel, image_location=image_location, ramdisk_id=ramdisk, block_device_map=bdmdev, root_device_name=rdn)
return image_id

- def get_emi( self, emi="emi-", root_device_type=None, root_device_name=None, location=None, state=None, arch=None, owner_id=None):
+ def get_emi( self, emi="emi-", root_device_type=None, root_device_name=None, location=None, state='available', arch=None, owner_id=None):
"""
Get an emi with name emi, or just grab any emi in the system. Additional 'optional' match criteria can be defined.
emi (mandatory) Partial ID of the emi to return, defaults to the 'emi-" prefix to grab any

Cheers,
Deependra