[PATCH] [TEST] Fix HostSystem/02_hostsystem_to_rasd.py for LXC

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1226458889 28800 # Node ID d97222cfb717a382136108c319dee64cc2466716 # Parent 8d6f2db22eda9bda08ff26caa8982f137a3d4486 [TEST] Fix HostSystem/02_hostsystem_to_rasd.py for LXC Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 8d6f2db22eda -r d97222cfb717 suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Tue Nov 11 00:19:20 2008 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Tue Nov 11 19:01:29 2008 -0800 @@ -75,6 +75,8 @@ global test_disk if virt == "Xen": test_disk = "xvda" + if virt == "LXC": + test_disk = "/tmp" else: test_disk = "hda" virt_xml = get_class(virt)

yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1226458889 28800 # Node ID d97222cfb717a382136108c319dee64cc2466716 # Parent 8d6f2db22eda9bda08ff26caa8982f137a3d4486 [TEST] Fix HostSystem/02_hostsystem_to_rasd.py for LXC
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 8d6f2db22eda -r d97222cfb717 suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Tue Nov 11 00:19:20 2008 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Tue Nov 11 19:01:29 2008 -0800 @@ -75,6 +75,8 @@ global test_disk if virt == "Xen": test_disk = "xvda" + if virt == "LXC": + test_disk = "/tmp" else: test_disk = "hda" virt_xml = get_class(virt)
This tc fails with the following error for LXC: -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: FAIL ERROR - DEBUG an is LXC_HostedDependency, cn is LXC_HostSystem, qcn is LXC_ComputerSystem ERROR - Failed to get associators information for LXC_SettingsDefineState ERROR - Exception: u'LXC_DisplayController' Class not found --------------------------------------------------------------------
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

libvirt-cim-bounces@redhat.com wrote on 2008-11-12 19:14:49:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1226458889 28800 # Node ID d97222cfb717a382136108c319dee64cc2466716 # Parent 8d6f2db22eda9bda08ff26caa8982f137a3d4486 [TEST] Fix HostSystem/02_hostsystem_to_rasd.py for LXC
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 8d6f2db22eda -r d97222cfb717 suites/libvirt- cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.
yunguol@cn.ibm.com wrote: py Tue Nov 11 00:19:20 2008 -0800 py Tue Nov 11 19:01:29 2008 -0800
@@ -75,6 +75,8 @@ global test_disk if virt == "Xen": test_disk = "xvda" + if virt == "LXC": + test_disk = "/tmp" else: test_disk = "hda" virt_xml = get_class(virt)
This tc fails with the following error for LXC:
-------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: FAIL ERROR - DEBUG an is LXC_HostedDependency, cn is LXC_HostSystem, qcn is LXC_ComputerSystem ERROR - Failed to get associators information for
LXC_SettingsDefineState
ERROR - Exception: u'LXC_DisplayController' Class not found
What's your cimon's type and src info? I tested this with sfcb with latest src for F10, and it passes for me.
--------------------------------------------------------------------
_______________________________________________ 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

Guo Lian Yun wrote:
libvirt-cim-bounces@redhat.com wrote on 2008-11-12 19:14:49:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1226458889 28800 # Node ID d97222cfb717a382136108c319dee64cc2466716 # Parent 8d6f2db22eda9bda08ff26caa8982f137a3d4486 [TEST] Fix HostSystem/02_hostsystem_to_rasd.py for LXC
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 8d6f2db22eda -r d97222cfb717 suites/libvirt- cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.
yunguol@cn.ibm.com wrote: py Tue Nov 11 00:19:20 2008 -0800 py Tue Nov 11 19:01:29 2008 -0800
@@ -75,6 +75,8 @@ global test_disk if virt == "Xen": test_disk = "xvda" + if virt == "LXC": + test_disk = "/tmp" else: test_disk = "hda" virt_xml = get_class(virt)
This tc fails with the following error for LXC:
-------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: FAIL ERROR - DEBUG an is LXC_HostedDependency, cn is LXC_HostSystem, qcn is LXC_ComputerSystem ERROR - Failed to get associators information for
LXC_SettingsDefineState
ERROR - Exception: u'LXC_DisplayController' Class not found
What's your cimon's type and src info? I tested this with sfcb with latest src for F10, and it passes for me.
I tested the above changes with libvirt-cim revision 738 on F10 machine with sfcb cimom. Thanks and Regards, Deepti.
--------------------------------------------------------------------
_______________________________________________ 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
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Guo Lian Yun wrote:
libvirt-cim-bounces@redhat.com wrote on 2008-11-12 19:14:49:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1226458889 28800 # Node ID d97222cfb717a382136108c319dee64cc2466716 # Parent 8d6f2db22eda9bda08ff26caa8982f137a3d4486 [TEST] Fix HostSystem/02_hostsystem_to_rasd.py for LXC
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 8d6f2db22eda -r d97222cfb717 suites/libvirt- cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.
yunguol@cn.ibm.com wrote: py Tue Nov 11 00:19:20 2008 -0800 py Tue Nov 11 19:01:29 2008 -0800
@@ -75,6 +75,8 @@ global test_disk if virt == "Xen": test_disk = "xvda" + if virt == "LXC": + test_disk = "/tmp" else: test_disk = "hda" virt_xml = get_class(virt)
This tc fails with the following error for LXC:
-------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: FAIL ERROR - DEBUG an is LXC_HostedDependency, cn is LXC_HostSystem, qcn is LXC_ComputerSystem ERROR - Failed to get associators information for
LXC_SettingsDefineState
ERROR - Exception: u'LXC_DisplayController' Class not found
What's your cimon's type and src info? I tested this with sfcb with latest src for F10, and it passes for me.
Sorry for the inconvenience, I had applied this changes to an old cimtest repo and hence I think it was failing. The tc passes now and is ready to go. +1 for me. Thanks and Regards, Deepti.
--------------------------------------------------------------------
_______________________________________________ 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
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
participants (3)
-
Deepti B Kalakeri
-
Guo Lian Yun
-
yunguol@cn.ibm.com