[libvirt] Storage api problem

sarveswara rao mygapula sarvesh.18 at gmail.com
Fri May 23 06:02:37 UTC 2008


Hi,

I am just trying to use libvirt storage api from python terminal, and i am
getting the following error.

>>> import libvirt
>>> con = libvirt.open(<my uri using ssh>)
>>> con.numOfDefinedStoragePools()
libvir: Remote error : Broken pipe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/libvirt.py", line 1022, in
numOfDefinedStoragePools
    ret = libvirtmod.virConnectNumOfDefinedStoragePools(self._o)
AttributeError: 'module' object has no attribute
'virConnectNumOfDefinedStoragePools'
>>>

I have checked in the libvirt.c file and the function
"virConnectNumOfDefinedStoragePools(virConnectPtr conn)" is implemented.

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080523/726b7977/attachment-0001.htm>


More information about the libvir-list mailing list