I think it is loginUser.privateKeyFile: /path/to/private/key/for/loginUser
not loginUser.privateKeyData: "/home/ubuntu/openstack-in-key-g-priv.ppk" On 23 June 2016 at 14:15, Gowri LN <gowri.ln...@gmail.com> wrote: > Hi Andrea, > > Apologies. I missed out the difference of including > loginUser,loginUser.privateKeyyFile outside template options. > > I tried the new yaml as suggested but I get the following error : > > > RunNodesException: error running 1 node > > group(brooklyn-o982m4-ubuntu-vm-ne-pdy7-empty-software-p-hkpn) > > location(RegionOne) image(...imageid..) size(2) > options({loginUser=ubuntu, > > loginPrivateKeyPresent=true, scriptPresent=true, > > securityGroups=[..my-security-group-name], > > > userMetadata={Name=brooklyn-o982m4-ubuntu-vm-ne-pdy7-empty-software-p-hkpn-artw, > > brooklyn-user=ubuntu, brooklyn-app-id=PDy7dD1P, > brooklyn-app-name=VM-new13, > > brooklyn-entity-id=hKpNlTVx, brooklyn-entity-name=Empty software process, > > brooklyn-server-creation-date=2016-06-23-1130}, networks=[......], > > floatingIpPoolNames=[.....], generateKeyPair=true, configDrive=false}) > > Execution failures: > > 0 error[s] > > Node failures: > > 1) IllegalArgumentException on node > > RegionOne/e9ded49e-8ae0-404b-9a0f-7705f6a55622: > > java.lang.IllegalArgumentException: no credential or ssh agent found for > > ubuntu on node RegionOne/e9ded49e-8ae0-404b-9a0f-7705f6a55622 > > at > > > com.google.common.base.Preconditions.checkArgument(Preconditions.java:148) > > > yaml I tried: > name: VM-new13 > services: > - type: brooklyn.entity.basic.EmptySoftwareProcess > name: Empty software process > location: > jclouds:openstack-devtest-compute: > endpoint: https://x.x.x.x:5000/v2.0/ > identity: "my-tenant:my-username" > credential: password > imageId: RegionOne/image-id > hardwareId: RegionOne/2 > loginUser: "ubuntu" > loginUser.privateKeyData: "/home/ubuntu/openstack-in-key-g-priv.ppk" > templateOptions: > networks: [ "network-id" ] > floatingIpPoolNames: [ "name-of-my-floatingIp-pool" ] > securityGroups: ['my-security-group-name'] > > > Thanks, > Gowri > > > On Thu, Jun 23, 2016 at 1:32 PM, Andrea Turli < > andrea.tu...@cloudsoftcorp.com> wrote: > > > Hi Gowri, > > > > > 2016-06-23 06:05:12,297 WARN o.a.b.l.j.JcloudsLocation > > > [brooklyn-execmanager-XlwkWB3k-312]: Ignoring request to set template > > > option loginUser because this is not supported by > > > org.jclouds.openstack.nova.v2_0.compute.options.NovaTemplateOptions > > > 2016-06-23 06:05:12,298 WARN o.a.b.l.j.JcloudsLocation > > > [brooklyn-execmanager-XlwkWB3k-312]: Ignoring request to set template > > > option loginUser.privateKeyData because this is not supported by > > > org.jclouds.openstack.nova.v2_0.compute.options.NovaTemplateOptions > > > > > > I guess this means that you are passing `loginUser` and > > `loginUser.privateKeyData` as templateOptions. Try again exactly with > > this one, and let us know: > > > > services: > > - type: brooklyn.entity.basic.EmptySoftwareProcess > > > > location: > > jclouds:openstack-devtest-compute: > > endpoint: https://x.x.x.x:5000/v2.0/ > > identity: "my-tenant:my-username" > > credential: password > > loginUser: ubuntu > > loginUser.privateKeyFile: /path/to/private/key/for/loginUser > > imageId: RegionOne/image-id > > hardwareId: RegionOne/2 > > templateOptions: > > networks: [ "network-id" ] > > floatingIpPoolNames: [ "name-of-my-floatingIp-pool" ] > > > > Best, > > Andrea > > >