Hi, I can think of 2 reasons why this error is thrown.
1. OpenStack is not correctly configured or out of resources. As Nirmal suggested, can you spawn instances manually in OpenStack? 2. In your cartridge json definition iaasProvider section, check whether "instanceType" is set to an adequate level of resource. If VM instance type resources are not enough to spawn the image it might throw this error. For eg - "iaasProvider": [ { "type": "openstack", "imageId": "RegionOne/2a143fd7-e195-48b2-8771-1adfb1c3e94e", "maxInstanceLimit": "1", "property": [ { "name": "instanceType", "value": "RegionOne/3" } ] } ] On Wed, Aug 13, 2014 at 6:13 PM, Nirmal Fernando <nirmal070...@gmail.com> wrote: > Hi, > > Could you manually spin instances using your Openstack installation? If so, > I think we need enable wire logs for Jclouds and get the necessary wire logs > and examine. Please enable wire logs by adding following line to the > log4j.properties file of Stratos product (under repository/conf/). > > log4j.logger.jclouds.wire=DEBUG > > > > On Wed, Aug 13, 2014 at 5:36 PM, Đinh Bá Dũng <badungb...@gmail.com> wrote: >> >> Dear devs, >> >> I created a php cartridge on Openstack. >> When i subcriber to cartridge, i have an error, and Failed to start an >> instance. What is wrong?? >> >> >> 0 error[s] >> Node failures: >> >> 1) IllegalStateException on node >> RegionOne/e8aaf2b4-8944-4671-a3aa-f046d80d554a: >> java.lang.IllegalStateException: >> node(RegionOne/e8aaf2b4-8944-4671-a3aa-f046d80d554a) didn't achieve the >> status running; aborting after 0 seconds with final status: ERROR >> at >> org.jclouds.compute.functions.PollNodeRunning.apply(PollNodeRunning.java:72) >> at >> org.jclouds.compute.functions.PollNodeRunning.apply(PollNodeRunning.java:45) >> at >> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:121) >> at >> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:146) >> at >> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:53) >> at com.google.common.util.concurrent.Futures$1.apply(Futures.java:711) >> at >> com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:849) >> 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:745) >> >> >> 1 error[s] >> at >> org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient.spawnAnInstance(CloudControllerClient.java:157) >> at >> org.apache.stratos.autoscaler.rule.RuleTasksDelegator.delegateSpawn(RuleTasksDelegator.java:92) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) >> at >> org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:1104) >> at >> org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:987) >> at >> org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:377) >> at >> org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:143) >> at org.mvel2.ast.ASTNode.optimize(ASTNode.java:159) >> at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:115) >> at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85) >> at >> org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) >> at >> org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) >> at >> org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:113) >> at org.mvel2.MVEL.executeExpression(MVEL.java:930) >> at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:104) >> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1287) >> at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1221) >> at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1456) >> at >> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:710) >> at >> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:674) >> at >> org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:230) >> at >> org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluateMinCheck(AutoscalerRuleEvaluator.java:86) >> at >> org.apache.stratos.autoscaler.monitor.ClusterMonitor.monitor(ClusterMonitor.java:99) >> at >> org.apache.stratos.autoscaler.monitor.ClusterMonitor.run(ClusterMonitor.java:72) >> at java.lang.Thread.run(Thread.java:745) >> Caused by: org.apache.axis2.AxisFault: Failed to start an instance. >> MemberContext [memberId=php.php.domain248d4d1d-e71c-49e9-917b-aa42c7284343, >> nodeId=null, clusterId=php.php.domain, cartridgeType=php, >> privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null, >> initTime=1407930618623, lbClusterId=null, networkPartitionId=openstack1] >> Cause: error running 1 node group(phpphpdo) location(RegionOne) >> image(7643e12f-fb4d-4460-bbc5-f94e1f818661) size(2) >> options({inboundPorts=[], autoAssignFloatingIp=false, userData=[B@795532d8, >> configDrive=false}) >> Execution failures: >> >> Pls, help me! >> >> >> >> -- >> Đinh Bá Dũng >> Tel: 0984.155.004 >> YM/Skype: dinhbadunga2k32 >> Gmail: badungb...@gmail.com > > > > > -- > Best Regards, > Nirmal > > Nirmal Fernando. > PPMC Member & Committer of Apache Stratos, > Senior Software Engineer, WSO2 Inc. > > Blog: http://nirmalfdo.blogspot.com/ -- Akila Ravihansa Perera Software Engineer WSO2 Inc. http://wso2.com Phone: +94 77 64 154 38 Blog: http://ravihansa3000.blogspot.com