[Kimchi-devel] [PATCH 4/5] Create guests asynchronously: Backend

Christy Perez christy at linux.vnet.ibm.com
Thu Feb 26 20:51:47 UTC 2015



On 02/26/2015 01:05 PM, Crístian Viana wrote:
> On 25-02-2015 13:53, Christy Perez wrote:
>> +        return self.task.lookup(taskid)
> 
> When I tried to create a VM with this patch applied, I got the following
> error:
> 
> [26/Feb/2015:15:56:44] HTTP Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line
> 656, in respond
>     response.body = self.handler()
>   File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line
> 188, in __call__
>     self.body = self.oldhandler(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line
> 34, in __call__
>     return self.callable(*self.args, **self.kwargs)
>   File "/home/vianac/LTC/kimchi/src/kimchi/control/base.py", line 330,
> in index
>     return self.create(parse_request(), *args)
>   File "/home/vianac/LTC/kimchi/src/kimchi/control/base.py", line 362,
> in create
>     task = create(*args)
>   File "/home/vianac/LTC/kimchi/src/kimchi/model/vms.py", line 209, in
> create
>     return self.task.lookup(taskid)
> AttributeError: 'VMsModel' object has no attribute 'task'
> 
> The class "VMsModel" doesn't have the field "self.task" (as opposed to
> "VMModel", which has it).

Thanks for the tests! I had to rebase multiple times due to the amount
of time it took me to get this done and other projects popping up, so
I'm sure I missed something somewhere. All the tests passed, but I'll
definitely look into this one.




More information about the Kimchi-devel mailing list