← Back to team overview

registry team mailing list archive

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

 

Default lucid. 7.5 I think.

On Aug 30, 2010 11:50 PM, "Soren Hansen" <soren@xxxxxxxxxx> wrote:
> Which version of libvirt are you using?
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
> --
> AttributeError: virConnect instance has no attribute 'getVersion'
> https://bugs.launchpad.net/bugs/627146
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in OpenStack Compute (Nova): New
>
> 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/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 \
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/nova/+bug/627146/+subscribe

-- 
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