Fake libvirtError incompatibile with real libvirtError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Rick Harris | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned | ||
neutron |
Invalid
|
Undecided
|
Unassigned |
Bug Description
PROBLEM
The existing `fakelibvirt.
This is a problem because test code may use either class depending on whether `libvirt-python` happens to be installed on the box.
For example, if `libvirt-python` is installed on the box and you try to use `libvirtError` class from a test with the `error_code` kwarg, you'll get this exception: http://
This code would work on a machine that doesn't have `libvirt-python` installed b/c `fakelibvirt.
POSSIBLE SOLUTION
Copy over the real `libvirt.
Create a `make_libvirtError` convenience function so we can still create `libvirtErrors` using the nice `error_code` kwarg in the constructor (b/c 99% of the time that's what we want).
Changed in neutron: | |
assignee: | nobody → Rick Harris (rconradharris) |
status: | New → In Progress |
Changed in neutron: | |
status: | In Progress → Won't Fix |
status: | Won't Fix → Invalid |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
I think you meant to report this against nova, not neutron.