Hi,

Please let me know how jcloud works wrt groupName and keypair

1. Suppose my groupName and key pair is as below

String groupName = "jcloud";

keyPair("jclouds#jcloud")  - keypairname created in AWS

Then execution of script works fine i.e runScriptOnNodesMatching

2. if i give a different groupName say,

String groupName = "jcloudTest";

and use an existing keypair say keyPair("jclouds#jcloud")

Then runScriptOnNodesMatching gives error: no nodes matched filter:
inGroup(jcloudTest)

Please let me know how groupName and keypair work together

3. Also keypair is expected to be appended with "jclouds#"  i.e. jclouds
finds for keypair with jclouds# prefix

The groupName and keypair name should be same, then how can i create
machines in multiple groups.

Can u please let me know what is going wrong with using existing keypair.

````
 Template template = templateBuilder.build();

template.getOptions().as(AWSEC2TemplateOptions.class).subnetId("subnet-a1e1d08b").

keyPair("jclouds#jcloud").overrideLoginPrivateKey(login.credential)
````
By using above template options i dont get issues while launching instance,
but while executing service i get below error,

````
java.util.NoSuchElementException: no nodes matched filter: inGroup(jcloud1)
at org.jclouds.compute.internal.BaseComputeService.
nodesMatchingFilterAndNotTerminatedExceptionIfNotFound(
BaseComputeService.java:325)
at org.jclouds.compute.internal.BaseComputeService.runScriptOnNodesMatching(
BaseComputeService.java:579)
at org.jclouds.examples.compute.basics.MainApp.main(MainApp.java:187)
error: no nodes matched filter: inGroup(jcloud1)
````


Thanks & Regards,
Poornima.BS

Reply via email to