libvirt-cim dependency question and test result

Hi, Recently i'm doing libvirt-cim testing, and there's a question about cim-server dependency. When i yum install libvirt-cim, the dependency of cim-server will install sblim-sfcb, but what we want use is tog-pegasus, so i install tog-pegasus manually after installed libvirt-cim. then test it by wbemcli: #wbemcli ein http://root:redhat@localhost/root/virt:KVM_VirtualSystemManagementService * * wbemcli: Cim: (3) CIM_ERR_INVALID_NAMESPACE: root/virt * and there's no provider module about libvirt-cim #cimprovider -l OperatingSystemModule ComputerSystemModule ProcessModule SLPProviderModule So i reinstall libvirt-cim and it works well. There are 2 bugs about the dependency problem, and all fixed. https://bugzilla.redhat.com/show_bug.cgi?id=694749 https://bugzilla.redhat.com/show_bug.cgi?id=799037 I wonder if this behavior is excepted? BTW, i run the cimtest suit and 30 tests failed. Please check the attachment for detail info. Related packages version: # rpm -q libvirt libvirt-0.10.0-0rc0.el6.x86_64 # rpm -q libvirt-cim libvirt-cim-0.6.1-3.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.303.el6.x86_64 ================================================= Test Run Summary (Aug 14 2012): KVM on Red Hat Enterprise Linux Server release 6.3 (Santiago) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 6.3 (Santiago) Kernel: 2.6.32-289.el6.x86_64 libvirt: 0.10.0 Hypervisor: QEMU 0.12.1 CIMOM: Pegasus 2.11.0 Libvirt-cim revision: 1192 Libvirt-cim changeset: 0c468a8 Cimtest revision: Cimtest changeset: 93f0e6e Total test execution: Unknown ================================================= FAIL : 30 XFAIL : 2 SKIP : 14 PASS : 146 ----------------- Total : 192 ================================================= Thanks! Best Regards! Yanbing Du

On Thu, Aug 16, 2012 at 3:24 AM, Yanbing Du <ydu@redhat.com> wrote:
Hi, Recently i'm doing libvirt-cim testing, and there's a question about cim-server dependency. When i yum install libvirt-cim, the dependency of cim-server will install sblim-sfcb, but what we want use is tog-pegasus, so i install tog-pegasus manually after installed libvirt-cim. then test it by wbemcli: #wbemcli ein http://root:redhat@localhost/root/virt:KVM_VirtualSystemManagementService * * wbemcli: Cim: (3) CIM_ERR_INVALID_NAMESPACE: root/virt * and there's no provider module about libvirt-cim #cimprovider -l OperatingSystemModule ComputerSystemModule ProcessModule SLPProviderModule
So i reinstall libvirt-cim and it works well. There are 2 bugs about the dependency problem, and all fixed. https://bugzilla.redhat.com/show_bug.cgi?id=694749 https://bugzilla.redhat.com/show_bug.cgi?id=799037 I wonder if this behavior is excepted?
Yes, the registration of libvirt-cim providers is done at install time. See the .spec file for more information. It will check which server is installed and then register the providers accordingly. Best regards, Etrunko
BTW, i run the cimtest suit and 30 tests failed. Please check the attachment for detail info. Related packages version: # rpm -q libvirt libvirt-0.10.0-0rc0.el6.x86_64 # rpm -q libvirt-cim libvirt-cim-0.6.1-3.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.303.el6.x86_64
================================================= Test Run Summary (Aug 14 2012): KVM on Red Hat Enterprise Linux Server release 6.3 (Santiago) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 6.3 (Santiago) Kernel: 2.6.32-289.el6.x86_64 libvirt: 0.10.0 Hypervisor: QEMU 0.12.1 CIMOM: Pegasus 2.11.0 Libvirt-cim revision: 1192 Libvirt-cim changeset: 0c468a8 Cimtest revision: Cimtest changeset: 93f0e6e Total test execution: Unknown ================================================= FAIL : 30 XFAIL : 2 SKIP : 14 PASS : 146 ----------------- Total : 192 =================================================
Thanks! Best Regards! Yanbing Du _______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Eduardo de Barros Lima ◤✠◢ eblima@gmail.com

