[Libvirt-cim] [PATCH 2 of 2] [TEST] XenKvmLib: Add cdrom device description to domain
Chip Vincent
cvincent at linux.vnet.ibm.com
Fri Oct 14 18:38:02 UTC 2011
+1. With tog-pegasus-2.11.1 I get the following:
Testing KVM hypervisor
--------------------------------------------------------------------
VirtualSystemManagementService - 32_modify_cdrom_media.py: PASS
--------------------------------------------------------------------
NOTE: If you're not already on tog-pegasus-2.11.1, please move to it.
On 10/14/2011 11:58 AM, Eduardo Lima (Etrunko) wrote:
> On 10/13/2011 09:37 AM, Chip Vincent wrote:
>> # ll /var/lib/libvirt/images
>> total 16844232
>> -rw------- 1 root root 372736 Sep 30 14:21 cdrom01.iso
>> -rw------- 1 root root 372736 Sep 30 14:21 cdrom02.iso
>>
>>
>> After extracting the .iso files and applying both patches, I get the
>> following error:
>>
>> Testing KVM hypervisor
>> --------------------------------------------------------------------
>> VirtualSystemManagementService - 32_modify_cdrom_media.py: FAIL
>> ERROR - New media '/var/lib/libvirt/images/cdrom01.iso' does not
>> match expected ''
>
> This may be related to the version of pegasus you have installed in your
> machine. This test case is very similar to the 31_unset_netrasd that I
> have posted. It will issue a ModifyResourceSettings call with an empty
> string to eject the media. See my previous email on the thread about the
> unset_netrasd patch.
>
>> ERROR - TypeError : 'NoneType' object is unsubscriptable
>> Traceback (most recent call last):
>> File
>> "/home/cvincent/proj/dev/tmp/cimtest/suites/libvirt-cim/lib/XenKvmLib/const.py",
>> line 141, in do_try
>> rc = f()
>> File "32_modify_cdrom_media.py", line 209, in main
>> inst = modify_media(cim, inst, media_path)
>> File "32_modify_cdrom_media.py", line 100, in modify_media
>> val = set_device_addr(inst, addr)
>> File "32_modify_cdrom_media.py", line 83, in set_device_addr
>> inst["InstanceID"],
>> TypeError: 'NoneType' object is unsubscriptable
>> ERROR - None
>> --------------------------------------------------------------------
>
> Now about this error, I see an oportunity of an extra check for None in
> order to avoid this traceback. There are also a few small syntax fixes
> elsewhere that I will post later on today.
>
> Best regards, Etrunko
>
--
Chip Vincent
Open Virtualization
IBM Linux Technology Center
cvincent at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list