[
https://issues.apache.org/jira/browse/WHIRR-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13701325#comment-13701325
]
Andrei Savu commented on WHIRR-734:
-----------------------------------
Are you able to connect to VMs that are created using the OpenStack web
interface?
> Failed in launch-cluster using zookeeper role
> ---------------------------------------------
>
> Key: WHIRR-734
> URL: https://issues.apache.org/jira/browse/WHIRR-734
> Project: Whirr
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8.2
> Environment: openstack
> Reporter: xingjianlei
> Original Estimate: 336h
> Remaining Estimate: 336h
>
> I’m trying to develop a cloud server recently.When I create a cluster,it
> always happened exception like this:
> --------------------------------------------------------------------------------------
> java.io.IOException: java.util.concurrent.ExecutionException:
> java.io.IOException: Too many instance failed while bootstrapping! 0
> successfully started instances while 2 instances failed
> --------------------------------------------------------------------------------------
> Here is my the content of my openstack.properties:
> --------------------------------------------------------------------------------------
> whirr.cluster-name=myopenstackcluster1
> whirr.instance-templates=1 zookeeper
> whirr.cluster-user=whirr
> whirr.location-id=RegionOne
> whirr.provider=openstack-nova
> whirr.image-id=RegionOne/7cf21d93-d04a-4fb4-a09b-f546a9461726
> whirr.endpoint=http://10.167.157.86:5000/v2.0/
> whirr.identity=admin:admin
> whirr.credential=hastexo
> jclouds.openstack-nova.auto-generate-keypairs=true
> whirr.private-key-file=/home/**/.ssh/id_ras
> whirr.public-key-file=/home/**/.ssh/id_ras.pub
> --------------------------------------------------------------------------------------
> My compete exception logs as follows:
> --------------------------------------------------------------------------------------
> Running on provider openstack-nova using identity admin:admin
> Bootstrapping cluster
> Configuring template for bootstrap-zookeeper
> Starting 1 node(s) with roles [zookeeper]
> Starting 1 node(s) with roles [zookeeper]
> Destroying failed nodes [RegionOne/78e0b5db-6bd6-46f4-b105-639f425fb2ff,
> RegionOne/873dd913-18ff-4612-92db-d341f1c506eb]
> Destroyed failed nodes [RegionOne/78e0b5db-6bd6-46f4-b105-639f425fb2ff,
> RegionOne/873dd913-18ff-4612-92db-d341f1c506eb]
> Unable to start the cluster. Terminating all nodes.
> java.io.IOException: java.util.concurrent.ExecutionException:
> java.io.IOException: Too many instance failed while bootstrapping! 0
> successfully started instances while 2 instances failed
> at
> org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:125)
> at
> org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:131)
> at
> org.apache.whirr.ClusterController.bootstrapCluster(ClusterController.java:137)
> at
> org.apache.whirr.ClusterController.launchCluster(ClusterController.java:113)
> at
> org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:69)
> at
> org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:59)
> at org.apache.whirr.cli.Main.run(Main.java:69)
> at org.apache.whirr.cli.Main.main(Main.java:102)
> Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Too
> many instance failed while bootstrapping! 0 successfully started instances
> while 2 instances failed
> at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> at
> org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:120)
> ... 7 more
> Caused by: java.io.IOException: Too many instance failed while bootstrapping!
> 0 successfully started instances while 2 instances failed
> at
> org.apache.whirr.compute.StartupProcess.call(StartupProcess.java:93)
> at
> org.apache.whirr.compute.StartupProcess.call(StartupProcess.java:41)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:722)
> Unable to load cluster state, assuming it has no running nodes.
> java.io.FileNotFoundException: /home/xjl/.whirr/myopenstackcluster1/instances
> (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:138)
> at com.google.common.io.Files$1.getInput(Files.java:109)
> at com.google.common.io.Files$1.getInput(Files.java:106)
> at com.google.common.io.CharStreams$2.getInput(CharStreams.java:93)
> at com.google.common.io.CharStreams$2.getInput(CharStreams.java:90)
> at com.google.common.io.CharStreams.readLines(CharStreams.java:307)
> at com.google.common.io.Files.readLines(Files.java:543)
> at
> org.apache.whirr.state.FileClusterStateStore.load(FileClusterStateStore.java:55)
> at
> org.apache.whirr.state.ClusterStateStore.tryLoadOrEmpty(ClusterStateStore.java:59)
> at
> org.apache.whirr.ClusterController.destroyCluster(ClusterController.java:226)
> at
> org.apache.whirr.ClusterController.launchCluster(ClusterController.java:121)
> at
> org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:69)
> at
> org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:59)
> at org.apache.whirr.cli.Main.run(Main.java:69)
> at org.apache.whirr.cli.Main.main(Main.java:102)
> Finished running destroy phase scripts on all cluster instances
> Destroying myopenstackcluster1 cluster
> Cluster myopenstackcluster1 destroyed
> Exception in thread "main" java.lang.RuntimeException: java.io.IOException:
> java.util.concurrent.ExecutionException: java.io.IOException: Too many
> instance failed while bootstrapping! 0 successfully started instances while 2
> instances failed
> at
> org.apache.whirr.ClusterController.launchCluster(ClusterController.java:128)
> at
> org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:69)
> at
> org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:59)
> at org.apache.whirr.cli.Main.run(Main.java:69)
> at org.apache.whirr.cli.Main.main(Main.java:102)
> Caused by: java.io.IOException: java.util.concurrent.ExecutionException:
> java.io.IOException: Too many instance failed while bootstrapping! 0
> successfully started instances while 2 instances failed
> at
> org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:125)
> at
> org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:131)
> at
> org.apache.whirr.ClusterController.bootstrapCluster(ClusterController.java:137)
> at
> org.apache.whirr.ClusterController.launchCluster(ClusterController.java:113)
> ... 4 more
> Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Too
> many instance failed while bootstrapping! 0 successfully started instances
> while 2 instances failed
> at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> at
> org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:120)
> ... 7 more
> Caused by: java.io.IOException: Too many instance failed while bootstrapping!
> 0 successfully started instances while 2 instances failed
> at
> org.apache.whirr.compute.StartupProcess.call(StartupProcess.java:93)
> at
> org.apache.whirr.compute.StartupProcess.call(StartupProcess.java:41)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:722)
> --------------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira