Hi Sean, Should you be setting subnet id of your VPC?
Please use property name 'subnetId'. On Mon, Sep 1, 2014 at 7:21 PM, Sean Murdock <scmurd...@gmail.com> wrote: > Hi Nirmal, I tried changing as shown below, but am still getting the same > stacktrace (below): > > <iaasProvider type="ec2" name="ec2 specific details"> > > <className>org.apache.stratos.cloud.controller.iaases.AWSEC2Iaas</className> > <provider>aws-ec2</provider> > <identity > svns:secretAlias="cloud.controller.ec2.identity">[identity-masked-for-privacy]</identity> > <credential > svns:secretAlias="cloud.controller.ec2.credential">[credential-masked-for-privacy]</credential> > <property name="jclouds.ec2.ami-query" > value="owner-id=636538826175;state=available;image-type=machine"/> > <property name="availabilityZone" > value="ap-southeast-1a"/> > <!--<property name="securityGroups" > value="sg-c629d5a3"/>--> > <property name="securityGroupIds" > value="sg-c629d5a3"/> > <property name="autoAssignIp" value="true" /> > <property name="keyPair" > value="apache-stratos-key"/> > </iaasProvider> > > > TID: [0] [STRATOS] [2014-09-01 13:28:31,610] ERROR > {org.apache.stratos.autoscaler.rule.RuleTasksDelegator} - Cannot spawn an > instance {org.apache.stratos.autoscaler.rule.RuleTasksDelegator} > org.apache.stratos.autoscaler.exception.SpawningException: Failed to start > an instance. MemberContext > [memberId=jboss.jboss.domain1836982a-7026-468b-b066-5a836c07c638, > nodeId=null, clusterId=jboss.jboss.domain, cartridgeType=jboss, > privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null, > initTime=1409578111179, lbClusterId=lblb891333528.lb.domain, > networkPartitionId=ec2] Cause: The security group 'sg-c629d5a3' does not > exist in default VPC 'vpc-c646aba3' > > 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.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=jboss.jboss.domain1836982a-7026-468b-b066-5a836c07c638, > nodeId=null, clusterId=jboss.jboss.domain, cartridgeType=jboss, > privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null, > initTime=1409578111179, lbClusterId=lblb891333528.lb.domain, > networkPartitionId=ec2] Cause: The security group 'sg-c629d5a3' does not > exist in default VPC 'vpc-c646aba3' > at > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) > at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) > at > org.apache.stratos.cloud.controller.stub.CloudControllerServiceStub.startInstance(CloudControllerServiceStub.java:1139) > at > org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient.spawnAnInstance(CloudControllerClient.java:145) > ... 26 more > TID: [0] [STRATOS] [2014-09-01 13:28:31,611] ERROR > {org.apache.stratos.autoscaler.monitor.ClusterMonitor} - Cluster monitor: > Monitor failed.ClusterMonitor [clusterId=jboss.jboss.domain, > serviceId=jboss, deploymentPolicy=Deployment Policy > [id]economyDeploymentPolicy [partitions] > [org.apache.stratos.cloud.controller.stub.deployment.partition.Partition@6a6a52c], > autoscalePolicy=ASPolicy [id=simpleAutoscalePolicy, displayName=null, > description=null], lbReferenceType=default.load.balancer] > {org.apache.stratos.autoscaler.monitor.ClusterMonitor} > Exception executing consequence for rule "Minimum Rule" in > org.apache.stratos.autoscaler.rule: [Error: $delegator.delegateSpawn($ctxt, > clusterId, lbRef): Cannot spawn an instance] > [Near : {... $delegator.delegateSpawn($ctxt ....}] > ^ > [Line: 1, Column: 1] > at > org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39) > at > org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1297) > 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: [Error: $delegator.delegateSpawn($ctxt, clusterId, lbRef): > Cannot spawn an instance] > [Near : {... $delegator.delegateSpawn($ctxt ....}] > ^ > [Line: 1, Column: 1] > at > org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:416) > 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.MVEL.executeExpression(MVEL.java:930) > at > org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:104) > at > org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1287) > ... 9 more > Caused by: java.lang.reflect.InvocationTargetException > 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) > ... 18 more > Caused by: java.lang.RuntimeException: Cannot spawn an instance > at > org.apache.stratos.autoscaler.rule.RuleTasksDelegator.delegateSpawn(RuleTasksDelegator.java:110) > ... 25 more > Caused by: org.apache.stratos.autoscaler.exception.SpawningException: > Failed to start an instance. MemberContext > [memberId=jboss.jboss.domain1836982a-7026-468b-b066-5a836c07c638, > nodeId=null, clusterId=jboss.jboss.domain, cartridgeType=jboss, > privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null, > initTime=1409578111179, lbClusterId=lblb891333528.lb.domain, > networkPartitionId=ec2] Cause: The security group 'sg-c629d5a3' does not > exist in default VPC 'vpc-c646aba3' > > at > org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient.spawnAnInstance(CloudControllerClient.java:157) > at > org.apache.stratos.autoscaler.rule.RuleTasksDelegator.delegateSpawn(RuleTasksDelegator.java:92) > ... 25 more > Caused by: org.apache.axis2.AxisFault: Failed to start an instance. > MemberContext > [memberId=jboss.jboss.domain1836982a-7026-468b-b066-5a836c07c638, > nodeId=null, clusterId=jboss.jboss.domain, cartridgeType=jboss, > privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null, > initTime=1409578111179, lbClusterId=lblb891333528.lb.domain, > networkPartitionId=ec2] Cause: The security group 'sg-c629d5a3' does not > exist in default VPC 'vpc-c646aba3' > at > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) > at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) > at > org.apache.stratos.cloud.controller.stub.CloudControllerServiceStub.startInstance(CloudControllerServiceStub.java:1139) > at > org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient.spawnAnInstance(CloudControllerClient.java:145) > ... 26 more > > > > > On Sun, Aug 31, 2014 at 9:10 AM, Nirmal Fernando <nirmal070...@gmail.com> > wrote: > >> Hi Sean, >> >> Seems like you are trying to create instances in an EC2 VPC environment, >> hence you need to specify your security group using securityGroupIds >> property of the IaaS provider. >> >> >> On Sun, Aug 31, 2014 at 3:20 AM, Sean Murdock <scmurd...@gmail.com> >> wrote: >> >>> Hello- I have subscribed to the jboss cartridge in my Stratos 4.0 >>> install. I am now getting the following error (although both the security >>> group and the VPC below are present): >>> >>> Caused by: org.apache.stratos.autoscaler.exception.SpawningException: >>> Failed to start an instance. MemberContext >>> [memberId=jboss.jboss.domain7902f390-e9f3-4a4f-aee8-f97be0adf3be, >>> nodeId=null, clusterId=jboss.jboss.domain, cartridgeType=jboss, >>> privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null, >>> initTime=1409434712934, lbClusterId=lblb891333528.lb.domain, >>> networkPartitionId=ec2] Cause: The security group 'sg-c629d5a3' does not >>> exist in default VPC 'vpc-c646aba3' >>> at >>> org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient.spawnAnInstance(CloudControllerClient.java:157) >>> at >>> org.apache.stratos.autoscaler.rule.RuleTasksDelegator.delegateSpawn(RuleTasksDelegator.java:92) >>> ... 24 more >>> >>> >> >> >> -- >> Best Regards, >> Nirmal >> >> Nirmal Fernando. >> PPMC Member & Committer of Apache Stratos, >> Senior Software Engineer, WSO2 Inc. >> >> Blog: http://nirmalfdo.blogspot.com/ >> > > -- Best Regards, Nirmal Nirmal Fernando. PPMC Member & Committer of Apache Stratos, Senior Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/