On Aug 27, 2013, at 6:08 PM, "Han,Meng" <[email protected]> wrote:
> Hi folks,
>
> I am adding an api (launch cluster) to CloudStack and using CloudMonkey to
> test the api.
>
> From the CloudMonkey log file I can see that the request was executed on the
> server side and return correct response, however, CloudMonkey was forced to
> quit because the following error:
>
>
>> launchCluster config=hadoop.properties
> Traceback (most recent call last):
> File "/usr/bin/cloudmonkey", line 9, in <module>
> load_entry_point('cloudmonkey==5.0.0', 'console_scripts', 'cloudmonkey')()
> File "/usr/lib/python2.6/site-packages/cloudmonkey/cloudmonkey.py", line
> 536, in main
> shell.cmdloop()
> File "/usr/lib/python2.6/site-packages/cloudmonkey/cloudmonkey.py", line
> 106, in cmdloop
> super(CloudMonkeyShell, self).cmdloop(intro="")
> File "/usr/lib64/python2.6/cmd.py", line 142, in cmdloop
> stop = self.onecmd(line)
> File "/usr/lib64/python2.6/cmd.py", line 218, in onecmd
> return self.default(line)
> File "/usr/lib/python2.6/site-packages/cloudmonkey/cloudmonkey.py", line
> 303, in default
> result = self.make_request(apiname, args_dict, isasync)
> File "/usr/lib/python2.6/site-packages/cloudmonkey/cloudmonkey.py", line
> 257, in make_request
> self.timeout, self.protocol, self.path)
> File "/usr/lib/python2.6/site-packages/cloudmonkey/requester.py", line 121,
> in monkeyrequest
> responsekey = filter(lambda x: 'response' in x, response.keys())[0]
> IndexError: list index out of range
>
Meng, this actually might be an issue with your response object in java, make
sure that it is properly defined.
You can also send us the json that's returned via cloudmonkey
>
> Could someone give me a pointer why this is happening?
>
>
> Thanks!
>
> Cheers,
> Meng