cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <mike.tutkow...@solidfire.com>
Subject Re: Trouble with deployDataCenter.py
Date Mon, 06 May 2013 21:13:55 GMT
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=None, method='GET', data=''):


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 to
> 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={}):
>
>         response = listUsersResponse()
>
>         response = self.connection.marvin_request(command, data=postdata,
> response_type=response)
>
>         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 <module>
>>     deploy.deploy()
>>   File "../marvin/marvin/deployDataCenter.py", line 459, in deploy
>>     self.loadCfg()
>>   File "../marvin/marvin/deployDataCenter.py", line 410, in loadCfg
>>     apiKey, securityKey = self.registerApiKey()
>>   File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
>>     listuserRes = self.testClient.getApiClient().listUsers(listuser)
>>   File
>> "/Users/mtutkowski/Documents/CloudStack/src/incubator-cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
>> line 433, in listUsers
>>     response = self.connection.marvin_request(command, data=postdata,
>> response_type=response)
>> 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=play>
>> *™*
>>
>
>
>
> --
> *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=play>
> *™*
>



-- 
*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=play>
*™*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message