[Libvirt-cim] [PATCH] [TEST] VSSD uses "Xen" not "XenFV" as part of the InstanceID
Sharad Mishra
snmishra at us.ibm.com
Thu Dec 17 16:30:16 UTC 2009
+1
Sharad Mishra
System x Enablement
Linux Technology Center
IBM
Kaitlin Rupert
<kaitlin at linux.vn
et.ibm.com> To
Sent by: libvirt-cim at redhat.com
libvirt-cim-bounc cc
es at redhat.com
Subject
[Libvirt-cim] [PATCH] [TEST] VSSD
12/11/2009 05:16 uses "Xen" not "XenFV" as part of
PM the InstanceID
Please respond to
List for
discussion and
development of
libvirt CIM
<libvirt-cim at redh
at.com>
# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1260576721 28800
# Node ID 5978eee0beb98fb1d2d8780376fc8edd825589d7
# Parent f4cdb74b80f86892cd5739f86ccb215fa7ac8de3
[TEST] VSSD uses "Xen" not "XenFV" as part of the InstanceID
Fix several tests to use the right InstanceID for Xen full virt guests.
Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>
diff -r f4cdb74b80f8 -r 5978eee0beb9
suites/libvirt-cim/cimtest/RASDIndications/02_guest_add_mod_rem_rasd_ind.py
---
a/suites/libvirt-cim/cimtest/RASDIndications/02_guest_add_mod_rem_rasd_ind.py
Fri Dec 11 16:12:01 2009 -0800
+++
b/suites/libvirt-cim/cimtest/RASDIndications/02_guest_add_mod_rem_rasd_ind.py
Fri Dec 11 16:12:01 2009 -0800
@@ -82,11 +82,17 @@
def gen_indication(test_dom, s_sysname, virt, cxml, service, ind_name,
rasd=None, nmem_disk=None):
status = FAIL
+
+ if virt == "XenFV":
+ prefix = "Xen"
+ else:
+ prefix = virt
+
try:
if ind_name == "add":
cn = 'VirtualSystemSettingData'
- inst_id = '%s:%s' % (virt, test_dom)
+ inst_id = '%s:%s' % (prefix, test_dom)
classname = get_typed_class(virt, cn)
vssd_ref = get_rasd_rec(virt, cn, s_sysname, inst_id)
diff -r f4cdb74b80f8 -r 5978eee0beb9
suites/libvirt-cim/cimtest/VirtualSystemManagementService/22_addmulti_brg_interface.py
---
a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/22_addmulti_brg_interface.py
Fri Dec 11 16:12:01 2009 -0800
+++
b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/22_addmulti_brg_interface.py
Fri Dec 11 16:12:01 2009 -0800
@@ -74,7 +74,12 @@
if ret:
raise Exception("Failed to define the dom: %s" % default_dom)
- inst_id = '%s:%s' % (options.virt, test_dom)
+ if options.virt == "XenFV":
+ prefix = "Xen"
+ else:
+ prefix = options.virt
+
+ inst_id = '%s:%s' % (prefix, test_dom)
netpool = EnumNames(options.ip, classname)
vssd_ref = None
for i in range(0, len(netpool)):
diff -r f4cdb74b80f8 -r 5978eee0beb9
suites/libvirt-cim/cimtest/VirtualSystemManagementService/23_verify_duplicate_mac_err.py
---
a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/23_verify_duplicate_mac_err.py
Fri Dec 11 16:12:01 2009 -0800
+++
b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/23_verify_duplicate_mac_err.py
Fri Dec 11 16:12:01 2009 -0800
@@ -113,7 +113,13 @@
service = get_vsms_class(options.virt)(options.ip)
classname = get_typed_class(options.virt,
'VirtualSystemSettingData')
netpool = EnumNames(options.ip, classname)
- inst_id = '%s:%s' % (options.virt, default_dom)
+
+ if options.virt == "XenFV":
+ prefix = "Xen"
+ else:
+ prefix = options.virt
+
+ inst_id = '%s:%s' % (prefix, default_dom)
vssd_ref = None
for i in range(0, len(netpool)):
ret_pool = netpool[i].keybindings['InstanceID']
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim at redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20091217/ea73859c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20091217/ea73859c/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic30380.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20091217/ea73859c/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20091217/ea73859c/attachment-0002.gif>
More information about the Libvirt-cim
mailing list