Eduardo, Good to see that you are still active in libvirt-cim community. -Sharad Quoting "Eduardo Lima (Etrunko)" <eblima@gmail.com>:
On Thu, Aug 16, 2012 at 3:24 AM, Yanbing Du <ydu@redhat.com> wrote:
Hi, Recently i'm doing libvirt-cim testing, and there's a question about cim-server dependency. When i yum install libvirt-cim, the dependency of cim-server will install sblim-sfcb, but what we want use is tog-pegasus, so i install tog-pegasus manually after installed libvirt-cim. then test it by wbemcli: #wbemcli ein http://root:redhat@localhost/root/virt:KVM_VirtualSystemManagementService * * wbemcli: Cim: (3) CIM_ERR_INVALID_NAMESPACE: root/virt * and there's no provider module about libvirt-cim #cimprovider -l OperatingSystemModule ComputerSystemModule ProcessModule SLPProviderModule
So i reinstall libvirt-cim and it works well. There are 2 bugs about the dependency problem, and all fixed. https://bugzilla.redhat.com/show_bug.cgi?id=694749 https://bugzilla.redhat.com/show_bug.cgi?id=799037 I wonder if this behavior is excepted?
Yes, the registration of libvirt-cim providers is done at install time. See the .spec file for more information. It will check which server is installed and then register the providers accordingly.
Best regards, Etrunko
BTW, i run the cimtest suit and 30 tests failed. Please check the attachment for detail info. Related packages version: # rpm -q libvirt libvirt-0.10.0-0rc0.el6.x86_64 # rpm -q libvirt-cim libvirt-cim-0.6.1-3.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.303.el6.x86_64
================================================= Test Run Summary (Aug 14 2012): KVM on Red Hat Enterprise Linux Server release 6.3 (Santiago) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 6.3 (Santiago) Kernel: 2.6.32-289.el6.x86_64 libvirt: 0.10.0 Hypervisor: QEMU 0.12.1 CIMOM: Pegasus 2.11.0 Libvirt-cim revision: 1192 Libvirt-cim changeset: 0c468a8 Cimtest revision: Cimtest changeset: 93f0e6e Total test execution: Unknown ================================================= FAIL : 30 XFAIL : 2 SKIP : 14 PASS : 146 ----------------- Total : 192 =================================================
Thanks! Best Regards! Yanbing Du _______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Eduardo de Barros Lima ◤✠◢ eblima@gmail.com
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Hi, I'm doing libvirt-cim test, and the result of enforcing SELinux is different with permissive. And there's some AVC deny messages during running cimtest, so i'm wonder if there's any bugs about this problem, thanks ! Diff test results: getenforce=Permissive: -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: FAIL ERROR - KVM_ComputerSystem with domguest was not returned -------------------------------------------------------------------- getenforce=Enforcing: -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Lost connection with cimprovagt "libvirt-cim". with return code 1 ERROR - Unable to define domain domU InvokeMethod(DefineSystem): CIM_ERR_FAILED: Lost connection with cimprovagt "libvirt-cim". -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: FAIL 246 ERROR - KVM_ComputerSystem with domguest was not returned -------------------------------------------------------------------- VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL ERROR - Exception: CreateSnapshot failed to return a CIM job inst ERROR - Failed to remove snapshot file for snapshot_vm -------------------------------------------------------------------- RASDIndications - 01_guest_states_rasd_ind.py: FAIL ERROR - Exception: Poll for indication Failed -------------------------------------------------------------------- RASDIndications - 02_guest_add_mod_rem_rasd_ind.py: FAIL ERROR - Exception: Poll for indication Failed -------------------------------------------------------------------- And the AVC deny messages in the attachment. Best Regards! Yanbing Du

Quoting Yanbing Du <ydu@redhat.com>:
Hi, I'm doing libvirt-cim test, and the result of enforcing SELinux is different with permissive. And there's some AVC deny messages during running cimtest, so i'm wonder if there's any bugs about this problem, thanks !
Are you seeing any core dumps? Usually, "Lost connection with cimprovagt" is seen when there is a seg fault/core dump. -Sharad
Diff test results: getenforce=Permissive: -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: FAIL ERROR - KVM_ComputerSystem with domguest was not returned --------------------------------------------------------------------
getenforce=Enforcing: -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Lost connection with cimprovagt "libvirt-cim". with return code 1 ERROR - Unable to define domain domU InvokeMethod(DefineSystem): CIM_ERR_FAILED: Lost connection with cimprovagt "libvirt-cim". -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: FAIL 246 ERROR - KVM_ComputerSystem with domguest was not returned -------------------------------------------------------------------- VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL ERROR - Exception: CreateSnapshot failed to return a CIM job inst ERROR - Failed to remove snapshot file for snapshot_vm -------------------------------------------------------------------- RASDIndications - 01_guest_states_rasd_ind.py: FAIL ERROR - Exception: Poll for indication Failed -------------------------------------------------------------------- RASDIndications - 02_guest_add_mod_rem_rasd_ind.py: FAIL ERROR - Exception: Poll for indication Failed --------------------------------------------------------------------
And the AVC deny messages in the attachment.
Best Regards! Yanbing Du

