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 F0D0B107BC for ; Fri, 28 Jun 2013 17:35:10 +0000 (UTC) Received: (qmail 24713 invoked by uid 500); 28 Jun 2013 17:35:10 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 24677 invoked by uid 500); 28 Jun 2013 17:35:10 -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 24669 invoked by uid 99); 28 Jun 2013 17:35:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 17:35:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shadowsor@gmail.com designates 209.85.128.180 as permitted sender) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 17:35:05 +0000 Received: by mail-ve0-f180.google.com with SMTP id pa12so2086510veb.11 for ; Fri, 28 Jun 2013 10:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=tlzeDH2vooAFeZr030fjh7fEJPjUa/oxi6oyg6gLspw=; b=sYrDGJ4iYs85KjWKIclp7P1Wf0DqpzlW9cEAEcfFwc167bpzVnzhmFZcq7xbpYNbQw 9QobAj5nzeSZNQG5TdSCIZG99FcujC5UCO6+6b2+97bWdfpWb+/Gy5LczX6/YtbZkWDi lyykiI9PAsil+0rRhXLLm6ZJHXOZPuWtOukpsTzFq84+DLVWedCC2OEkvg2IR0SdHeAt 4ox1mwLOWuiS+COWVyy97ln8T91tLxPJCAEdsjUNJPoXgDb38Qamx9qxVuTlcia24cPs ypZi0Tde+gB4sjEmuGMV+277uwe0Y+9394UeX5FAZE4VUEcL2U/n0LmTtLB4XJk4nJ9J Pkcg== MIME-Version: 1.0 X-Received: by 10.58.255.199 with SMTP id as7mr6001019ved.23.1372440460695; Fri, 28 Jun 2013 10:27:40 -0700 (PDT) Received: by 10.52.64.147 with HTTP; Fri, 28 Jun 2013 10:27:40 -0700 (PDT) In-Reply-To: <20130424233015.22503.93631@reviews.apache.org> References: <20130424232928.22503.2016@reviews.apache.org> <20130424233015.22503.93631@reviews.apache.org> Date: Fri, 28 Jun 2013 11:27:40 -0600 Message-ID: Subject: Re: Review Request: Remove 2k limitation for user data on a deployVMCmd issued as an HTTP POST request From: Marcus Sorensen To: "dev@cloudstack.apache.org" , Min Chen Cc: Kelven Yang , Chip Childers , Hugo Trippaers , Venkata Siva Vijayendra Bhamidipati , cloudstack Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Anything special required to do this POST? Just read this thread when searching for "userdata 2k" and noticed that POST is supposed to be supported, but if I run the following it doesn't work: curl --request POST 'http://localhost:8096/client/api' --data 'command=3DlistVirtualMachines' On Wed, Apr 24, 2013 at 5:30 PM, Min Chen wrote: > > >> On April 24, 2013, 11:29 p.m., Min Chen wrote: >> > Ship It! > > Prasanna has fixed the marvin test and pushed to master. > These are the rebased commits on master: > 4e9e7937ed5e56cbd7f678b2ed9863a56af16635 Fix Vijay's test to use the marv= in integratin libararies > b0caae6b33347f36721f28dca1fa12e7b18f1cd1 CLOUDSTACK-1086: DeployVirtualMa= chine userdata enhancements > > > - Min > > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/10294/#review19680 > ----------------------------------------------------------- > > > On April 23, 2013, 9:45 p.m., Venkata Siva Vijayendra Bhamidipati wrote: >> >> ----------------------------------------------------------- >> This is an automatically generated e-mail. To reply, visit: >> https://reviews.apache.org/r/10294/ >> ----------------------------------------------------------- >> >> (Updated April 23, 2013, 9:45 p.m.) >> >> >> Review request for cloudstack, Chip Childers, Hugo Trippaers, Kelven Yan= g, and Min Chen. >> >> >> Description >> ------- >> >> Please refer to https://cwiki.apache.org/confluence/display/CLOUDSTACK/D= eployVirtualMachine+userdata+enhancements for a background on the requireme= nts driving this patch. >> >> This patch hasn't been extensively tested yet, and I will update this re= quest with more info. I am uploading a first diff for initial review/commen= ts. >> >> >> This addresses bug CLOUDSTACK-1086. >> >> >> Diffs >> ----- >> >> api/src/com/cloud/vm/UserVmService.java aa21136 >> api/src/org/apache/cloudstack/api/BaseCmd.java 42c0680 >> api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java 70c= 0159 >> api/src/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java ff8= fff1 >> core/src/com/cloud/vm/UserVmVO.java a16eaf9 >> server/src/com/cloud/api/ApiDispatcher.java 925d90a >> server/src/com/cloud/api/ApiServer.java d842819 >> server/src/com/cloud/api/ApiServerService.java 12d8b52 >> server/src/com/cloud/api/ApiServlet.java 03bfb5f >> server/src/com/cloud/vm/UserVmManagerImpl.java 1843f60 >> server/test/com/cloud/vm/MockUserVmManagerImpl.java 0d0a8f4 >> server/test/com/cloud/vm/dao/UserVmDaoImplTest.java 0936180 >> server/test/com/cloud/vm/dao/UserVmDaoTestConfiguration.java PRE-CREAT= ION >> server/test/resources/UserVMDaoTestContext.xml PRE-CREATION >> setup/db/db/schema-410to420.sql 10cdbba >> test/integration/component/test_deploy_vm_with_userdata.py PRE-CREATIO= N >> >> Diff: https://reviews.apache.org/r/10294/diff/ >> >> >> Testing >> ------- >> >> Manual testing done with scripts generating large/small userdata during = creation of VMs, with both GET and POST requests confirmed to work correctl= y, on both integration port and the 8080 port. >> >> Basic Marvin test to create a VM with user data has been written. Since = marvin doesn't yet support POSTable APIs, as soon as that is made available= for create/update VM operations, marvin tests will be written for the same= . Requesting that this be noted as an AI for the future. >> >> >> Thanks, >> >> Venkata Siva Vijayendra Bhamidipati >> >> >