Red Hat Bugzilla – Bug 1022906
RHS-C: Sync hooks is listing all the ".rpmsave" hooks as well
Last modified: 2015-05-13 12:28:39 EDT
Created attachment 815706 [details]
Description of problem:
While updating glusterfs in the RHS nodes, following glusters hooks were saved automatically in it's same path:
warning: /var/lib/glusterd/hooks/1/set/post/S30samba-set.sh saved as /var/lib/glusterd/hooks/1/set/post/K30samba-set.sh.rpmsave
warning: /var/lib/glusterd/hooks/1/stop/pre/S29CTDB-teardown.sh saved as /var/lib/glusterd/hooks/1/stop/pre/K29CTDB-teardown.sh.rpmsave
warning: /var/lib/glusterd/hooks/1/stop/pre/S30samba-stop.sh saved as /var/lib/glusterd/hooks/1/stop/pre/K30samba-stop.sh.rpmsave
warning: /var/lib/glusterd/hooks/1/start/post/S30samba-start.sh saved as /var/lib/glusterd/hooks/1/start/post/K30samba-start.sh.rpmsave
warning: /var/lib/glusterd/hooks/1/start/post/S29CTDBsetup.sh saved as /var/lib/glusterd/hooks/1/start/post/K29CTDBsetup.sh.rpmsave
[root@vm13 1]# pwd
[root@vm13 1]# find ./* -name "*.rpmsave"
However, if we list the gluster hooks from the UI, these hooks are also getting listed.
Version-Release number of selected component (if applicable):
[root@vm08 /]# rpm -qa |grep rhsc
How reproducible: Always
Steps to Reproduce:
1. Install cb5 build as per http://rhsm.pad.engineering.redhat.com/rhsc-build-cb5?
2. Add a host to the cluster
3. Click on "Sync" under Clusters --> GlusterHooks
Actual results: All the ".rpmsave" hooks are also getting listed along with the other hooks.
Expected results: If this is not the expected behaviour, we need to have a method to filter it from the UI.
Additional info: screenshot attached
Looks like after upgrade all the old hooks will be disabled by adding prefix "K" instead of "S".
Need info for the following.
1. Are their any new hooks installed with the same name(original name, Samba related)?
2. If you have any user defined hooks other than pre installed hooks like Samba, will upgrade changes those hooks into *.rpmsave?
If these hooks are listed under disabled hooks then it is the expected behavior from RHSC. We will have to check with glusterfs team about the upgrade behavior and users hooks.
It might require a GlusterFS fix... in that case, this bug would move out of Corbett.
Dusmant, If glusterfs is ignoring these files from executing then we need to take care in vdsm else it is not a bug.
Does glusterfs ignores .rpmsave files(and other backup files) inside hooks directory while executing hook scripts.
glusterd doesn't understand if a file is backedup by yum/rpm in the form of .rpmsave. It treats .rpmsave suffixed file the same way it treats 'regular' files.
Hope that helps.
Closing this bug as it is expected behavior from RHSC to list all the hooks present in glusterfs hooks directory.