Skip to content

Instantly share code, notes, and snippets.

@pdsphil
Created September 9, 2012 19:37
Show Gist options
  • Save pdsphil/87474daf102604a9c3a6 to your computer and use it in GitHub Desktop.
Save pdsphil/87474daf102604a9c3a6 to your computer and use it in GitHub Desktop.
➔ starcluster start -o -s 1 -i m1.large -n ami-999d49f0 imagehost
StarCluster - (http://web.mit.edu/starcluster) (v. 0.9999)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster@mit.edu
>>> Using default cluster template: smallcluster
>>> Validating cluster template settings...
>>> Cluster template settings are valid
>>> Starting cluster...
>>> Launching a 1-node cluster...
>>> Creating security group @sc-imagehost...
Reservation:r-c560e1a2
>>> Starting cluster took 0.033 mins
➔ starcluster lsi
StarCluster - (http://web.mit.edu/starcluster) (v. 0.9999)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster@mit.edu
id: i-e038a09a
dns_name: ec2-23-22-87-148.compute-1.amazonaws.com
private_dns_name: ip-10-202-9-54.ec2.internal
state: running
public_ip: 23.22.87.148
private_ip: 10.202.9.54
zone: us-east-1a
ami: ami-999d49f0
type: m1.large
groups: @sc-imagehost
keypair: star_cluster_key
uptime: 0 days, 00:01:35
Total: 1
➔ starcluster ebsimage i-e038a09a sc-test
StarCluster - (http://web.mit.edu/starcluster) (v. 0.9999)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster@mit.edu
>>> Removing private data...
>>> Creating EBS image...
>>> Waiting for AMI ami-4773c22e to become available...!!! ERROR - Error occurred while creating image
!!! ERROR - Unhandled exception occured
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/cli.py", line 255, in main
sc.execute(args)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/commands/ebsimage.py", line 69, in execute
**self.specified_options_dict)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/awsutils.py", line 768, in create_ebs_image
return icreator.create_image(size=root_vol_size)
File "<string>", line 2, in create_image
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/utils.py", line 87, in wrap_f
res = func(*arg, **kargs)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/image.py", line 211, in create_image
return self._create_image_from_ebs(size)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/image.py", line 231, in _create_image_from_ebs
snap = img.block_device_mapping['/dev/sda1'].snapshot_id
KeyError: '/dev/sda1'
!!! ERROR - Oops! Looks like you've found a bug in StarCluster
!!! ERROR - Crash report written to: /Users/Phil/.starcluster/logs/crash-report-25260.txt
!!! ERROR - Please remove any sensitive data from the crash report
!!! ERROR - and submit it to starcluster@mit.edu
---------- CRASH DETAILS ----------
COMMAND: starcluster ebsimage i-e038a09a sc-test
2012-09-09 13:55:22,712 PID: 25260 config.py:551 - DEBUG - Loading config
2012-09-09 13:55:22,712 PID: 25260 config.py:118 - DEBUG - Loading file: /Users/Phil/.starcluster/config
2012-09-09 13:55:22,715 PID: 25260 awsutils.py:54 - DEBUG - creating self._conn w/ connection_authenticator kwargs = {'proxy_user': None, 'proxy_pass': None, 'proxy_port': None, 'proxy': None, 'is_secure': True, 'path': '/', 'region': None, 'port': None}
2012-09-09 13:55:23,237 PID: 25260 __init__.py:75 - DEBUG - loading private key /Users/Phil/.ssh/star_cluster_key.rsa
2012-09-09 13:55:23,238 PID: 25260 __init__.py:167 - DEBUG - Using private key /Users/Phil/.ssh/star_cluster_key.rsa (rsa)
2012-09-09 13:55:23,239 PID: 25260 image.py:40 - INFO - Removing private data...
2012-09-09 13:55:23,239 PID: 25260 __init__.py:97 - DEBUG - connecting to host ec2-23-22-87-148.compute-1.amazonaws.com on port 22 as user root
2012-09-09 13:55:24,247 PID: 25260 __init__.py:186 - DEBUG - creating sftp connection
2012-09-09 13:55:26,436 PID: 25260 image.py:225 - INFO - Creating EBS image...
2012-09-09 13:55:26,627 PID: 25260 image.py:229 - INFO - Waiting for AMI ami-4773c22e to become available...
2012-09-09 13:55:26,755 PID: 25260 image.py:214 - ERROR - Error occurred while creating image
2012-09-09 13:55:26,756 PID: 25260 cli.py:286 - ERROR - Unhandled exception occured
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/cli.py", line 255, in main
sc.execute(args)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/commands/ebsimage.py", line 69, in execute
**self.specified_options_dict)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/awsutils.py", line 768, in create_ebs_image
return icreator.create_image(size=root_vol_size)
File "<string>", line 2, in create_image
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/utils.py", line 87, in wrap_f
res = func(*arg, **kargs)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/image.py", line 211, in create_image
return self._create_image_from_ebs(size)
File "/Library/Python/2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/image.py", line 231, in _create_image_from_ebs
snap = img.block_device_mapping['/dev/sda1'].snapshot_id
KeyError: '/dev/sda1'
---------- SYSTEM INFO ----------
StarCluster: 0.9999
Python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
Platform: Darwin-12.1.0-x86_64-i386-64bit
boto: 2.5.2
ssh: 1.7.14
Crypto: 2.6
jinja2: 2.6
decorator: 3.3.3
@jtriley
Copy link

jtriley commented Sep 27, 2012

@pdsphil Can you please try the following and paste the output:

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

That should help figure out why '/dev/sda1' doesn't exist in the block device map which is odd to me...

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