OpenStack Terminate Instances #275

retr0h opened this Issue Jul 25, 2011 · 0 comments


None yet
2 participants

retr0h commented Jul 25, 2011

I am attempting to stop a running instance via:

image = self.connection.get_all_images(image_ids=[image_id])[0]
reservation =
instance = reservation.instances[0] 

And receive the following error:

Traceback (most recent call last):
  File "/Users/jdewey/.virtualenvs/poolpyrty/lib/python2.6/site-packages/nose/", 
line 187, in runTest
  File "/Users/jdewey/git/poolpyrty/tests/", line 40, in test_creates_an_instance
    instances = c.run_instances()
  File "/Users/jdewey/git/poolpyrty/poolpyrty/", line 38, in run_instances
  File "/Users/jdewey/.virtualenvs/poolpyrty/lib/python2.6/site-packages/boto/ec2/", line 212, in stop
IndexError: list index out of range

It looks as though the response differs from the AWS spec:

I am seeing the following:

boto: DEBUG: <?xml version="1.0" ?><TerminateInstancesResponse xmlns="http://ec2.amazona"><requestId>LVXA0Z5-T26XOJDTRMXW</requestId><return>true</return>

OpenStack tends to do this throughout their EC2 API (sad). Not sure if this is something you are interesting in fixing in boto, but thought I would report it.

@ghost ghost assigned garnaat Jul 25, 2011

@garnaat garnaat closed this in 4283ab4 Jul 25, 2011

msabramo pushed a commit to msabramo/boto that referenced this issue Nov 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment