Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2FD2CDC23 for ; Tue, 31 Jul 2012 07:47:32 +0000 (UTC) Received: (qmail 31629 invoked by uid 500); 31 Jul 2012 07:47:31 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 30647 invoked by uid 500); 31 Jul 2012 07:47:30 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 30197 invoked by uid 99); 31 Jul 2012 07:47:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2012 07:47:30 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of likitha.shetty@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2012 07:47:25 +0000 X-IronPort-AV: E=Sophos;i="4.77,681,1336348800"; d="scan'208,217";a="12201950" Received: from banpmailmx02.citrite.net ([10.103.128.74]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 31 Jul 2012 07:47:03 +0000 Received: from BANPMAILBOX01.citrite.net ([10.103.128.72]) by BANPMAILMX02.citrite.net ([10.103.128.74]) with mapi; Tue, 31 Jul 2012 13:17:01 +0530 From: Likitha Shetty To: "cloudstack-dev@incubator.apache.org" Date: Tue, 31 Jul 2012 13:17:01 +0530 Subject: RE: Fail to get password for VM using API Thread-Topic: Fail to get password for VM using API Thread-Index: Ac1uDDvBgGI/WE9oR5uIEIIOyzwyJwAn8RsAABBuNakAAGITsA== Message-ID: <64FB1554ABC9B44FAA773FBD6CB889C2F93C63A308@BANPMAILBOX01.citrite.net> References: <593639CE42EE1D4DA0D0393D2AF452C038C5BDFB@Wowex5.wowlan.com>, <593639CE42EE1D4DA0D0393D2AF452C038C5C0BD@Wowex5.wowlan.com> In-Reply-To: <593639CE42EE1D4DA0D0393D2AF452C038C5C0BD@Wowex5.wowlan.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_64FB1554ABC9B44FAA773FBD6CB889C2F93C63A308BANPMAILBOX01_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_64FB1554ABC9B44FAA773FBD6CB889C2F93C63A308BANPMAILBOX01_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Tommy, Try generating a new key-pair using the api, createSSHKeyPair. And then us= e the key-pair name you supplied for createSSHKeyPair as the value for para= meter keypair while deploying the VM. Hope it helps. Thank you, Likitha -----Original Message----- From: Tommy Aditya Lawanto [mailto:tommy@wowrack.com] Sent: Tuesday, July 31, 2012 1:00 PM To: cloudstack-dev@incubator.apache.org Subject: RE: Fail to get password for VM using API @alena : thank you very much for your help :). I tried to set keypair when = deploying a vm, but it returns error message : A key pair with name 'my-gen= erated-string' was not found. Am i supposed to do something first for this = ssh keypair ? (i try supplying "ssh keypair" value with my auto-generated-s= tring. Sorry for the noob question, i'm a newbie in the cloud computing environmen= t :) ________________________________________ From: Alena Prokharchyk [Alena.Prokharchyk@citrix.com] Sent: Monday, July 30, 2012 11:35 PM To: cloudstack-dev@incubator.apache.org Subject: Re: Fail to get password for VM using API On 7/29/12 9:31 PM, "Tommy Aditya Lawanto" > wrote: >I'm getting this error when i try to get password from a vm using >password-enabled template (through API) : > > > [error] =3D> No password for VM with id '70' found. > > >I've tried resetting the password using management server, and it works >fine. Right after the operation successful, a message box popped up, >giving me the new password. However, when i try get the password using >API command "getVMPassword", it always fail. > > >How can I fix it? > > >Best Regard ! > Tommy, The password is getting stored in the DB only when the user vm is deployed = using SshKeyPair. So only in this case you can use getVMPassword api to ret= rieve the password. I'll make sure the documentation is updated for this co= mmand in the future release. In your case, if you forgot the password returned to you on the confirmatio= n box, you can always reset it using resetPasswordForVirtualMachine API -Alena. --_000_64FB1554ABC9B44FAA773FBD6CB889C2F93C63A308BANPMAILBOX01_--