[StarCluster] InvalidBlockDeviceMapping error

MacMullan, Hugh hughmac at wharton.upenn.edu
Wed Oct 29 16:26:47 EDT 2014


Hi Jian:

There's a problem with 0.95.5 with the latest version of boto package (https://github.com/jtriley/StarCluster/issues/455). Justin's working on an update, but in the meantime you can do:

pip uninstall boto
pip install boto==2.32.0

That should work!

Let us know your results.

-Hugh

From: starcluster-bounces at mit.edu [mailto:starcluster-bounces at mit.edu] On Behalf Of Jian Feng
Sent: Wednesday, October 29, 2014 3:27 PM
To: starcluster at mit.edu
Subject: [StarCluster] InvalidBlockDeviceMapping error

Hi, just started trying starcluster. I was running the most simple 'mycluster' example, but got an error. Could you help? Thanks!

$ starcluster start mycluster
StarCluster - (http://star.mit.edu/cluster) (v. 0.95.5)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster at mit.edu<mailto:starcluster at mit.edu>

*** WARNING - Setting 'AWS_SECRET_ACCESS_KEY' from environment...
*** WARNING - Setting 'AWS_ACCESS_KEY_ID' from environment...
>>> Using default cluster template: smallcluster
>>> Validating cluster template settings...
>>> Cluster template settings are valid
>>> Starting cluster...
>>> Launching a 2-node cluster...
>>> Creating security group @sc-mycluster...
!!! ERROR - InvalidBlockDeviceMapping: the encrypted flag cannot be specified since device /dev/sda1 has a snapshot specified.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/cli.py", line 274, in main
    sc.execute(args)
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/commands/start.py", line 244, in execute
    validate_running=validate_running)
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/cluster.py", line 1628, in start
    return self._start(create=create, create_only=create_only)
  File "<string>", line 2, in _start
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/utils.py", line 112, in wrap_f
    res = func(*arg, **kargs)
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/cluster.py", line 1643, in _start
    self.create_cluster()
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/cluster.py", line 1163, in create_cluster
    self._create_flat_rate_cluster()
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/cluster.py", line 1185, in _create_flat_rate_cluster
    force_flat=True)[0]
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/cluster.py", line 966, in create_nodes
    resvs.append(self.ec2.request_instances(image_id, **kwargs))
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/awsutils.py", line 523, in request_instances
    **shared_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.95.5-py2.7.egg/starcluster/awsutils.py", line 624, in run_instances
    return self.conn.run_instances(image_id, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/boto-2.34.0-py2.7.egg/boto/ec2/connection.py", line 974, in run_instances
    verb='POST')
  File "/usr/local/lib/python2.7/dist-packages/boto-2.34.0-py2.7.egg/boto/connection.py", line 1204, in get_object
    raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidBlockDeviceMapping</Code><Message>the encrypted flag cannot be specified since device /dev/sda1 has a snapshot specified.</Message></Error></Errors><RequestID>4d93f6fb-bcda-47bf-aef5-e2bf946ad2a2</RequestID></Response>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/starcluster/attachments/20141029/7f6315af/attachment-0001.htm


More information about the StarCluster mailing list