[Libvirt-cim] [PATCH] [TEST] Update VSSD.02 to call new GetInstance

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Tue Oct 21 16:36:19 UTC 2008


>  > >  
>  > You can remove the slash here.
>  > Also, can you remove the keyname variable in the tc which is not at all
>  > used anywhere for the verification.
>  > The tc fails with the following error for Xen:
>  >
>  > VSSD - 02_bootldr.py: FAIL
>  > ERROR - AttributeError : 'str' object has no attribute 'Bootloader'
>  > Traceback (most recent call last):
>  > File "./lib/XenKvmLib/const.py", line 116, in do_try
>  > File "02_bootldr.py", line 50, in main
>  > xmlfile.set_bootloader(options.ip, gtype=0)
>  > File "./lib/XenKvmLib/vxml.py", line 567, in set_bootloader
>  > AttributeError: 'str' object has no attribute 'Bootloader'
>  > ERROR - None
>  >
>   It fails for Xen now. Have you look into this failure?
>   Kaitlin - Is there any changes of VSSD provider these days?
> 
>   Thanks!

If you look at the message python prints when the test fails, you can 
see that python is encountering an error on line 567 of
./lib/XenKvmLib/vxml.py.  So that's a good hint to where you need to 
start investigating the issue.

The problem is that the vssd mof doesn't have a Bootloader attribute. 
If you print it out, you see the following:

instance of Xen_VirtualSystemSettingData {
Ramdisk = "/tmp/default-xen-initrd";
Kernel = "/tmp/default-xen-kernel";
ElementName = "dom";
Description = "Virtual System";
InstanceID = "Xen:dom";
isFullVirt = false;
Caption = "Virtual System";
AutomaticShutdownAction = 2;
AutomaticRecoveryAction = 2;
VirtualSystemType = "Xen";
CreationClassName = "Xen_VirtualSystemSettingData";
VirtualSystemIdentifier = "dom";
};

I'll send a patch to fix this issue.

Thanks!
-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list