[libvirt] [Fwd: error: this function is not supported by the connection driver : virConnectNumOfStoragePool]

Hello All, Any idea on this issue ? Regards, Onkar -------- Forwarded Message -------- From: Onkar <kernzap@gmail.com> To: libvir-list <libvir-list@redhat.com> Subject: error: this function is not supported by the connection driver : virConnectNumOfStoragePool Date: Wed, 30 May 2012 21:29:42 +0530 Hello, I configured libvirt like this ./configure --prefix=/ --exec-prefix=/usr/ --libdir=/usr/lib64/ --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-qemu --with-libvirtd --with-selinux --with-network --with-libblkid and then, make -j4 make install and then # virsh list --all Id Name State ---------------------------------------------------- - vm1 shut off # virsh pool-list --all error: Failed to list active pools error: this function is not supported by the connection driver: virConnectNumOfStoragePools getting this error , any clues on why is this error ? Regards, Onkar

i download the libvirt-0.9.12.tar.gz and make rpms rpmbuild -tb libvirt-0.9.12.tar.gz everything is ok.maybe you can have a try. 2012/5/31 Onkar <kernzap@gmail.com>:
Hello All, Any idea on this issue ?
Regards, Onkar
-------- Forwarded Message -------- From: Onkar <kernzap@gmail.com> To: libvir-list <libvir-list@redhat.com> Subject: error: this function is not supported by the connection driver : virConnectNumOfStoragePool Date: Wed, 30 May 2012 21:29:42 +0530
Hello,
I configured libvirt like this ./configure --prefix=/ --exec-prefix=/usr/ --libdir=/usr/lib64/ --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-qemu --with-libvirtd --with-selinux --with-network --with-libblkid
and then,
make -j4 make install
and then
# virsh list --all Id Name State ---------------------------------------------------- - vm1 shut off
# virsh pool-list --all error: Failed to list active pools error: this function is not supported by the connection driver: virConnectNumOfStoragePools
getting this error , any clues on why is this error ?
Regards, Onkar
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On 05/31/2012 12:33 AM, Onkar wrote:
Hello All, Any idea on this issue ?
Regards, Onkar
-------- Forwarded Message -------- From: Onkar <kernzap@gmail.com> To: libvir-list <libvir-list@redhat.com> Subject: error: this function is not supported by the connection driver : virConnectNumOfStoragePool Date: Wed, 30 May 2012 21:29:42 +0530
Hello,
I configured libvirt like this ./configure --prefix=/ --exec-prefix=/usr/ --libdir=/usr/lib64/ --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-qemu --with-libvirtd --with-selinux --with-network --with-libblkid
That's a lot of redundant --with-storage-dir options. Generally, the error message you are seeing implies that you built without the proper prerequisites for the function that you are trying to call; perhaps it would help if you pasted the output of: $ sed -n '/Configuration summary/,/Cache/p' config.log $ virsh uri $ virsh version --daemon $ virsh --version=long which in turn may help us figure out which *-devel packages you were missing when you did your self-build, as needed in order to enable that function. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 05/31/2012 08:33 AM, Onkar wrote:
Hello All, Any idea on this issue ?
Regards, Onkar
-------- Forwarded Message -------- From: Onkar <kernzap@gmail.com> To: libvir-list <libvir-list@redhat.com> Subject: error: this function is not supported by the connection driver : virConnectNumOfStoragePool Date: Wed, 30 May 2012 21:29:42 +0530
Hello,
I configured libvirt like this ./configure --prefix=/ --exec-prefix=/usr/ --libdir=/usr/lib64/ --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-qemu --with-libvirtd --with-selinux --with-network --with-libblkid
and then,
make -j4 make install
and then
# virsh list --all Id Name State ---------------------------------------------------- - vm1 shut off
# virsh pool-list --all error: Failed to list active pools error: this function is not supported by the connection driver: virConnectNumOfStoragePools
getting this error , any clues on why is this error ?
Regards, Onkar
Hi, I'm not saying it is the case, but it could've happened: If you installed from git and your pool resides in ~/.libvirt, then it is possible, that thisthis was moved to ~/.config/libvirt and storage driver failed to start. If you are building with modules enabled, then the module didn't get to load (and unfortunately didn't show any message, this should be a bug) and you have no storageDriver available, that's why you see this message. This is what happened to me. The solution is to virsh pool-edit the pool after you configured and installed with --without-driver-modules. Martin

On 05/31/2012 12:33 AM, Onkar wrote:
Hello All, Any idea on this issue ?
I configured libvirt like this ./configure --prefix=/ --exec-prefix=/usr/ --libdir=/usr/lib64/ --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-storage-dir --with-qemu --with-libvirtd --with-selinux --with-network --with-libblkid
# virsh pool-list --all error: Failed to list active pools error: this function is not supported by the connection driver: virConnectNumOfStoragePools
Looks like a code typo. This should fix it: https://www.redhat.com/archives/libvir-list/2012-June/msg00138.html -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (4)
-
Eric Blake
-
Martin Kletzander
-
Onkar
-
xingxing gao