Re: [Gluster-users] Auto Update did not restart services

2014-06-27 Thread Gene Liverman
Thanks to all for finding this so quickly!





--
*Gene Liverman*
Systems Administrator
Information Technology Services
University of West Georgia
glive...@westga.edu
678.839.5492

ITS: Making Technology Work for You!



This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the
sender immediately by return mail, delete this message, and destroy any
copies. Any dissemination or use of this information by a person other than
the intended recipient is unauthorized and may be illegal or actionable by
law.



On Fri, Jun 27, 2014 at 4:35 AM, Niels de Vos  wrote:

> On Thu, Jun 26, 2014 at 07:39:22PM -0400, Gene Liverman wrote:
> > My systems are set to automatically install updates. Since I installed
> > Gluster from the repos this means I went from 3.5 to 3.5.1 automatically.
> >  The problem is this: the installer did not stop or restart the service
> so
> > when I checked the status via /sbin/service on RHEL6 it said it was
> dead. A
> > simple service restart fixed this but, until I found the problem, it was
> > off line.  Is this a bug or do I need to disable the repo and manually
> > check for updates to Gluster or what? Thanks!
>
> This has been reported by an other user yesterday too. We've looked at
> the logs and found the root cause:
>
> > The post installation script for the glusterfs-server handles the
> > restarting of glusterd incorrect. This caused an outage when the
> > glusterfs-server package was automatically updated.
> >
> > After checking the logs together with Patrick, we came to the
> > conclusion that the running glusterd should have received a signal and
> > would be exiting. However, the script does not wait for the running
> > glusterd to exit, and starts a new glusterd process immediately after
> > sending the SIGTERM. In case the 1st glusterd process has not exited
> > yet, the new glusterd process can not listen on port 24007 and exits.
> > The 1st glusterd will exit eventually too, leaving the service
> > unavailable.
> >
> > Snippet from the .spec:
> >
> >  735 %post server
> >  ...
> >  769 pidof -c -o %PPID -x glusterd &> /dev/null
> >  770 if [ $? -eq 0 ]; then
> >  ...
> >  773 killall glusterd &> /dev/null
> >  774 glusterd --xlator-option *.upgrade=on -N
> >  775 else
> >  776 glusterd --xlator-option *.upgrade=on -N
> >  777 fi
> >  ...
>
> (also available in https://bugzilla.redhat.com/1113543#c1)
>
> This seems to be a bug that affects any update and I do not think it is
> unique to 3.5.1. A fix will be included in 3.5.2, the 'workaround' is to
> (re)start the glusterd service after updating the packages.
>
> I'm sorry for any unexpected outages that this caused! At least you've
> now tested your Gluster monitoring setup ;-)
>
> HTH,
> Niels
>
___
Gluster-users mailing list
Gluster-users@gluster.org
http://supercolony.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] Auto Update did not restart services

2014-06-27 Thread Niels de Vos
On Thu, Jun 26, 2014 at 07:39:22PM -0400, Gene Liverman wrote:
> My systems are set to automatically install updates. Since I installed
> Gluster from the repos this means I went from 3.5 to 3.5.1 automatically.
>  The problem is this: the installer did not stop or restart the service so
> when I checked the status via /sbin/service on RHEL6 it said it was dead. A
> simple service restart fixed this but, until I found the problem, it was
> off line.  Is this a bug or do I need to disable the repo and manually
> check for updates to Gluster or what? Thanks!

This has been reported by an other user yesterday too. We've looked at 
the logs and found the root cause:

> The post installation script for the glusterfs-server handles the 
> restarting of glusterd incorrect. This caused an outage when the 
> glusterfs-server package was automatically updated.
> 
> After checking the logs together with Patrick, we came to the 
> conclusion that the running glusterd should have received a signal and 
> would be exiting. However, the script does not wait for the running 
> glusterd to exit, and starts a new glusterd process immediately after 
> sending the SIGTERM. In case the 1st glusterd process has not exited 
> yet, the new glusterd process can not listen on port 24007 and exits. 
> The 1st glusterd will exit eventually too, leaving the service 
> unavailable.
> 
> Snippet from the .spec:
> 
>  735 %post server
>  ...
>  769 pidof -c -o %PPID -x glusterd &> /dev/null
>  770 if [ $? -eq 0 ]; then
>  ...
>  773 killall glusterd &> /dev/null
>  774 glusterd --xlator-option *.upgrade=on -N
>  775 else
>  776 glusterd --xlator-option *.upgrade=on -N
>  777 fi
>  ...

(also available in https://bugzilla.redhat.com/1113543#c1)

This seems to be a bug that affects any update and I do not think it is 
unique to 3.5.1. A fix will be included in 3.5.2, the 'workaround' is to 
(re)start the glusterd service after updating the packages.

I'm sorry for any unexpected outages that this caused! At least you've 
now tested your Gluster monitoring setup ;-)

HTH,
Niels
___
Gluster-users mailing list
Gluster-users@gluster.org
http://supercolony.gluster.org/mailman/listinfo/gluster-users


[Gluster-users] Auto Update did not restart services

2014-06-26 Thread Gene Liverman
My systems are set to automatically install updates. Since I installed
Gluster from the repos this means I went from 3.5 to 3.5.1 automatically.
 The problem is this: the installer did not stop or restart the service so
when I checked the status via /sbin/service on RHEL6 it said it was dead. A
simple service restart fixed this but, until I found the problem, it was
off line.  Is this a bug or do I need to disable the repo and manually
check for updates to Gluster or what? Thanks!




--
*Gene Liverman*
Systems Administrator
Information Technology Services
University of West Georgia
glive...@westga.edu


ITS: Making Technology Work for You!



This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the
sender immediately by return mail, delete this message, and destroy any
copies. Any dissemination or use of this information by a person other than
the intended recipient is unauthorized and may be illegal or actionable by
law.
___
Gluster-users mailing list
Gluster-users@gluster.org
http://supercolony.gluster.org/mailman/listinfo/gluster-users