[Gluster-users] Error when trying to connect to a gluster volume (with libvirt/libgfapi)

Jacob Yundt jyundt at gmail.com
Mon Dec 2 17:42:00 UTC 2013


> >
> > I checked and I _do_ have allow-insecure set:
> >
>
> Did you remember to put "option rpc-auth-allow-insecure on" into /etc/glusterfs/glusterd.vol aswell?
>
> -samuli
>

I think "option rpc-auth-allow-insecure on" in
/etc/glusterfs/glusterd.vol was the trick.

However, I seem to be getting a new error now:

[root at kvmhost kvmimages]# VIRSH_DEBUG=0 virsh start testvm
start: found option <domain>: testvm
start: <domain> trying as domain NAME
libvir: QEMU Driver error : internal error process exited while
connecting to monitor: char device redirected to /dev/pts/4
qemu-kvm: -drive
file=gluster+tcp://glusterhost/kvmimages/testvm.img,if=none,id=drive-virtio-disk0,format=raw:
could not open disk image
gluster+tcp://glusterhost/kvmimages/testvm.img: Permission denied
error: Failed to start domain testvm
error: internal error process exited while connecting to monitor: char
device redirected to /dev/pts/4
qemu-kvm: -drive
file=gluster+tcp://glusterhost/kvmimages/testvm.img,if=none,id=drive-virtio-disk0,format=raw:
could not open disk image
gluster+tcp://glusterhost/kvmimages/testvm.img: Permission denied


[root at kvmhost kvmimages]#

>From my brick log:

[2013-12-02 17:37:09.283841] I
[server-handshake.c:567:server_setvolume] 0-kvmimages-server: accepted
client from kvmhost-9277-2013/12/02-17:37:09:263690-kvmimages-client-0-0
(version: 3.4.1)
[2013-12-02 17:39:11.023401] I
[server-handshake.c:567:server_setvolume] 0-kvmimages-server: accepted
client from kvmhost-9331-2013/12/02-17:39:11:683-kvmimages-client-0-0
(version: 3.4.1)
[2013-12-02 17:39:11.034237] I
[server-rpc-fops.c:1572:server_open_cbk] 0-kvmimages-server: 12: OPEN
/testvm.img (78e3f4fe-044d-49c3-9ed2-a75274f9ff02) ==> (Permission
denied)
[2013-12-02 17:39:11.034554] I [server.c:762:server_rpc_notify]
0-kvmimages-server: disconnecting connectionfrom
kvmhost-9331-2013/12/02-17:39:11:683-kvmimages-client-0-0
[2013-12-02 17:39:11.034590] I
[server-helpers.c:729:server_connection_put] 0-kvmimages-server:
Shutting down connection
kvmhost-9331-2013/12/02-17:39:11:683-kvmimages-client-0-0
[2013-12-02 17:39:11.034613] I
[server-helpers.c:617:server_connection_destroy] 0-kvmimages-server:
destroyed connection of
kvmhost-9331-2013/12/02-17:39:11:683-kvmimages-client-0-0

I suspect this is related to libvirt.  I'll have to poke around some more.

Thanks for the prompt responses!

-Jacob



More information about the Gluster-users mailing list