----- Original Message -----
From: snmishra@linux.vnet.ibm.com To: libvirt-cim@redhat.com Sent: Thursday, August 23, 2012 4:44:17 AM Subject: Re: [Libvirt-cim] SELinux problem about libvirt-cim
Quoting Yanbing Du <ydu@redhat.com>:
Hi, I'm doing libvirt-cim test, and the result of enforcing SELinux is different with permissive. And there's some AVC deny messages during running cimtest, so i'm wonder if there's any bugs about this problem, thanks !
Are you seeing any core dumps? Usually, "Lost connection with cimprovagt" is seen when there is a seg fault/core dump.
Yes, there's core dump: ------ Aug 20 13:32:19 intel-w3520-8-2 kernel: cimprovagt[13698] general protection ip:7f4e9d264eea sp:7f4e9ef20dd0 error:0 in libpegcommon.so.1[7f4e9d1ca000+1d8000] Aug 20 13:32:19 intel-w3520-8-2 abrtd: Directory 'ccpp-2012-08-20-13:32:19-13480' creation detected Aug 20 13:32:19 intel-w3520-8-2 abrt[16366]: Saved core dump of pid 13480 (/usr/sbin/cimprovagt) to /var/spool/abrt/ccpp-2012-08-20-13:32:19-13480 (41832448 bytes) ------ FYI, attached the core dump file.
-Sharad
Diff test results: getenforce=Permissive: -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: FAIL ERROR - KVM_ComputerSystem with domguest was not returned --------------------------------------------------------------------
getenforce=Enforcing: -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Lost connection with cimprovagt "libvirt-cim". with return code 1 ERROR - Unable to define domain domU InvokeMethod(DefineSystem): CIM_ERR_FAILED: Lost connection with cimprovagt "libvirt-cim". -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: FAIL 246 ERROR - KVM_ComputerSystem with domguest was not returned -------------------------------------------------------------------- VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL ERROR - Exception: CreateSnapshot failed to return a CIM job inst ERROR - Failed to remove snapshot file for snapshot_vm -------------------------------------------------------------------- RASDIndications - 01_guest_states_rasd_ind.py: FAIL ERROR - Exception: Poll for indication Failed -------------------------------------------------------------------- RASDIndications - 02_guest_add_mod_rem_rasd_ind.py: FAIL ERROR - Exception: Poll for indication Failed --------------------------------------------------------------------
And the AVC deny messages in the attachment.
Best Regards! Yanbing Du
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

On Wed, Aug 22, 2012 at 11:55 PM, Yanbing Du <ydu@redhat.com> wrote:
----- Original Message -----
From: snmishra@linux.vnet.ibm.com To: libvirt-cim@redhat.com Sent: Thursday, August 23, 2012 4:44:17 AM Subject: Re: [Libvirt-cim] SELinux problem about libvirt-cim
Quoting Yanbing Du <ydu@redhat.com>:
Hi, I'm doing libvirt-cim test, and the result of enforcing SELinux is different with permissive. And there's some AVC deny messages during running cimtest, so i'm wonder if there's any bugs about this problem, thanks !
Are you seeing any core dumps? Usually, "Lost connection with cimprovagt" is seen when there is a seg fault/core dump.
Yes, there's core dump: ------ Aug 20 13:32:19 intel-w3520-8-2 kernel: cimprovagt[13698] general protection ip:7f4e9d264eea sp:7f4e9ef20dd0 error:0 in libpegcommon.so.1[7f4e9d1ca000+1d8000] Aug 20 13:32:19 intel-w3520-8-2 abrtd: Directory 'ccpp-2012-08-20-13:32:19-13480' creation detected Aug 20 13:32:19 intel-w3520-8-2 abrt[16366]: Saved core dump of pid 13480 (/usr/sbin/cimprovagt) to /var/spool/abrt/ccpp-2012-08-20-13:32:19-13480 (41832448 bytes) ------ FYI, attached the core dump file.
I had reported this issue with libvirt-cim/SELinux when I started implementing reboot/shutdown events as jobs. Now the reason why it crashes when SELinux is enabled is the 1 million dollar question. :/ https://www.redhat.com/archives/libvirt-cim/2012-June/msg00021.html Best regards, Etrunko -- Eduardo de Barros Lima ◤✠◢ eblima@gmail.com
participants (3)
-
Eduardo Lima (Etrunko)
-
snmishra@linux.vnet.ibm.com
-
Yanbing Du