Tom Melendez created WHIRR-592: ---------------------------------- Summary: jclouds security group is not always removed. Key: WHIRR-592 URL: https://issues.apache.org/jira/browse/WHIRR-592 Project: Whirr Issue Type: Bug Components: core Affects Versions: 0.5.0 Environment: CDH Ubuntu EC2 Reporter: Tom Melendez
I've been firing up and quickly taking down clusters. I notice that I need to go in manually and remove the security group, and if I don't, I'll get this: Exception in thread "main" java.lang.IllegalStateException: The permission 'XXXXXXXX' has already been authorized on the specified group (full dump is below). This wouldn't be a problem, except for the fact that the instances are already created, but the local whirr data file is not created, so things like list-cluster don't work. I'm using CDH3u4. full exception is: e=is64Bit()], loginUser=root, userMetadata={}]}] on ports [11000] for [69.181.137.92/32] Exception in thread "main" java.lang.IllegalStateException: The permission '69.181.137.92/32-1-11000-11000' has already been authorized on the specified group at org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.refineException(ParseAWSErrorFromXmlContent.java:105) at org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:85) at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69) at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.shouldContinue(BaseHttpCommandExecutorService.java:200) at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:165) at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:134) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.jclouds.http.HttpResponseException: command: POST https://ec2.us-west-1.amazonaws.com/ HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [The permission '69.181.137.92/32-1-11000-11000' has already been authorized on the specified group] at org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:74) ... 9 more ^Cskybox@skybox-dev-vm-v1:~/whirr$ whirr list-cluster --config "conf/whirr.skybox.properties" Exception in thread "main" java.io.FileNotFoundException: /home/skybox/.whirr/skyboxtestcluster/instances (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at com.google.common.io.Files$1.getInput(Files.java:100) at com.google.common.io.Files$1.getInput(Files.java:97) at com.google.common.io.CharStreams$2.getInput(CharStreams.java:91) at com.google.common.io.CharStreams$2.getInput(CharStreams.java:88) at com.google.common.io.CharStreams.readLines(CharStreams.java:306) at com.google.common.io.Files.readLines(Files.java:568) at org.apache.whirr.service.FileClusterStateStore.load(FileClusterStateStore.java:54) at org.apache.whirr.ClusterController.getInstances(ClusterController.java:176) at org.apache.whirr.cli.command.ListClusterCommand.run(ListClusterCommand.java:71) at org.apache.whirr.cli.Main.run(Main.java:68) at org.apache.whirr.cli.Main.main(Main.java:106) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira