Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED85510F68 for ; Thu, 20 Mar 2014 16:35:14 +0000 (UTC) Received: (qmail 46892 invoked by uid 500); 20 Mar 2014 16:35:13 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 46863 invoked by uid 500); 20 Mar 2014 16:35:13 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 46846 invoked by uid 99); 20 Mar 2014 16:35:12 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 16:35:12 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 637B71D553F; Thu, 20 Mar 2014 16:35:09 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1805018281019330022==" MIME-Version: 1.0 Subject: Re: Review Request 19399: CLOUDSTACK-6257: Resolving issue in template creation from user VM volume, added method to check the state of VM before template creation From: "Ashutosh Kelkar" To: "Santhosh Edukulla" Cc: "Ashutosh Kelkar" , "cloudstack" Date: Thu, 20 Mar 2014 16:35:09 -0000 Message-ID: <20140320163509.6335.16444@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Ashutosh Kelkar" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/19399/ X-Sender: "Ashutosh Kelkar" References: <20140319153240.6590.28666@reviews.apache.org> In-Reply-To: <20140319153240.6590.28666@reviews.apache.org> Reply-To: "Ashutosh Kelkar" X-ReviewRequest-Repository: cloudstack-git --===============1805018281019330022== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On March 19, 2014, 3:32 p.m., Santhosh Edukulla wrote: > > test/integration/component/test_usage.py, line 680 > > > > > > Also, just a thought. If stop operation itself verifies the state and return, so test case can check some thing like if virtual_machine.stop() == FAIL: > > raise\fail. I believe we can use getState inside stop operation itself. Basically, stop operation return can be enforced and checked. > > > > Ashutosh Kelkar wrote: > Here if we don't want to touch existing test cases with stop operation, we will have to raise Exception through stop method if getState return FAIL to Stop method. Is that ok? > > Santhosh Edukulla wrote: > That should be fine. Ok I will update the patch with that change. - Ashutosh ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19399/#review37723 ----------------------------------------------------------- On March 20, 2014, 11:56 a.m., Ashutosh Kelkar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/19399/ > ----------------------------------------------------------- > > (Updated March 20, 2014, 11:56 a.m.) > > > Review request for cloudstack and Santhosh Edukulla. > > > Bugs: CLOUDSTACK-6257 > https://issues.apache.org/jira/browse/CLOUDSTACK-6257 > > > Repository: cloudstack-git > > > Description > ------- > > As suggested, added getState method for VirtualMachine class, and it is called before template creation. If VM fails to go into desired state, it returns failure. > > > Diffs > ----- > > test/integration/component/test_project_usage.py ba0a63c > test/integration/component/test_resource_limits.py f0d558e > test/integration/component/test_tags.py 2a6e076 > test/integration/component/test_templates.py 3e83615 > test/integration/component/test_usage.py 5979a0a > tools/marvin/marvin/codes.py e4a0f6a > tools/marvin/marvin/integration/lib/base.py 775b289 > > Diff: https://reviews.apache.org/r/19399/diff/ > > > Testing > ------- > > Yes. > > > Thanks, > > Ashutosh Kelkar > > --===============1805018281019330022==--