Oh, yuck! Thanks for catching this! Agreed - this test should fail if
there's a problem destroying / starting the domain. I'll rework this patch.
Deepti B Kalakeri wrote:
This test gives a false positive:
Starting test suite: libvirt-cim
Cleaned log files.
Testing KVM hypervisor
--------------------------------------------------------------------
ComputerSystemIndication - 01_created_indication.py: PASS
--------------------------------------------------------------------
[cimtest]# cat
suites/libvirt-cim/cimtest/ComputerSystemIndication/cimtest.log Mon, 14
Dec 2009 04:47:48:TEST LOG:INFO - ====01_created_indication.py Log====
Mon, 14 Dec 2009 04:47:48:TEST LOG:INFO - Watching for
ComputerSystemDeletedIndication
Mon, 14 Dec 2009 04:47:49:TEST LOG:INFO - Watching for
ComputerSystemModifiedIndication
Mon, 14 Dec 2009 04:47:49:TEST LOG:INFO - Watching for
ComputerSystemCreatedIndication
Mon, 14 Dec 2009 04:47:49:TEST LOG:ERROR - Got CIM error
CIM_ERR_NOT_FOUND: Referenced domain `domU' does not exist: Domain not
found with return code 6
Mon, 14 Dec 2009 04:47:49:TEST LOG:ERROR - Unable to destroy domU
Mon, 14 Dec 2009 04:47:49:TEST LOG:ERROR - Exception: Unable to generate
indication
Mon, 14 Dec 2009 04:47:49:TEST LOG:ERROR - Failed to start domain: domU
Mon, 14 Dec 2009 04:47:49:TEST LOG:ERROR - Exception: Unable to generate
indication
Mon, 14 Dec 2009 04:47:49:TEST LOG:INFO - Cancelling subscription for
KVM_ComputerSystemCreatedIndication
Mon, 14 Dec 2009 04:47:49:TEST LOG:INFO - Great, got 'define' indication
successfully
Mon, 14 Dec 2009 04:48:20:TEST LOG:INFO - Cancelling subscription for
KVM_ComputerSystemDeletedIndication
Mon, 14 Dec 2009 04:48:20:TEST LOG:INFO - Cancelling subscription for
KVM_ComputerSystemCreatedIndication
Mon, 14 Dec 2009 04:48:20:TEST LOG:INFO - Cancelling subscription for
KVM_ComputerSystemModifiedIndication
The test needs to fail as there is an exception while destroying the
domain. The order in which the define, destroy, start is not proper
because of which the test fails.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com