yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #27230
[Bug 1414708] [NEW] libvirt unit tests are failing if no real libvirt installed
Public bug reported:
Something changed since 1/20 where the
nova.tests.unit.virt.libvirt.test_driver tests would pass if you didn't
have a real libvirt installed but now they fail if you don't have
libvirt installed, e.g.:
Traceback (most recent call last):
File "nova/tests/unit/virt/libvirt/test_driver.py", line 4062, in test_xml_and_uri_rescue_no_kernel
expect_ramdisk=True, rescue=instance_data)
File "/home/mriedem/git/nova/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "nova/tests/unit/virt/libvirt/test_driver.py", line 5601, in _check_xml_and_uri
rescue=rescue)
File "nova/virt/libvirt/driver.py", line 4006, in _get_guest_xml
context, flavor=flavor)
File "nova/virt/libvirt/driver.py", line 3819, in _get_guest_config
instance.numa_topology, flavor, allowed_cpus)
File "nova/virt/libvirt/driver.py", line 3384, in _get_guest_numa_config
topology = self._get_host_numa_topology()
File "nova/virt/libvirt/driver.py", line 4580, in _get_host_numa_topology
if not self._host.has_min_version(MIN_LIBVIRT_NUMA_TOPOLOGY_VERSION):
File "nova/virt/libvirt/host.py", line 433, in has_min_version
conn = self.get_connection()
File "nova/virt/libvirt/host.py", line 415, in get_connection
raise exception.HypervisorUnavailable(host=CONF.host)
HypervisorUnavailable: Connection to the hypervisor is broken on host: fake-mini
I suspect something was missed in this change:
https://github.com/openstack/nova/commit/4b9bec3a1c819e7006af6bfa1de6928bde91b2c7
** Affects: nova
Importance: Undecided
Status: New
** Tags: libvirt testing
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1414708
Title:
libvirt unit tests are failing if no real libvirt installed
Status in OpenStack Compute (Nova):
New
Bug description:
Something changed since 1/20 where the
nova.tests.unit.virt.libvirt.test_driver tests would pass if you
didn't have a real libvirt installed but now they fail if you don't
have libvirt installed, e.g.:
Traceback (most recent call last):
File "nova/tests/unit/virt/libvirt/test_driver.py", line 4062, in test_xml_and_uri_rescue_no_kernel
expect_ramdisk=True, rescue=instance_data)
File "/home/mriedem/git/nova/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "nova/tests/unit/virt/libvirt/test_driver.py", line 5601, in _check_xml_and_uri
rescue=rescue)
File "nova/virt/libvirt/driver.py", line 4006, in _get_guest_xml
context, flavor=flavor)
File "nova/virt/libvirt/driver.py", line 3819, in _get_guest_config
instance.numa_topology, flavor, allowed_cpus)
File "nova/virt/libvirt/driver.py", line 3384, in _get_guest_numa_config
topology = self._get_host_numa_topology()
File "nova/virt/libvirt/driver.py", line 4580, in _get_host_numa_topology
if not self._host.has_min_version(MIN_LIBVIRT_NUMA_TOPOLOGY_VERSION):
File "nova/virt/libvirt/host.py", line 433, in has_min_version
conn = self.get_connection()
File "nova/virt/libvirt/host.py", line 415, in get_connection
raise exception.HypervisorUnavailable(host=CONF.host)
HypervisorUnavailable: Connection to the hypervisor is broken on host: fake-mini
I suspect something was missed in this change:
https://github.com/openstack/nova/commit/4b9bec3a1c819e7006af6bfa1de6928bde91b2c7
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1414708/+subscriptions
Follow ups
References