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 1897AE500 for ; Wed, 30 Jan 2013 08:10:03 +0000 (UTC) Received: (qmail 14253 invoked by uid 500); 30 Jan 2013 08:10:02 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 14063 invoked by uid 500); 30 Jan 2013 08:10:01 -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 14039 invoked by uid 99); 30 Jan 2013 08:10:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2013 08:10:01 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Murali.Reddy@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; Wed, 30 Jan 2013 08:09:55 +0000 X-IronPort-AV: E=Sophos;i="4.84,566,1355097600"; d="scan'208";a="607577" Received: from banpmailmx02.citrite.net ([10.103.128.74]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 30 Jan 2013 08:09:34 +0000 Received: from BANPMAILBOX01.citrite.net ([10.103.128.71]) by BANPMAILMX02.citrite.net ([10.103.128.74]) with mapi; Wed, 30 Jan 2013 13:39:31 +0530 From: Murali Reddy To: "cloudstack-dev@incubator.apache.org" Date: Wed, 30 Jan 2013 13:39:30 +0530 Subject: Re: [MERGE] Support VM Snapshot Thread-Topic: [MERGE] Support VM Snapshot Thread-Index: Ac3+wSGyn14XROzsQpmu4vCXIgPx+g== Message-ID: In-Reply-To: <2C97F788CCC013428671BC3A5FC2F64D15AA86@c-mail.cloud-valley.com.cn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.5.121010 acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On 30/01/13 1:14 PM, "Mice Xia" wrote: >Murali, > >I haven=B9t tested all possible cases, but due to the fact possible VM >state transits are defined by state machine, all operations that results >in VM state change are blocked (or fail) when VM in snapshotting or >reverting state.=20 >For operations that does not cause VM state change, it depends on the >implementation. Let's say if moveVMToUser has no requirement to the state >of target VM, and does not check VM state programmatically, it will >succeed. I agree for the operations that need state transition, by virtue of the fact that there won't be state transition from the new states, operation will be blocked. For the operations that has logic to perform/reject operation on the state of the VM is Running/Stopped, I suspect possibility of regressions. In the e.g. moveVMToUser, it blocks the operation if VM state is Running, but will succeed if the state is 'RunningSnapshotting' which is un-intended. > >-Mice > >-----Original Message----- >From: Murali Reddy [mailto:Murali.Reddy@citrix.com] >Sent: Wednesday, January 30, 2013 3:12 PM >To: cloudstack-dev@incubator.apache.org >Subject: Re: [MERGE] Support VM Snapshot > >>>> >>>> >>>> >>>> Potential impact and notes: >>>> * 4 new states are added to VM state Machine > >Mice, > >When the VM is in transient states (RunningSnapshotting, >StoppedSnapshotting), I see that you have taken care of vmsync. But have >you ensured that all the concurrent operations on the VM are blocked when >the VM is in RunningSnapshotting, StoppedSnapshotting states? For e.g. >Can moveVMToUser can simply go ahead if the VM is in 'RunningSnapshotting' >state but would have failed if VM was in 'Running' sate.? > >-Murali > > > >