[ 
https://issues.apache.org/jira/browse/STRATOS-1648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15152650#comment-15152650
 ] 

Alexey Levan commented on STRATOS-1648:
---------------------------------------

I'm also hit by this issue. When I specify keyPair in cartridge options, no 
openstack instances are started because of this error. If I don't specify a 
keyPair, the instances are started with no key pair (and I would like to access 
them via ssh to debug them). Problem is present for me in stratos 4.0.0 and 
4.1.5.

> Cause: Key Pairs are required by options, but the extension is not available!
> -----------------------------------------------------------------------------
>
>                 Key: STRATOS-1648
>                 URL: https://issues.apache.org/jira/browse/STRATOS-1648
>             Project: Stratos
>          Issue Type: Bug
>    Affects Versions: 4.1.5
>            Reporter: douniwan
>
> I observed the following stack trace while deploying an application in 
> Stratos 4.1.5. 
> At this point following error is thrown from Stratos.
> TID: [0] [STRATOS] [2015-12-23 12:23:48,726] ERROR 
> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -  Could 
> not start instance: [cartridge-type] php [cluster-id] php.my-php.php.domain
> java.lang.IllegalStateException: Failed to start an instance. MemberContext 
> [applicationId=php, cartridgeType=php, clusterId=php.my-php.php.domain, 
> memberId=php.my-php.php.domainc460937f-5231-43a6-a14f-3fa182d650d0, 
> instanceId=null, partition=Partition [id=partition-1, description=null, 
> isPublic=false, provider=openstack, properties=Properties 
> [properties=[Property [name=region, value=RegionOne]]]], 
> defaultPrivateIP=null, defaultPublicIP=null, allocatedIPs=null, 
> publicIPs=null, privateIPs=null, initTime=1450844628411, lbClusterId=null, 
> networkPartitionId=network-partition-1, kubernetesPodId=null, 
> kubernetesPodName=null, loadBalancingIPType=Private, instanceMetadata=null, 
> properties=Properties [properties=[Property [name=MIN_COUNT, value=1], 
> Property [name=SCALING_DECISION_ID, 
> value=php.my-php.php.domain-bae9356c-6755-4d1c-8a4c-f66d5b55fbe1]]]] Cause: 
> Key Pairs are required by options, but the extension is not available! 
> options: {inboundPorts=[], securityGroups=[default], 
> autoAssignFloatingIp=false, keyPairName=stratos, userData=[B@acf837e, 
> configDrive=false}
>         at 
> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.startInstance(JcloudsIaas.java:155)
>         at 
> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:99)
>         at 
> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:67)
>         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)
> Caused by: java.lang.IllegalArgumentException: Key Pairs are required by 
> options, but the extension is not available! options: {inboundPorts=[], 
> securityGroups=[default], autoAssignFloatingIp=false, keyPairName=stratos, 
> userData=[B@acf837e, configDrive=false}
>         at 
> com.google.common.base.Preconditions.checkArgument(Preconditions.java:148)
>         at 
> org.jclouds.openstack.nova.v2_0.compute.strategy.ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.java:117)
>         at 
> org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:210)
>         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 
> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
>         at com.sun.proxy.$Proxy121.createNodesInGroup(Unknown Source)
>         at 
> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.startInstance(JcloudsIaas.java:137)
>         ... 5 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to