Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

terminate command fails when nodes are in a VPC #411

Open
antonio-osorio opened this Issue · 0 comments

1 participant

@antonio-osorio

I am getting the following error trying to terminate a cluster:

$ starcluster listclusters
StarCluster - (http://star.mit.edu/cluster) (v. 0.95.5)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster@mit.edu

-------------------------------------------
my_cluster (security group: @sc-my_cluster)
-------------------------------------------
Launch time: 2014-07-18 14:11:02
Uptime: 0 days, 00:20:17
VPC: vpc-e57XXXXX
Subnet: subnet-a02XXXXX
Zone: us-east-1a
Keypair: dev
EBS volumes: N/A
Cluster nodes:
     master running i-6116xxxa 172.23.2.49
    node001 running i-6016xxxb 172.23.2.50
Total nodes: 2
$ starcluster terminate my_cluster
StarCluster - (http://star.mit.edu/cluster) (v. 0.95.5)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster@mit.edu

Terminate EBS cluster my_cluster (y/n)? y
>>> Running plugin starcluster.plugins.sge.SGEPlugin
>>> Running plugin starcluster.clustersetup.DefaultClusterSetup
>>> Terminating node: master (i-6116xxxa)
>>> Terminating node: node001 (i-6016xxxb)
>>> Waiting for cluster to terminate...
>>> Removing placement group: @sc-my_cluster
!!! ERROR - Failed to terminate cluster!
Traceback (most recent call last):
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/commands/terminate.py", line 87, in terminate
    self._terminate_cluster(cl)
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/commands/terminate.py", line 64, in _terminate_cluster
    cl.terminate_cluster()
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/cluster.py", line 1591, in terminate_cluster
    self.ec2.delete_group(pg)
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/awsutils.py", line 268, in delete_group
    ret_val = group.delete()
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/boto/ec2/placementgroup.py", line 51, in delete
    dry_run=dry_run
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/boto/ec2/connection.py", line 4119, in delete_placement_group
    return self.get_status('DeletePlacementGroup', params, verb='POST')
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/boto/connection.py", line 1197, in get_status
    raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidPlacementGroup.InUse</Code><Message>The placement group '@sc-my_cluster' is in use and may not be deleted.</Message></Error></Errors><RequestID>d2abc64f-f349-46b8-8170-d5a3e08cfbac</RequestID></Response>
!!! ERROR - Use -f to forcefully terminate the cluster
!!! ERROR - InvalidPlacementGroup.InUse: The placement group '@sc-my_cluster' is in use and may not be deleted.
Traceback (most recent call last):
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/cli.py", line 274, in main
    sc.execute(args)
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/commands/terminate.py", line 101, in execute
    self.terminate(cluster_name, force=self.opts.force)
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/commands/terminate.py", line 87, in terminate
    self._terminate_cluster(cl)
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/commands/terminate.py", line 64, in _terminate_cluster
    cl.terminate_cluster()
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/cluster.py", line 1591, in terminate_cluster
    self.ec2.delete_group(pg)
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/starcluster/awsutils.py", line 268, in delete_group
    ret_val = group.delete()
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/boto/ec2/placementgroup.py", line 51, in delete
    dry_run=dry_run
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/boto/ec2/connection.py", line 4119, in delete_placement_group
    return self.get_status('DeletePlacementGroup', params, verb='POST')
  File "/Users/xxxx/.virtualenvs/starcluster/lib/python2.7/site-packages/boto/connection.py", line 1197, in get_status
    raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidPlacementGroup.InUse</Code><Message>The placement group '@sc-my_cluster' is in use and may not be deleted.</Message></Error></Errors><RequestID>d2abc64f-f349-46b8-8170-d5a3e08cfbac</RequestID></Response>
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.