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 31152DF87 for ; Sun, 21 Oct 2012 04:57:53 +0000 (UTC) Received: (qmail 66169 invoked by uid 500); 21 Oct 2012 04:57:51 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 66119 invoked by uid 500); 21 Oct 2012 04:57:50 -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 66078 invoked by uid 99); 21 Oct 2012 04:57:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2012 04:57:49 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Chiradeep.Vittal@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2012 04:57:42 +0000 X-IronPort-AV: E=Sophos;i="4.80,624,1344211200"; d="scan'208";a="41937178" Received: from sjcpmailmx02.citrite.net ([10.216.14.75]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 21 Oct 2012 04:57:20 +0000 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.72]) by SJCPMAILMX02.citrite.net ([10.216.14.75]) with mapi; Sat, 20 Oct 2012 21:57:19 -0700 From: Chiradeep Vittal To: CloudStack DeveloperList , Harikrishna Patnala , Shweta Agarwal , #Cloud - QA Team Date: Sat, 20 Oct 2012 21:57:19 -0700 Subject: Re: review comment for Reset ssh key functional spec Thread-Topic: review comment for Reset ssh key functional spec Thread-Index: Ac2vSIzk9+fryX1xTaOhrmiDzoENhw== Message-ID: In-Reply-To: <02C38648D4635F4EB02DE11EE81CF1EE0120ABCA64BC@BANPMAILBOX01.citrite.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.13.0.110805 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Not sure if this discussion came to any conclusion. It is worth noting that none of the current end-user APIs deal with multiple resources: every fw rule, vm, volume, snapshot etc is addressed individually. If you want multiple vms, then you have to consider the case where 10 out of 100 fail -- what is the expected semantics here? Do you want the API to return the 10 that failed? Or fail completely? Do you want it to stop at the first failure? Is there a minimum it needs to do? What is the expected timeout -- this will depend largely on the number of vms. Do we put a limit on the number of vms? It is better IMO to stick to the original design. -- Chiradeep On 10/11/12 2:07 AM, "Srinivas Vejalla" wrote: >We should be able to reset single or multiple VM ssh keys. > >Srini// > >From: Harikrishna Patnala >Sent: Thursday, October 11, 2012 2:36 PM >To: Shweta Agarwal; cloudstack-dev@incubator.apache.org; #Cloud - QA Team >Subject: RE: review comment for Reset ssh key functional spec > >With the current plan, it is targeted to reset ssh for a single VM >provided in the api call. If we want to support the scenario for multiple >VMs at a time, we can try out by putting a list of VMs in the api call on >which resetting can be done. > >From: Shweta Agarwal >Sent: 11 October 2012 13:38 >To: Harikrishna Patnala; >cloudstack-dev@incubator.apache.org.org>; #Cloud - QA Team >Subject: RE: review comment for Reset ssh key functional spec > >What about my scenario where in I want to update ssh key of my 100VMs >having same ssh key pair at one go . > >Can we achieve it with current Api implementation . > >From: Harikrishna Patnala >Sent: Thursday, October 11, 2012 12:30 PM >To: Shweta Agarwal; >cloudstack-dev@incubator.apache.org.org>; #Cloud - QA Team >Subject: RE: review comment for Reset ssh key functional spec > > >* The required parameters are listed In the FS and there are no >optional parameters. > >* The password that it will return as a plain text in the >response. > >* If the User VM is in running state, it is rebooted as part of >the ssh key reset to update the new ssh public key in VM >(cloud-set-guest-sshkey script runs as a init service in VM to get the >new ssh public key from virtual router). If the VM is in stopped state, >then reset SSH api action won't reboot the VM. > >* But rebooting the VM as part of reset SSH key may lead to the >loss of VM session. So an optional parameter "forcereboot" can be put in >the API call with the value "true/false". If the VM is in running state >and forcereboot is true then VM is rebooted after the reset of SSH key. >If the VM is in running state and forcereboot is false then an error >message is prompted saying "VM needs to be stopped". > >Please review and comment on this. > >Thanks >Harikrishna >From: Shweta Agarwal >Sent: 11 October 2012 10:42 >To:=20 >cloudstack-dev@incubator.apache.org.org>; #Cloud - QA Team; Harikrishna Patnala >Subject: review comment for Reset ssh key functional spec > > >My review comment for ResetSSHkey Functional spec > >* In the API parameters Please mention which all parameters are >required and which all are optional. > >* The password which it will return in the response to >resetSSHKeyForVirtualMachine api will it be encrypted password or in >plain text . > >* What will happen to the current session of the VM which user >has login with the old password when you will change the password > >* More over a design consideration > >* When i have several VM with same SSH keypair and my private >key is compromised .I would like to change Keypair of all my VMs having >old keypair . So is there a way to do the same with the current API >design . I definitely don't want to iterate the entire process Per VM ;if >I have let say 100 VMs. For example If i give my oldkeypair name and new >keypair name then it should change the keypair of all the VMs having old >keypair of my account. > > > >Thanks > >Shweta > > >