test_virt_drivers.LibvirtConnTestCase fails if /etc/machine-id is empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Kilo |
Fix Released
|
Undecided
|
Matt Riedemann | ||
Liberty |
Fix Released
|
Undecided
|
Matt Riedemann |
Bug Description
This is related to bug 1475353 but in this case unit tests fail if the file exists but is empty. Either way we shouldn't be trying to read from a file on the system in unit tests, so we should set the CONF.libvirt.
Example failure (this is from Juno):
nova.tests.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
return f(self, *args, **kwargs)
File "nova/tests/
File "nova/tests/
[], 'herp', network_
File "nova/virt/
File "nova/virt/
context)
File "nova/virt/
File "nova/virt/
File "nova/virt/
return self._get_
File "nova/virt/
return str(uuid.
IndexError: list index out of range
Traceback (most recent call last):
_StringExce
stderr
stdout
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → Matt Riedemann (mriedem) |
Fix proposed to branch: master /review. openstack. org/286776
Review: https:/