Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5335

Destroying cluster in VPC with "--delete-groups" fails to remove security groups

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.2, 1.3.0
    • EC2
    • None

    Description

      When I try to remove security groups using option of the script, it fails because in VPC one should remove security groups by id, not name as it is now.

      $ ./spark-ec2 -k key20141114 -i ~/key.pem --region=eu-west-1 --delete-groups destroy SparkByScript
      Are you sure you want to destroy the cluster SparkByScript?
      The following instances will be terminated:
      Searching for existing cluster SparkByScript...
      ALL DATA ON ALL NODES WILL BE LOST!!
      Destroy cluster SparkByScript (y/N): y
      Terminating master...
      Terminating slaves...
      Deleting security groups (this will take some time)...
      Waiting for cluster to enter 'terminated' state.
      Cluster is now in 'terminated' state. Waited 0 seconds.
      Attempt 1
      Deleting rules in security group SparkByScript-slaves
      Deleting rules in security group SparkByScript-master
      ERROR:boto:400 Bad Request
      ERROR:boto:<?xml version="1.0" encoding="UTF-8"?>
      <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Invalid value 'SparkByScript-slaves' for groupName. You may not reference Amazon VPC security groups by name. Please use the corresponding id for this operation.</Message></Error></Errors><RequestID>60313fac-5d47-48dd-a8bf-e9832948c0a6</RequestID></Response>
      Failed to delete security group SparkByScript-slaves
      ERROR:boto:400 Bad Request
      ERROR:boto:<?xml version="1.0" encoding="UTF-8"?>
      <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Invalid value 'SparkByScript-master' for groupName. You may not reference Amazon VPC security groups by name. Please use the corresponding id for this operation.</Message></Error></Errors><RequestID>74ff8431-c0c1-4052-9ecb-c0adfa7eeeac</RequestID></Response>
      Failed to delete security group SparkByScript-master
      Attempt 2
      ....
      

      Attachments

        Issue Links

          Activity

            People

              vgrigor Vladimir Grigor
              vgrigor Vladimir Grigor
              Shivaram Venkataraman Shivaram Venkataraman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: