<div dir="ltr">Hello,<div><br></div><div>I&#39;m having a problem getting remote servers to connect to Gluster with qemu.</div><div><br></div><div>I have 5 servers, 4 of which run Gluster and host a volume. The qemu user on all 5 servers has the same uid.</div>
<div><br></div><div>storage.owner-uid and storage.owner-gid is set to that user.</div><div><br></div><div>In addition, server.allow-insecure is on and is also set in the glusterd.vol file. glusterd has also been restarted (numerous times).</div>
<div><br></div><div>When attempting to create a qemu file by connecting to the same server, everything works:</div><div><br></div><div><a href="mailto:qemu@192.168.1.11">qemu@192.168.1.11</a>&gt; qemu-img create gluster://<a href="http://192.168.1.11/volumes/v.img">192.168.1.11/volumes/v.img</a> 1M</div>
<div>Formatting &#39;gluster://<a href="http://192.168.1.11/volumes/v.img">192.168.1.11/volumes/v.img</a>&#39;, fmt=raw size=1048576</div><div><a href="mailto:qemu@192.168.1.11">qemu@192.168.1.11</a>&gt;</div><div><br></div>
<div>But when trying to do it remotely, the command hangs indefinitely:</div><div><br></div><div><a href="mailto:qemu@192.168.1.12">qemu@192.168.1.12</a>&gt; qemu-img create gluster://<a href="http://192.168.1.11/volumes/v.img">192.168.1.11/volumes/v.img</a> 1M</div>
<div>Formatting &#39;gluster://<a href="http://192.168.1.11/volumes/v.img">192.168.1.11/volumes/v.img</a>&#39;, fmt=raw size=1048576</div><div>^C</div><div><br></div><div>Yet when 192.168.1.12 connects to gluster://<a href="http://192.168.1.12">192.168.1.12</a>, the command works and the file shows up in the distributed volume.</div>
<div><br></div><div>Further, when turning server.allow-insecure off, I get an immediate error no matter what the source and destination connection is:</div><div><br></div><div><div><a href="mailto:qemu@192.168.1.12">qemu@192.168.1.12</a>&gt; qemu-img create gluster://<a href="http://192.168.1.11/volumes/v.img">192.168.1.11/volumes/v.img</a> 1M</div>
<div>Formatting &#39;gluster://<a href="http://192.168.1.11/volumes/v.img">192.168.1.11/volumes/v.img</a>&#39;, fmt=raw size=1048576</div><div>qemu-img: Gluster connection failed for server=192.168.1.11 port=0 volume=volumes image=v.img transport=tcp</div>
<div>qemu-img: gluster://<a href="http://192.168.1.11/volumes/v.img">192.168.1.11/volumes/v.img</a>: error while creating raw: No data available</div></div><div><br></div><div>Does anyone have any ideas how I can have an unprivileged user connect to remote gluster servers?</div>
<div><br></div><div>Thanks,</div><div>Joe</div></div>