← Back to team overview

registry team mailing list archive

[Bug 627146] [NEW] AttributeError: virConnect instance has no attribute 'getVersion'

 

Public bug reported:

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/libvirt_conn.py'
--- nova/virt/libvirt_conn.py   2010-08-30 12:50:50 +0000
+++ nova/virt/libvirt_conn.py   2010-08-30 23:38:38 +0000
@@ -91,7 +91,7 @@
 
     def _test_connection(self):
         try:
-            self._wrapped_conn.getVersion()
+            libvirt.getVersion()
             return True
         except libvirt.libvirtError as e:
             if e.get_error_code() == libvirt.VIR_ERR_SYSTEM_ERROR and \

** Affects: nova
     Importance: Undecided
         Status: New

-- 
AttributeError: virConnect instance has no attribute 'getVersion'
https://bugs.launchpad.net/bugs/627146
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



Follow ups

References