Skip to content


Subversion checkout URL

You can clone with
Download ZIP


starcluster ebsimage fails on cc1.4xlarge hvm image #155

jstjohn opened this Issue · 5 comments

3 participants


Removing private data...
Creating EBS image...
Waiting for AMI ami-6e77cf07 to become available...!!! ERROR - Error occurred while creating image
!!! ERROR - Unhandled exception occured
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/", line 255, in main
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/commands/", line 69, in execute
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/", line 768, in create_ebs_image
return icreator.create_image(size=root_vol_size)
File "", line 2, in create_image
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/", line 91, in wrap_f
res = func(
arg, **kargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/", line 211, in create_image
return self._create_image_from_ebs(size)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/", line 231, in _create_image_from_ebs
snap = img.block_device_mapping['/dev/sda1'].snapshot_id
KeyError: '/dev/sda1'

This is with the starcluster public ami:


@jstjohn Interesting, I'll give it a shot and see what's up. In the mean time if you still have ami-6e77cf07 I'd be interested to see the output of:

$ starcluster shell
[1]> img = ec2.get_image('ami-6e77cf07')
[2]> print img.block_device_mapping

In [1]: img = ec2.get_image('ami-580e8768')

In [2]: print img.block_device_mapping
{u'/dev/sde1': , u'/dev/sdb1': , u'/dev/sda1': , u'/dev/sdd1': , u'/dev/sdc1': }

I have the same error, on any instance type, this is the output of above command.

Does make the AMI, and it appears to work fine. Been having this issue for a while, but since it still made the ami, I never thought it was a big enough deal to post about.

I am using the latest dev, with experimental features on. Ubuntu 10, python 2.6.5.


@JohnCEarls Awesome, thanks for the info. Looks like this might be an issue where the full block_device_mapping is not returned from AWS in the response from the create_image call. The code likely needs to be updated to first wait for the proper block device mapping to show up (ie /dev/sda1) and then wait for the snapshot.


FYI this can be achieved simply by refetching the AMI using DescribeImages until the block device mapping shows up. I will likely set this to timeout and error after 5 fetches...


Cool beans. Thanks!

@jtriley jtriley closed this in 3569501
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.