[Kimchi-devel] [PATCH][Kimchi 1/3] Add support to edit max memory in Templates

Lucio Correia luciojhc at linux.vnet.ibm.com
Wed Feb 17 20:16:15 UTC 2016


On 17-02-2016 17:32, Aline Manera wrote:
>>> After apply your patch and execute a GET on templates, to list my
>>> current templates, I got the following error:
>>>
>>>    File
>>> "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/vmtemplate.py",
>>>
>>> line 83, in __init__
>>>      if 'current' not in args['memory']:
>>> TypeError: argument of type 'int' is not iterable
>>>
>>>
>>> the line executed was:
>>>
>>> $ curl -k -u test -H "Content-Type: application/json" -H "Accept:
>>> application/json" 'https://localhost:8001/plugins/kimchi/templates'
>>> -X GET
>>>
>>> So, what happens if I already have templates in the old model (the
>>> current one today) after I apply your patches? I don't have the new
>>> structure of memory.
>>
>> Yes, templates must be updated. I will add a script to do this.
>> Thanks
>>
>
> We also have to update the cpu struture as it was changed too.

That problem does not happen with cpu structure. No need to update it.

-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list