Nova Unit Testing with older libvirt versions fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Daniel Berrange |
Bug Description
When packaging and running unit tests with older versions of libvirt < 0.9.13, the unit tests will fail even though there is nothing wrong with the actual code. An example failure is:
14:01:03 pythonlogging:'': {{{
14:01:03 INFO [nova.network.
14:01:03 INFO [nova.virt.
14:01:03 }}}
14:01:03
14:01:03 Traceback (most recent call last):
14:01:03 File "/home/
14:01:03 doms = drvr._list_
14:01:03 File "/home/
14:01:03 alldoms = self._list_
14:01:03 File "/home/
14:01:03 if self._conn.
14:01:03 File "/home/
14:01:03 expected_method = self._VerifyMet
14:01:03 File "/home/
14:01:03 expected = self._PopNextMe
14:01:03 File "/home/
14:01:03 raise UnexpectedMetho
14:01:03 UnexpectedMetho
14:01:03
14:01:03
14:01:03 =======
14:01:03 FAIL: nova.tests.
14:01:03 -------
14:01:03 _StringException: Empty attachments:
14:01:03 stderr
14:01:03 stdout
14:01:03
14:01:03 pythonlogging:'': {{{INFO [nova.network.
14:01:03
14:01:03 Traceback (most recent call last):
14:01:03 File "/home/
14:01:03 doms = drvr._list_
14:01:03 File "/home/
14:01:03 flags = libvirt.
14:01:03 AttributeError: 'module' object has no attribute 'VIR_CONNECT_
Changed in nova: | |
importance: | Low → High |
tags: | added: libvirt testing |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
Christopher, please see if this works for you
http:// paste.openstack .org/show/ 86563/
(just replace libvirt with fakelibvirt in 2 spots)