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

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1224470190 25200 # Node ID d83baa71965d37027e1ef08ab79c72c177c0f9b7 # Parent a3d9c0a81c27471418993b7c8f907f0b95f79e63 [TEST] Update VSSD.02 to call new GetInstance Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r a3d9c0a81c27 -r d83baa71965d suites/libvirt-cim/cimtest/VSSD/02_bootldr.py --- a/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Wed Oct 15 19:13:10 2008 -0700 +++ b/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Sun Oct 19 19:36:30 2008 -0700 @@ -60,8 +60,8 @@ def main(): try: key_list = { 'InstanceID' : instIdval } - system = enumclass.getInstance(options.ip, \ - enumclass.Xen_VirtualSystemSettingData, key_list) + system = enumclass.GetInstance(options.ip, \ + "Xen_VirtualSystemSettingData", key_list) name = system.ElementName if name == test_dom :

yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1224470190 25200 # Node ID d83baa71965d37027e1ef08ab79c72c177c0f9b7 # Parent a3d9c0a81c27471418993b7c8f907f0b95f79e63 [TEST] Update VSSD.02 to call new GetInstance
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r a3d9c0a81c27 -r d83baa71965d suites/libvirt-cim/cimtest/VSSD/02_bootldr.py --- a/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Wed Oct 15 19:13:10 2008 -0700 +++ b/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Sun Oct 19 19:36:30 2008 -0700 @@ -60,8 +60,8 @@ def main():
try: key_list = { 'InstanceID' : instIdval } - system = enumclass.getInstance(options.ip, \ - enumclass.Xen_VirtualSystemSettingData, key_list) + system = enumclass.GetInstance(options.ip, \ + "Xen_VirtualSystemSettingData", key_list)
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
name = system.ElementName if name == test_dom :
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

libvirt-cim-bounces@redhat.com wrote on 2008-10-20 21:29:37:
yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1224470190 25200 # Node ID d83baa71965d37027e1ef08ab79c72c177c0f9b7 # Parent a3d9c0a81c27471418993b7c8f907f0b95f79e63 [TEST] Update VSSD.02 to call new GetInstance
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r a3d9c0a81c27 -r d83baa71965d suites/libvirt- cim/cimtest/VSSD/02_bootldr.py --- a/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Wed Oct 15 19:13:10 2008 -0700 +++ b/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Sun Oct 19 19:36:30 2008 -0700 @@ -60,8 +60,8 @@ def main():
try: key_list = { 'InstanceID' : instIdval } - system = enumclass.getInstance(options.ip, \ - enumclass.Xen_VirtualSystemSettingData, key_list) + system = enumclass.GetInstance(options.ip, \ + "Xen_VirtualSystemSettingData", key_list)
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!
name = system.ElementName if name == test_dom :
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

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@linux.vnet.ibm.com
participants (4)
-
Deepti B Kalakeri
-
Guo Lian Yun
-
Kaitlin Rupert
-
yunguol@cn.ibm.com