Hi , I changed the loginUser.privateKeyFile to point to my key.pem instead of private key . This resolved the "doesn't contain % line [-----BEGIN ]" error .
i.e loginUser.privateKeyFile: / path/to/my/my-keypair.pem instead of /path/to/my-keypair-private.ppk . Now a VM gets created , gets a floating IP and assigns my keypair as well :) . I can ssh into VM using the keypair . But , the application in Brooklyn turns to on fire with null pointer exception. Debug log: > OS credential inference: > OsCredential[no-public-key;no-private-key,password(len=12)] > 2016-06-30 11:08:31,440 DEBUG o.a.b.l.j.JcloudsSshMachineLocation > [brooklyn-execmanager-PM0NSrkG-6]: Resolved subnet hostname x.x.x.x for > SshMachineLocation[x.x.x.x:[email protected]/x.x.x.x:22(id=OX3nU7OP)] 2016-06-30 11:08:31,440 DEBUG o.a.b.core.location.Machines > [brooklyn-execmanager-PM0NSrkG-6]: computed subnet hostname x.x.x.x for > SshMachineLocation[x.x.x.x:[email protected]/x.x.x.x:22(id=OX3nU7OP)] 2016-06-30 11:08:31,441 DEBUG o.a.b.u.c.t.BasicExecutionManager > [brooklyn-execmanager-PM0NSrkG-6]: Exception running task > Task[pre-start]@OmPQUIGb (rethrowing): java.lang.NullPointerException 2016-06-30 11:08:31,441 DEBUG o.a.b.u.core.task.CompoundTask > [brooklyn-execmanager-PM0NSrkG-2]: Aborting secondary job queue for > Task[start]@KbfqJrxf due to error in child task Task[pre-start]@OmPQUIGb > (java.util.concurrent.ExecutionException: java.lang.NullPointerException, > being rethrown) 2016-06-30 11:08:31,441 DEBUG o.a.b.u.c.t.BasicExecutionManager > [brooklyn-execmanager-PM0NSrkG-2]: Exception running task Task[DST manager > (internal)]@cfSqj3nd (rethrowing): java.util.concurrent.ExecutionException: > java.lang.NullPointerException 2016-06-30 11:08:31,452 DEBUG o.a.b.u.core.task.CompoundTask > [brooklyn-execmanager-PM0NSrkG-0]: Parent task DstJob:KbfqJrxf ignoring > child error > (org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: > NullPointerException) in presence of our own error > (org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: > NullPointerException) 2016-06-30 11:08:31,453 WARN o.a.b.c.m.i.EffectorUtils > [brooklyn-execmanager-PM0NSrkG-0]: Error invoking start at > EmptySoftwareProcessImpl{id=OCLIVRf3}: NullPointerException 2016-06-30 11:08:31,454 DEBUG o.a.b.u.c.t.BasicExecutionManager > [brooklyn-execmanager-PM0NSrkG-0]: Exception running task > Task[start]@KbfqJrxf (rethrowing): > org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException: > Error invoking start at EmptySoftwareProcessImpl{id=OCLIVRf3}: > NullPointerException Any suggestions ? > Thanks, Gowri On Thu, Jun 30, 2016 at 11:52 AM, Andrea Turli < [email protected]> wrote: > Sorry forgot the link > > http://docs.openstack.org/user-guide/dashboard_launch_instances.html > > Il 30/giu/2016 08:18, "Andrea Turli" <[email protected]> ha > scritto: > > > Gowri, > > > > Same suggestion as before. Please follow the first 2 points of this guide > > [1] to verify that you can manually launch and ssh into the VM. > > > > Please take notes of the choices you made to provision the VM (imageId, > > network and so on) and the user and ssh key you used to access the VM. > > > > With those details, I'm sure you can then configure the location in the > > YAML blueprint correctly. > > > > Andrea > > > > Il 30/giu/2016 07:51, "Gowri LN" <[email protected]> ha scritto: > > > > Hi Andrea, > > > > Thanks a lot for the constant support . > > > > I want to use my own keypair already available in OpenStack so that I can > > connect to the VM later using my keypair. > > > > I did try as specified in yaml [1]. > > Now it looks like it is picking up the keypair (- may be it was my error > in > > the yaml before). > > > > Though I am getting a new error : > > > > > > > Error invoking start at EmptySoftwareProcessImpl{id=TrmhitVc}: chars > > > PuTTY-User-Key-File-2: ssh-rsa > > > Encryption: none > > > Comment: imported-openssh-key > > > Public-Lines: 6 > > > *..some lines...............* > > > Private-Lines: 14 . > > > > > > > > > .. some lines........... > > > Private-MAC: 37589......................57f > > > doesn't contain % line [-----BEGIN ] > > > > > > > The private key I am pointing in yaml is generated using putty gen by > > loading my key - "my-keypair" > > > > Any suggestions ? > > > > > > [1]: > https://gist.github.com/andreaturli/33509ff74bb8d0cfb77d5ba36c46977e > > > > > > > > > > > > On Mon, Jun 27, 2016 at 1:55 PM, Andrea Turli < > > [email protected]> wrote: > > > > > Gowri, > > > > > > could you please share the steps you have done to provision the VM > > manually > > > and the SSH command to access it? > > > > > > --- > > > > > > Yes, I can manually provision VM with the image ( my-image-id) and ssh > > > > into it using my-keypair . > > > > > > > > > > when you say using `my-keypair`, do you mean, you want to use always a > > > specific keypair already available on your Openstack? By default, > > Brooklyn > > > will allocate a keypair for you, but in case this is not the behavior > you > > > want, you can try the following YAML at [1] > > > > > > Good luck, > > > Andrea > > > > > > [1]: > > https://gist.github.com/andreaturli/33509ff74bb8d0cfb77d5ba36c46977e > > > > > > > > > >
