Krishnan Parthasarathi
2015-Jul-01 06:02 UTC
[Gluster-users] [Gluster-devel] Gluster Docker images are available at docker hub
> Yeah this followed by glusterd restart should help > > But frankly, i was hoping that 'rm' the file isn't a neat way to fix this > issueWhy is rm not a neat way? Is it because the container deployment tool needs to know about gluster internals? But isn't a Dockerfile dealing with details of the service(s) that is being deployment in a container.> AFAICT we have 2 scenarios: > > 1) Non-container scenario, where the current behaviour of glusterd persisting > the info in .info file makes sense > > 2) Container scenario, where the same image gets used as the base, hence all > containers gets the same UUID > For this we can have an option to tell glusterd that instructs it to refresh > the UUID during next start. > > Maybe somethign like presence of a file /var/lib/glusterd/refresh_uuid makes > glusterd refresh the UUID in .info > and then delete this file, that ways, Dockerfile can touch this file, post > gluster rpm install step and things should > work as expected ?If container deployment needs are different it should should address issues like above. If we start addressing glusterd's configuration handling for every new deployment technology it would quickly become unmaintainable.
Humble Devassy Chirammal
2015-Jul-01 07:13 UTC
[Gluster-users] [Gluster-devel] Gluster Docker images are available at docker hub
> Yeah this followed by glusterd restart should help > > But frankly, i was hoping that 'rm' the file isn't a neat way to fix this > issue>>Why is rm not a neat way? Is it because the container deployment toolneeds to>>know about gluster internals? But isn't a Dockerfile dealing with details >>of the service(s) that is being deployment in a container.I do think fixing the dockerfile is *not* the correct way. That said, the use case is not just containers. This issue can pop up in Ovirt or virtualization environments as well. The VM template may have pre configured glusterd in it and the pool created out of this template can show the same behaviour. I believe fixing it in gluster code base would be the right thing to do. Thanks Atin for the heads up!> AFAICT we have 2 scenarios: > > 1) Non-container scenario, where the current behaviour of glusterdpersisting> the info in .info file makes sense > > 2) Container scenario, where the same image gets used as the base, henceall> containers gets the same UUID > For this we can have an option to tell glusterd that instructs it torefresh> the UUID during next start. >--Humble On Wed, Jul 1, 2015 at 11:32 AM, Krishnan Parthasarathi <kparthas at redhat.com> wrote:> > > Yeah this followed by glusterd restart should help > > > > But frankly, i was hoping that 'rm' the file isn't a neat way to fix this > > issue > > Why is rm not a neat way? Is it because the container deployment tool > needs to > know about gluster internals? But isn't a Dockerfile dealing with details > of the service(s) that is being deployment in a container. > > > AFAICT we have 2 scenarios: > > > > 1) Non-container scenario, where the current behaviour of glusterd > persisting > > the info in .info file makes sense > > > > 2) Container scenario, where the same image gets used as the base, hence > all > > containers gets the same UUID > > For this we can have an option to tell glusterd that instructs it to > refresh > > the UUID during next start. > > > > Maybe somethign like presence of a file /var/lib/glusterd/refresh_uuid > makes > > glusterd refresh the UUID in .info > > and then delete this file, that ways, Dockerfile can touch this file, > post > > gluster rpm install step and things should > > work as expected ? > > If container deployment needs are different it should should address > issues like > above. If we start addressing glusterd's configuration handling for every > new deployment technology it would quickly become unmaintainable. > _______________________________________________ > Gluster-devel mailing list > Gluster-devel at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150701/bf7c5dd4/attachment.html>
Deepak Shetty
2015-Jul-01 09:33 UTC
[Gluster-users] [Gluster-devel] Gluster Docker images are available at docker hub
On Wed, Jul 1, 2015 at 11:32 AM, Krishnan Parthasarathi <kparthas at redhat.com> wrote:> > > Yeah this followed by glusterd restart should help > > > > But frankly, i was hoping that 'rm' the file isn't a neat way to fix this > > issue > > Why is rm not a neat way? Is it because the container deployment tool > needs to > know about gluster internals? But isn't a Dockerfile dealing with details > of the service(s) that is being deployment in a container. >IIUC post 'rm' we need to restart glusterd, but touching a file as part of Dockerfile would bringup glusterd with the new UUID. I haven't tried this tho' I guess like Humble said, fixing this in glusterd seems ideal The above discussion was _if_ glusterd continues the current behavior then either 'rm' or 'touch' methods could be considered. thanx, deepak -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150701/ad734b33/attachment.html>