AttributeError: virConnect instance has no attribute 'getVersion'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It appears there is either a bug in Soren's recent patch or there is an issue with different versions of python-libvirt.
In my version of python-libvirt, getVersion is a function in the libvirt namespace as opposed to a method on virConnect.
The following change fixes the error on my machine, but i don't know if it is actually successfully checking for disconnect.
=== modified file 'nova/virt/
--- nova/virt/
+++ nova/virt/
@@ -91,7 +91,7 @@
def _test_connectio
try:
- self._wrapped_
+ libvirt.
return True
except libvirt.
if e.get_error_code() == libvirt.
Related branches
- Devin Carlen (community): Approve
- Jay Pipes (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiednova/virt/libvirt_conn.py (+1/-1)
Changed in nova: | |
status: | New → Fix Committed |
Changed in nova: | |
status: | Fix Committed → Fix Released |
formatting was messed up so here is the actual patch