Hello,

The following script crashes when running on Amazon instance.

================================
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

EC2_ACCESS_ID = ...
EC2_SECRET = ...
Driver = get_driver(Provider.EC2_US_EAST)
conn = Driver(EC2_ACCESS_ID, EC2_SECRET)

print "before"
conn.list_images()
print "after"
================================

The first print appears and "Killed" is displayed before the second print.

I suspect it is an error in etree module (apparently the list of
available images is huge).

I use list_images to get the python object of the desired image

    image = [i for i in conn.list_images() if i.id == EC2_AMI][0]

so that I can create a node with this image (create_node method)

Do you know if there is a way to create a node without using
list_images or if there is another way to avoid this crash?

I am using python 2.7.3 and libcloud 0.14.1.

Thanks a lot in advance!
Marko

Reply via email to