Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-11-08 Thread sebgoa
On Nov 8, 2013, at 10:29 AM, Ryan Lei wrote: > Super. The Cloudmonkey crash is fixed now. Thanks a a lot, Sebastien!! > > You are right about this line: > - response.setResponseName(DeployVMCmd.getResultObjectName()); > + response.setResponseName(getCommandName()); > > Please also commit this

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-11-08 Thread Ryan Lei
Super. The Cloudmonkey crash is fixed now. Thanks a a lot, Sebastien!! You are right about this line: - response.setResponseName(DeployVMCmd.getResultObjectName()); + response.setResponseName(getCommandName()); Please also commit this change to master. ---

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-11-08 Thread Sebastien Goasguen
Ryan, I found another bug in that class, can you try again with a fresh pull of 4.2 branch ? thanks On Nov 8, 2013, at 3:40 AM, Sebastien Goasguen wrote: > Can you get on IRC ? > > On Nov 8, 2013, at 3:27 AM, Ryan Lei wrote: > >> Finally got a new environment to build from source code (4.2

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-11-08 Thread Sebastien Goasguen
Can you get on IRC ? On Nov 8, 2013, at 3:27 AM, Ryan Lei wrote: > Finally got a new environment to build from source code (4.2 branch). > Unfortunately, it still crashes Cloudmonkey. The error messages are exactly > the same. Here's the new Cloudmonkey log: > > 2013-11-08 16:15:34,242 - reques

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-11-08 Thread Ryan Lei
Finally got a new environment to build from source code (4.2 branch). Unfortunately, it still crashes Cloudmonkey. The error messages are exactly the same. Here's the new Cloudmonkey log: 2013-11-08 16:15:34,242 - requester.py:45 - [DEBUG] START Request 2013-11-08 16:15:34,242 -

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-30 Thread Ryan Lei
I'm only using the RPMs to run my 4.2 environment. :( We need some source code + Cloudmonkey people to verify this. --- Yu-Heng (Ryan) Lei, Associate Researcher Chunghwa Telecom Laboratories / Cloud Computing L

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-30 Thread Sebastien Goasguen
On Oct 30, 2013, at 2:40 AM, Ryan Lei wrote: > Ticket created: > https://issues.apache.org/jira/browse/CLOUDSTACK-4998 > Ryan, I fixed it in master and 4.2. Any chance you can compile from source and check again ? thanks > ---

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-29 Thread Ryan Lei
Ticket created: https://issues.apache.org/jira/browse/CLOUDSTACK-4998 --- Yu-Heng (Ryan) Lei, Associate Researcher Chunghwa Telecom Laboratories / Cloud Computing Laboratory ryan...@cht.com.tw

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-29 Thread Rohit Yadav
On Mon, Oct 28, 2013 at 1:52 PM, Sebastien Goasguen wrote: > I think the error is in the java code of AssignVirtualMachine: > api/src/org/apache/cloudstack/api/command/admin/vm/AssignVMCmd.java: > > @APICommand(name = "assignVirtualMachine", description="Change ownership > of a VM from one account

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-28 Thread Sebastien Goasguen
I think the error is in the java code of AssignVirtualMachine: api/src/org/apache/cloudstack/api/command/admin/vm/AssignVMCmd.java: @APICommand(name = "assignVirtualMachine", description="Change ownership of a VM from one account to another. This API is available for Basic zones with security gr

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-27 Thread Ryan Lei
Here's the assignVirtualMachine response json from log: 2013-10-25 17:02:54,107 - cloudmonkey.py:83 - [DEBUG] Loaded config fields: ['cache_file=/root/.cloudmonkey/cache', 'log_file=/root/.cloudmonkey/log', 'asyncblock=true', 'paramcompletion=false', 'history_file=/root/.cloudmonkey/history', 'col

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-25 Thread Rohit Yadav
Hi Ryan, Will check this next week, the issue is clearly with response which lacks a key with name 'response' in it, it could be a case issue as well. Can you share with us the response json from cloudmonkey's log in ~/.cloudmonkey/log, you may confirm the keys from the json. Also, check if you're

Re: [Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-25 Thread sebgoa
On Oct 25, 2013, at 10:57 AM, Ryan Lei wrote: > I'm using Cloudmonkey 5.0.0 under CloudStack 4.2.0 + XenServer 6.2. > For now, the only way to change the ownership of a VM is by the > assignVirtualMachine API. > > But executing this API using Cloudmonkey leads to the following error that > cras

[Cloudmonkey] assignVirtualMachine API causes index out of range error

2013-10-25 Thread Ryan Lei
I'm using Cloudmonkey 5.0.0 under CloudStack 4.2.0 + XenServer 6.2. For now, the only way to change the ownership of a VM is by the assignVirtualMachine API. But executing this API using Cloudmonkey leads to the following error that crashes the program: > assign virtualmachine virtualmachineid=7f