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 A7BBFCAFB for ; Mon, 3 Jun 2013 17:04:22 +0000 (UTC) Received: (qmail 51299 invoked by uid 500); 3 Jun 2013 17:04:22 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 51110 invoked by uid 500); 3 Jun 2013 17:04:21 -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 51100 invoked by uid 99); 3 Jun 2013 17:04:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 17:04:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mike.tutkowski@solidfire.com designates 209.85.214.181 as permitted sender) Received: from [209.85.214.181] (HELO mail-ob0-f181.google.com) (209.85.214.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 17:04:15 +0000 Received: by mail-ob0-f181.google.com with SMTP id 16so7595197obc.26 for ; Mon, 03 Jun 2013 10:03:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=RHqTIqQ/NHWj5If4DkQQUFgXjEs6FgjrF9wTaSF4+Uo=; b=iJTBjtWobRCjceq7zdAIljijGYB2P1qUp/Hl5D+/WcN9S8yY4Viqwg49nwkArM2jV5 z4ijcTlvKvzZoyPL2H/Nkn6I6UdJNSNe0aDypFe7GB1NDWYgJVF6rMqd3WCC4ccwx1hO pdENtaDQDHr5qNmo5tdc2fg0zeBrjHZGDUBgovnHZiuQ/cDVWJabOZe8PB2RVFixZyY1 WW5LMJD0wnmPUPsMF/AKNzUN779rdjivaMc6sCKDhcYPFx3imV672+mGAS1mnEb33i7x Z0JgQYgtbGp29oLvIUFDbi4flySVPcY3h+YUNZ7SmXHK0GM9URA9qZ7CBbh+wG5H3Auc jjAw== MIME-Version: 1.0 X-Received: by 10.60.33.202 with SMTP id t10mr10518907oei.2.1370279032633; Mon, 03 Jun 2013 10:03:52 -0700 (PDT) Received: by 10.182.10.66 with HTTP; Mon, 3 Jun 2013 10:03:52 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Jun 2013 11:03:52 -0600 Message-ID: Subject: Re: Trouble with deployDataCenter.py From: Mike Tutkowski To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=089e013c66b4fbd35604de42f232 X-Gm-Message-State: ALoCoQlIygezCKZMBQv9IlblXH3S7X/BB1buuojgJU55iFUOnUtQb3wIps+wV5VE4I8/qJzxKRIX X-Virus-Checked: Checked by ClamAV on apache.org --089e013c66b4fbd35604de42f232 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I have fixed this in a patch I submitted last week. I'm not sure when it began, but I noticed it a long time ago and had just sent out an e-mail then and corrected it in my sandbox. Let me see if I can find what I did to fix it. On Mon, Jun 3, 2013 at 10:09 AM, Will Stevens wrote= : > Has anyone else experience this? I just pulled in the master code into m= y > branch and now I am getting this in my dev environment. > > [DEBUG] Executing command line: python ../marvin/marvin/deployDataCenter.= py > -i devcloud.cfg > Traceback (most recent call last): > File "../marvin/marvin/deployDataCenter.py", line 517, in > deploy.deploy() > File "../marvin/marvin/deployDataCenter.py", line 500, in deploy > self.loadCfg() > File "../marvin/marvin/deployDataCenter.py", line 451, in loadCfg > apiKey, securityKey =3D self.registerApiKey() > File "../marvin/marvin/deployDataCenter.py", line 390, in registerApiKe= y > listuserRes =3D self.testClient.getApiClient().listUsers(listuser) > File > > "/mnt/hgfs/palo_alto/incubator-cloudstack/tools/marvin/marvin/cloudstackA= PI/cloudstackAPIClient.py", > line 2385, in listUsers > response =3D self.connection.marvin_request(command, data=3Dpostdata, > response_type=3Dresponse) > TypeError: marvin_request() got an unexpected keyword argument 'data' > > Thanks, > > ws > > > On Mon, May 6, 2013 at 5:13 PM, Mike Tutkowski < > mike.tutkowski@solidfire.com > > wrote: > > > It looks like the marvin_request method in cloudstackConnection.py does > not > > have a parameter named 'data'. > > > > I changed the signature locally to the following and it works now: > > > > def marvin_request(self, cmd, response_type=3DNone, method=3D'GET', dat= a=3D''): > > > > > > On Mon, May 6, 2013 at 2:59 PM, Mike Tutkowski < > > mike.tutkowski@solidfire.com > > > wrote: > > > > > I don't have much Python experience, but it looks like we're trying t= o > > > pass in a named parameter that doesn't exist on the receiving side. > > > > > > Perhaps I need to update a Python package? > > > > > > def listUsers(self, command, postdata=3D{}): > > > > > > response =3D listUsersResponse() > > > > > > response =3D self.connection.marvin_request(command, > data=3Dpostdata, > > > response_type=3Dresponse) > > > > > > return response > > > > > > > > > On Mon, May 6, 2013 at 12:04 PM, Mike Tutkowski < > > > mike.tutkowski@solidfire.com> wrote: > > > > > >> Hi, > > >> > > >> I just updated to the latest today and ran deployDataCenter.py to > build > > a > > >> DevCloud2 environment. > > >> > > >> The script is having trouble. Any thoughts on this? Has this worked > > >> recently for anyone else? > > >> > > >> Thanks! > > >> > > >> mtutkowski-LT:devcloud mtutkowski$ python > > >> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg > > >> Traceback (most recent call last): > > >> File "../marvin/marvin/deployDataCenter.py", line 476, in > > >> deploy.deploy() > > >> File "../marvin/marvin/deployDataCenter.py", line 459, in deploy > > >> self.loadCfg() > > >> File "../marvin/marvin/deployDataCenter.py", line 410, in loadCfg > > >> apiKey, securityKey =3D self.registerApiKey() > > >> File "../marvin/marvin/deployDataCenter.py", line 349, in > > registerApiKey > > >> listuserRes =3D self.testClient.getApiClient().listUsers(listuse= r) > > >> File > > >> > > > "/Users/mtutkowski/Documents/CloudStack/src/incubator-cloudstack/tools/ma= rvin/marvin/cloudstackAPI/cloudstackAPIClient.py", > > >> line 433, in listUsers > > >> response =3D self.connection.marvin_request(command, data=3Dpost= data, > > >> response_type=3Dresponse) > > >> TypeError: marvin_request() got an unexpected keyword argument 'data= ' > > >> > > >> -- > > >> *Mike Tutkowski* > > >> *Senior CloudStack Developer, SolidFire Inc.* > > >> e: mike.tutkowski@solidfire.com > > >> o: 303.746.7302 > > >> Advancing the way the world uses the cloud< > > http://solidfire.com/solution/overview/?video=3Dplay> > > >> *=99* > > >> > > > > > > > > > > > > -- > > > *Mike Tutkowski* > > > *Senior CloudStack Developer, SolidFire Inc.* > > > e: mike.tutkowski@solidfire.com > > > o: 303.746.7302 > > > Advancing the way the world uses the cloud< > > http://solidfire.com/solution/overview/?video=3Dplay> > > > *=99* > > > > > > > > > > > -- > > *Mike Tutkowski* > > *Senior CloudStack Developer, SolidFire Inc.* > > e: mike.tutkowski@solidfire.com > > o: 303.746.7302 > > Advancing the way the world uses the > > cloud > > *=99* > > > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *=99* --089e013c66b4fbd35604de42f232--