qemu-img execute not mocked in unit tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Jay Pipes | ||
Ubuntu Cloud Archive |
Fix Released
|
Low
|
Unassigned | ||
Ocata |
Fix Released
|
Low
|
Unassigned | ||
Pike |
Fix Released
|
Low
|
Unassigned | ||
Queens |
Fix Released
|
Low
|
Unassigned | ||
Rocky |
Fix Released
|
Low
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
Fix Released
|
Low
|
Unassigned | ||
Cosmic |
Fix Released
|
Low
|
Unassigned |
Bug Description
nova.tests.
This system does not have qemu(-img) installed in it and running unit tests returns the following:
=======
Failed 1 tests - output below:
=======
nova.tests.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/
b' out, err = utils.execute(*cmd, prlimit=
b' File "/home/
b' return processutils.
b' File "/home/
b' cmd=sanitized_cmd)'
b'oslo_
b'Command: /home/jaypipes/
b'Exit code: 127'
b"Stdout: ''"
b"Stderr: '/usr/bin/env: \xe2\x80\
b''
b'During handling of the above exception, another exception occurred:'
b''
b'Traceback (most recent call last):'
b' File "/home/
b' return func(*args, **keywargs)'
b' File "/home/
b" '/fake/path')"
b' File "/home/
b' self.assertThat
b' File "/home/
b' mismatch_error = self._matchHelp
b' File "/home/
b' mismatch = matcher.
b' File "/home/
b' mismatch = self.exception_
b' File "/home/
b' mismatch = matcher.
b' File "/home/
b' reraise(*matchee)'
b' File "/home/
b' raise exc_obj.
b' File "/home/
b' result = matchee()'
b' File "/home/
b' return self._callable_
b' File "/home/
b' raise exception.
b'nova.
b'Command: /home/jaypipes/
b'Exit code: 127'
b"Stdout: ''"
b"Stderr: '/usr/bin/env: \xe2\x80\
b''
Adding Ubuntu SRU details:
-------
[Impact]
When building the latest package version of nova, the following unit test fails:
nova.tests.
[Test Case]
Simply building the package will confirm whether or not the test fails.
[Regression Potential]
Extremely low. This is just a test update.
Changed in nova (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in nova (Ubuntu Bionic): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in nova (Ubuntu Cosmic): | |
status: | Triaged → Fix Released |
description: | updated |
Fix proposed to branch: master /review. openstack. org/562339
Review: https:/