Hello,
I apologize for the delayed reply.
I've collected some logs and posted them here:
I stopped the Gluster service on 192.168.1.11, moved /var/log/glusterfs to a backup, then started Gluster so that the log files were more succinct.
I then used the qemu-img command as mentioned before as root, which was successful. Then I ran the command as libvirt-qemu and let the command hang for 2 minutes before I killed it.
It might also be helpful to note that this is on an Ubuntu 12.04 server using the packages found here:
Thanks,
Joe
On Sat, Dec 14, 2013 at 12:41 AM, Vijay Bellur <vbellur@xxxxxxxxxx> wrote:
On 12/13/2013 10:58 AM, Joe Topjian wrote:
Hello,qemu@192.168.1.11 <mailto:qemu@192.168.1.11>> qemu-img create
I'm having a problem getting remote servers to connect to Gluster with qemu.
I have 5 servers, 4 of which run Gluster and host a volume. The qemu
user on all 5 servers has the same uid.
storage.owner-uid and storage.owner-gid is set to that user.
In addition, server.allow-insecure is on and is also set in the
glusterd.vol file. glusterd has also been restarted (numerous times).
When attempting to create a qemu file by connecting to the same server,
everything works:
gluster://192.168.1.11/volumes/v.img <http://192.168.1.11/volumes/v.img> 1M
Formatting 'gluster://192.168.1.11/volumes/v.img
<http://192.168.1.11/volumes/v.img>', fmt=raw size=1048576
qemu@192.168.1.11 <mailto:qemu@192.168.1.11>>qemu@192.168.1.12 <mailto:qemu@192.168.1.12>> qemu-img create
But when trying to do it remotely, the command hangs indefinitely:
gluster://192.168.1.11/volumes/v.img <http://192.168.1.11/volumes/v.img> 1M
Formatting 'gluster://192.168.1.11/volumes/v.img
<http://192.168.1.11/volumes/v.img>', fmt=raw size=1048576 <http://192.168.1.12>, the command works and the file shows up in theqemu@192.168.1.12 <mailto:qemu@192.168.1.12>> qemu-img create
distributed volume.
Further, when turning server.allow-insecure off, I get an immediate
error no matter what the source and destination connection is:
gluster://192.168.1.11/volumes/v.img <http://192.168.1.11/volumes/v.img> 1M
Formatting 'gluster://192.168.1.11/volumes/v.img
<http://192.168.1.11/volumes/v.img>', fmt=raw size=1048576<http://192.168.1.11/volumes/v.img>: error while creating raw: No data
qemu-img: Gluster connection failed for server=192.168.1.11 port=0
volume=volumes image=v.img transport=tcp
qemu-img: gluster://192.168.1.11/volumes/v.img
available
Does anyone have any ideas how I can have an unprivileged user connect
to remote gluster servers?
Can you please provide glusterd and glusterfsd logs from 192.168.1.11?
-Vijay
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-users