[libvirt] Glusterfs Libvirt issue

Hi, I am trying to create glusterfs pool with libvirt but its working, and following is the error *libvirt_storagepool_define_xml(): internal error unknown storage pool type gluster* the Qemu has enabled glusterfs backend support. I can create the glusterfs image using this *qemu-img create gluster://localhost/test/umar 5G* Would you please help what should else i need to require? Br. Umar

On 12/10/2013 10:34 PM, Umar Draz wrote:
Hi,
I am trying to create glusterfs pool with libvirt but its working, and following is the error
*libvirt_storagepool_define_xml(): internal error unknown storage pool type gluster*
What version of libvirt? If older than 1.2.0, upgrade (gluster pool was added only in 1.2.0); if it is 1.2.0, then figure out why your build was not configured to link against libgfapi (if you self-built, use --with-storage-gluster=yes; if it is a distro build, complain to the distro packagers). [Oh phooey - I just noticed that 'virsh --version=long' doesn't give any hints about whether gluster support was compiled in. Looks like I have a patch coming up to fix that - although not including that information doesn't impact anything except easier diagnosis of whether it was compiled in] -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Hi Eric Here is the output of rpm [root@centos ~]# rpm -qa | grep libvirt libvirt-python-0.10.2-29.el6.1.x86_64 libvirt-0.10.2-29.el6.1.x86_64 libvirt-client-0.10.2-29.el6.1.x86_64 libvirt-devel-0.10.2-29.el6.1.x86_64 and here is output of php code Array ( [libvirt.release] => 2 [libvirt.minor] => 10 [libvirt.major] => 0 [connector.version] => 0.4.8 [connector.major] => 0 [connector.minor] => 4 [connector.release] => 8 ) Br. Umar On Thu, Dec 12, 2013 at 12:51 AM, Eric Blake <eblake@redhat.com> wrote:
On 12/10/2013 10:34 PM, Umar Draz wrote:
Hi,
I am trying to create glusterfs pool with libvirt but its working, and following is the error
*libvirt_storagepool_define_xml(): internal error unknown storage pool type gluster*
What version of libvirt? If older than 1.2.0, upgrade (gluster pool was added only in 1.2.0); if it is 1.2.0, then figure out why your build was not configured to link against libgfapi (if you self-built, use --with-storage-gluster=yes; if it is a distro build, complain to the distro packagers).
[Oh phooey - I just noticed that 'virsh --version=long' doesn't give any hints about whether gluster support was compiled in. Looks like I have a patch coming up to fix that - although not including that information doesn't impact anything except easier diagnosis of whether it was compiled in]
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
-- Umar Draz Network Architect

On 12/11/2013 01:18 PM, Umar Draz wrote:
Hi Eric
[please don't top-post on technical lists]
Here is the output of rpm
[root@centos ~]# rpm -qa | grep libvirt libvirt-python-0.10.2-29.el6.1.x86_64 libvirt-0.10.2-29.el6.1.x86_64
There's your problem - gluster pools did not exist in libvirt 0.10.2. If you have a Red Hat support contract, you can request that it be added for RHEL 6.6 and/or RHEL 7.0 (the RHEL 7 public beta began today, but even that build is based off of libvirt 1.1.1 rather than 1.2.0). If you are using CentOS, you'll just have to wait and/or self-build. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Hi Eric Thanks Br. Umar On Thu, Dec 12, 2013 at 1:23 AM, Eric Blake <eblake@redhat.com> wrote:
On 12/11/2013 01:18 PM, Umar Draz wrote:
Hi Eric
[please don't top-post on technical lists]
Here is the output of rpm
[root@centos ~]# rpm -qa | grep libvirt libvirt-python-0.10.2-29.el6.1.x86_64 libvirt-0.10.2-29.el6.1.x86_64
There's your problem - gluster pools did not exist in libvirt 0.10.2. If you have a Red Hat support contract, you can request that it be added for RHEL 6.6 and/or RHEL 7.0 (the RHEL 7 public beta began today, but even that build is based off of libvirt 1.1.1 rather than 1.2.0). If you are using CentOS, you'll just have to wait and/or self-build.
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
-- Umar Draz Network Architect
participants (2)
-
Eric Blake
-
Umar Draz