I'm trying to run unittests and got lot of fails.
I have libvirt installed and it seems that fake libvirt drivver don't work in such env.
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 946, in test_xml_and_uri
expect_kernel=True, expect_ramdisk=True)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_kernel
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 939, in test_xml_and_uri_no_kernel
expect_kernel=False, expect_ramdisk=False)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_ramdisk
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 933, in test_xml_and_uri_no_ramdisk
expect_kernel=True, expect_ramdisk=False)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_ramdisk_no_kernel
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 914, in test_xml_and_uri_no_ramdisk_no_kernel
expect_kernel=False, expect_ramdisk=False)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 953, in test_xml_and_uri_rescue
expect_ramdisk=True, rescue=instance_data)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_kernel
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 964, in test_xml_and_uri_rescue_no_kernel
expect_ramdisk=True, rescue=instance_data)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_kernel_no_ramdisk
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 958, in test_xml_and_uri_rescue_no_kernel_no_ramdisk
expect_ramdisk=False, rescue=instance_data)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_ramdisk
----------------------------------------------------------------------
_StringException: pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
URI qemu:///system does not support events
}}}
Traceback (most recent call last):
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 970, in test_xml_and_uri_rescue_no_ramdisk
expect_ramdisk=False, rescue=instance_data)
File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
(check(tree), expected_result, i))
MismatchError: !=:
reference = '00020003-0004-0005-0006-000700080009'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
-------------------- >> begin captured logging << --------------------
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
--------------------- >> end captured logging << ---------------------
This is very strange, as I have libvirt installed on my development machine and these unit tests pass for me. Can you try rebuilding your venv and see if that fixes the problem? In fact, are you using a venv at all?