Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 407F6200B3B for ; Mon, 11 Jul 2016 15:11:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3F099160A62; Mon, 11 Jul 2016 13:11:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3C0D1160A78 for ; Mon, 11 Jul 2016 15:11:24 +0200 (CEST) Received: (qmail 34239 invoked by uid 500); 11 Jul 2016 13:11:23 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 34172 invoked by uid 99); 11 Jul 2016 13:11:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 13:11:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B741DC031B for ; Mon, 11 Jul 2016 13:11:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.18 X-Spam-Level: * X-Spam-Status: No, score=1.18 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cloudsoftcorp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id x_UNXsQeVziP for ; Mon, 11 Jul 2016 13:11:12 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 353EF5FD67 for ; Mon, 11 Jul 2016 13:11:10 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id h129so72810438lfh.1 for ; Mon, 11 Jul 2016 06:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudsoftcorp.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=w9m6w8DaVVZyxFEmBCoRNnxdZP7RqpL55z9PsU42wdc=; b=W7v9f3s7q53rJ/t61UwMon8IZo4ySyRiJo0OwJRsXnhyj2xdxlOAein7MVg5NMQKUN SeAyOnU84YIXU4Ne5/sVvZIrFmmWGL6wiDYfNIcgZMKcxeAaaqbtOYJKtVDe3V+qu78x VNBuxNsO/4rmJrfHpLIfdW7cFUloAEOy+EDfY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=w9m6w8DaVVZyxFEmBCoRNnxdZP7RqpL55z9PsU42wdc=; b=ZAg8d9BbVadjVbi98dyPcRqZps5eVd0P6y6t50uyNcXd9kUQUzUUTgI92B1VaL9hXP FxzdO/sHjzTcKzprFqd+SltdYSlTyZhyNWljvXPXJ+MdeQsa8qFoRy6ziMMiqfwYrn5n Y+vyvu8XQWJdAIkYcKDbc4xplmbXbFphGGCdtvsTpwP6KQpsV0OpgvQWPR3egVEgOvK5 o4lwZeZm2P8Z8EmAK/VAbsyoRHhkxoN466+KLErIeUgGKgQK13zakeU63qa8IERrR+Zv fcyu+/2nKK7jah1LRHtaTecFcuRaUaXKMuSOuKAsJSRADLrZOmoPuvBUG1Z/ACSErNGK ipSQ== X-Gm-Message-State: ALyK8tLCYYNEuf36Ndu2/cM+TLlPxVbpLvFeKmvjFtG9J/Pro5NuyR/xqpaar2nPjyVgYoAXAvi75PhoJRPvufj0rOo4zqpsuTp/N+xkTxZb5H4Re983yoM9/FAsWgjIBLZtio84iRDRrg0D8zsnzg== X-Received: by 10.25.214.161 with SMTP id p33mr4776570lfi.169.1468242667045; Mon, 11 Jul 2016 06:11:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.219.201 with HTTP; Mon, 11 Jul 2016 06:10:37 -0700 (PDT) In-Reply-To: References: From: Andrea Turli Date: Mon, 11 Jul 2016 15:10:37 +0200 Message-ID: Subject: Re: Need help in deploying Brooklyn on OpenStack liberty To: dev@brooklyn.apache.org Content-Type: multipart/alternative; boundary=001a1140d2be9d247c05375be29c X-Legal-Virus-Advice: Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by Cloudsoft Corporation Limited in this regard and the recipient should carry out such virus and other checks as it considers appropriate. X-Legal-Confidentiality: This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. Cloudsoft Corporation Limited does not accept responsibility for changes made to this message after it was sent. X-Legal-Company-Info: Cloudsoft Corporation Limited. Registered in Scotland. Number: SC349230. Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP. archived-at: Mon, 11 Jul 2016 13:11:25 -0000 --001a1140d2be9d247c05375be29c Content-Type: text/plain; charset=UTF-8 Hi, could you check the status of the VM provisioned in your Openstack instance? Does it have a private address and a floating ip address attached to it? If not, I'd simplify the network templateOptions by removing `floatingIpPoolNames`, `subnetId` and double-checking the "network-id" Andrea On 11 July 2016 at 13:20, Gowri LN wrote: > HI Andrea, > > > > The application fails at pre start . Is there anything that I am missing > out here ? I tried specifying the subnet ID as well as suggested in 1 > but it still fails > with null pointer exception. > > Sample Yaml : > name: VM - with subnet ID > services: > - type: brooklyn.entity.basic.EmptySoftwareProcess > location: > jclouds:openstack-devtest-compute: > endpoint: https://x.x.x.x:5000/v2.0/ > identity: "project:username" > credential: password > # optional > imageId: RegionOne/image-id > hardwareId: RegionOne/2 > loginUser: 'ubuntu' > loginUser.privateKeyFile: /path/to/keypair.pem > jclouds.openstack-nova.auto-generate-keypairs: false > templateOptions: > networks: [ "network-id" ] > subnetId: subnet-id-of-network > floatingIpPoolNames: [ "floating-ip-pool-name" ] > securityGroups: ['securitygroupname'] > keyPairName: "keypairname" > > Log : > Failed after 3ms: NullPointerException > > java.lang.NullPointerException > at > > org.apache.brooklyn.location.jclouds.JcloudsSshMachineLocation.getSubnetIp(JcloudsSshMachineLocation.java:373) > at org.apache.brooklyn.core.location.Machines.getSubnetIp(Machines.java:65) > at > > org.apache.brooklyn.entity.software.base.lifecycle.MachineLifecycleEffectorTasks$PreStartTask.run(MachineLifecycleEffectorTasks.java:448) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at > > org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:359) > at > > org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:519) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > > Any help ? > > Thanks in advance . > > On Thu, Jun 30, 2016 at 6:16 PM, Gowri LN wrote: > > > 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:ubuntu@x.x.x.x/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:ubuntu@x.x.x.x/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 < > > andrea.turli@cloudsoftcorp.com> wrote: > > > >> Sorry forgot the link > >> > >> http://docs.openstack.org/user-guide/dashboard_launch_instances.html > >> > >> Il 30/giu/2016 08:18, "Andrea Turli" > 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" 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 < > >> > andrea.turli@cloudsoftcorp.com> 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 > >> > > > >> > > >> > > >> > > >> > > > > > --001a1140d2be9d247c05375be29c--