<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 9:39 AM, Atin Mukherjee <span dir="ltr">&lt;<a href="mailto:amukherj@redhat.com" target="_blank">amukherj@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
On 05/06/2015 12:31 PM, Humble Devassy Chirammal wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt;<br>
&gt; Docker images of GlusterFS 3.6 for Fedora ( 21) and CentOS  (7) are now<br>
&gt; available at docker hub ( <a href="https://registry.hub.docker.com/u/gluster/" rel="noreferrer" target="_blank">https://registry.hub.docker.com/u/gluster/</a> ).<br>
&gt; These images can be used to deploy GlusterFS  containers.<br>
&gt;<br>
&gt; The blog entry at <a href="http://planet.gluster.org" rel="noreferrer" target="_blank">planet.gluster.org</a> [1] have details about how these<br>
&gt; images can be used.<br>
&gt;<br>
&gt; Please let me know if you have any comments/feedback/questions.<br>
&gt;<br>
&gt; [1] Building GlusterFS in a docker container @ <a href="http://planet.gluster.org" rel="noreferrer" target="_blank">planet.gluster.org</a><br>
&gt; [2] <a href="http://humblec.com/building-glusterfs-in-a-docker-container/" rel="noreferrer" target="_blank">http://humblec.com/building-glusterfs-in-a-docker-container/</a><br>
</div></div>Hi Humble,<br>
<br>
As discussed yesterday, post daemon refactoring we generate UUID at the<br>
the time of glusterD init and this has caused an issue in bringing<br>
multiple docker containers as UUIDs will be same across different<br>
containers since yum install brings up glusterd and persist the<br>
information in /var/lib/<a href="http://glusterd.info" rel="noreferrer" target="_blank">glusterd.info</a>. To make this work for docker<br>
containers could you add a line just after the installation steps in<br>
Dockerfile?<br></blockquote><div><br></div><div>Yeah I too faced this issued in recent past, fixing this will help users running gluster in containers.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
rm -rf /var/lib/glusterd/<a href="http://glusterd.info" rel="noreferrer" target="_blank">glusterd.info</a><br></blockquote><div><br></div><div>Yeah this followed by glusterd restart should help<br><br></div><div>But frankly, i was hoping that &#39;rm&#39; the file isn&#39;t a neat way to fix this issue<br></div><div>AFAICT we have 2 scenarios:<br><br></div><div>1) Non-container scenario, where the current behaviour of glusterd persisting the info in .info file makes sense<br><br></div><div>2) Container scenario, where the same image gets used as the base, hence all containers gets the same UUID<br></div><div>For this we can have an option to tell glusterd that instructs it to refresh the UUID during next start.<br><br></div><div>Maybe somethign like presence of a file /var/lib/glusterd/refresh_uuid makes glusterd refresh the UUID in .info<br></div><div>and then delete this file, that ways, Dockerfile can touch this file, post gluster rpm install step and things should<br></div><div>work as expected ?<br><br></div><div>thanx,<br></div><div>deepak<br><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I could not find a way to send a pull request on this.<br>
<br>
~Atin<br>
&gt;<br>
&gt; --Humble<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-devel mailing list<br>
&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
~Atin<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
</font></span></blockquote></div><br></div></div>