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 6F219109AE for ; Fri, 19 Jul 2013 09:24:00 +0000 (UTC) Received: (qmail 10493 invoked by uid 500); 19 Jul 2013 09:23:59 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 10288 invoked by uid 500); 19 Jul 2013 09:23:58 -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 10273 invoked by uid 500); 19 Jul 2013 09:23:58 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 10255 invoked by uid 99); 19 Jul 2013 09:23:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 09:23:57 +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 (nike.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; Fri, 19 Jul 2013 09:23:51 +0000 X-IronPort-AV: E=Sophos;i="4.89,700,1367971200"; d="scan'208";a="3797175" Received: from sinpex01cl03.citrite.net ([10.151.46.34]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/AES128-SHA; 19 Jul 2013 09:23:29 +0000 Received: from SINPEX01CL01.citrite.net ([169.254.1.101]) by SINPEX01CL03.citrite.net ([169.254.3.246]) with mapi id 14.02.0342.004; Fri, 19 Jul 2013 17:23:27 +0800 From: Murali Reddy To: "dev@cloudstack.apache.org" , Ryan Dietrich , Marcus Sorensen CC: cloudstack Subject: Re: Review Request 12752: Async commands can inject the job id Thread-Topic: Review Request 12752: Async commands can inject the job id Thread-Index: AQHOhA5+Wfnq8uR+LUiE8VzoUc1H1ZlqkIoAgAAQOQCAAPBzAA== Date: Fri, 19 Jul 2013 09:23:27 +0000 Message-ID: In-Reply-To: <20130719003248.1153.23435@reviews.apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.5.121010 x-originating-ip: [10.13.107.79] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Ryan, You should open a bug and add details on what the use case you are trying to solve. Since CloudStack is not in control of UUID generation, you should at least check that uniqueness of passed in UUID. Also please introduce a new smoke test for 'injected job id' instead of piggy backing the test for deploy VM. On 19/07/13 6:02 AM, "Ryan Dietrich" wrote: > > >> On July 18, 2013, 11:34 p.m., Marcus Sorensen wrote: >> > server/src/com/cloud/async/AsyncJobVO.java, line 141 >> >=20 >>>> >> > >> > I'm not immediately certain why this was pulled out. > >Nothing is using it. I did a scan to see if anyone is using it, and I >didn't see anything. Dead could should be removed, right? Git will >remember for us if we need it later. > > >- Ryan > > >----------------------------------------------------------- >This is an automatically generated e-mail. To reply, visit: >https://reviews.apache.org/r/12752/#review23457 >----------------------------------------------------------- > > >On July 18, 2013, 11:28 p.m., Ryan Dietrich wrote: >>=20 >> ----------------------------------------------------------- >> This is an automatically generated e-mail. To reply, visit: >> https://reviews.apache.org/r/12752/ >> ----------------------------------------------------------- >>=20 >> (Updated July 18, 2013, 11:28 p.m.) >>=20 >>=20 >> Review request for cloudstack and Marcus Sorensen. >>=20 >>=20 >> Repository: cloudstack-git >>=20 >>=20 >> Description >> ------- >>=20 >> I added "injectedjobid" to the BaseAsyncCmd class as a parameter. >> If set, it will allow you to tell Cloudstack what the job id instead of >>it choosing one. >> A basic string length test is done to verify the variable passed in is >>actually a UUID. >> If it is not valid, it is ignored and the job generates it's own. >>=20 >>=20 >> Diffs >> ----- >>=20 >> api/src/org/apache/cloudstack/api/BaseAsyncCmd.java 0e6f95d >> server/src/com/cloud/api/ApiServer.java 95f17af >> server/src/com/cloud/async/AsyncJobVO.java 41eccb4 >> test/integration/smoke/test_deploy_vm.py 425aeb7 >> tools/marvin/marvin/codegenerator.py 632b8c6 >> tools/marvin/marvin/integration/lib/base.py 161d03c >>=20 >> Diff: https://reviews.apache.org/r/12752/diff/ >>=20 >>=20 >> Testing >> ------- >>=20 >> Updated marvin, updated the deploy vm test. Ran multiple async >>commands manually, with and without injectedjobid present, no issues >>detected. >>=20 >>=20 >> Thanks, >>=20 >> Ryan Dietrich >>=20 >> > >