Bug 1200713
| Summary: | Automatic condrestart upon package upgrade breaks exports from Veritas cluster | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Julio Entrena Perez <jentrena> |
| Component: | nfs-utils | Assignee: | Steve Dickson <steved> |
| Status: | CLOSED ERRATA | QA Contact: | Yongcheng Yang <yoyang> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | eguan, fs-qe, jentrena, jiyin, oliver, pdwyer, steved, yoyang |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | nfs-utils-1.3.0-0.11.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Cause:
Conditional restarts of the nfs servers stop filesystems
from being exported on Veritas clusters
Consequence:
Veritas cluster could not failover
Fix:
Create a file that stop the restarts of the nfs servers
Result:
Veritas cluster can now failover
|
Story Points: | --- |
| Clone Of: | 1078829 | Environment: | |
| Last Closed: | 2015-11-19 04:29:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1078829 | ||
| Bug Blocks: | 1133060, 1205790 | ||
|
Comment 4
Steve Dickson
2015-04-20 13:05:23 UTC
(In reply to Steve Dickson from comment #4) > RHEL 7 systemd scripts which is not the case with Bug #1078829 > > So I'm going to close this bz since is very unlikely the > same problem exists. Steve, 'nfs-utils' restarts the NFS daemons too: # rpm -q nfs-utils nfs-utils-1.3.0-0.8.el7.x86_64 # rpm -q --scripts nfs-utils [...] postuninstall scriptlet (using /bin/sh): /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : if [ $1 -ge 1 ] ; then # Package upgrade, not uninstall /usr/bin/systemctl try-restart nfs-client.target >/dev/null 2>&1 || : fi /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : if [ $1 -ge 1 ] ; then # Package upgrade, not uninstall /usr/bin/systemctl try-restart nfs-server >/dev/null 2>&1 || : fi So I'm afraid that the problem exists in RHEL 7 too. (In reply to Julio Entrena Perez from comment #5) > (In reply to Steve Dickson from comment #4) > > RHEL 7 systemd scripts which is not the case with Bug #1078829 > > > > So I'm going to close this bz since is very unlikely the > > same problem exists. > > Steve, > > 'nfs-utils' restarts the NFS daemons too: > > # rpm -q nfs-utils > nfs-utils-1.3.0-0.8.el7.x86_64 > > # rpm -q --scripts nfs-utils > [...] > postuninstall scriptlet (using /bin/sh): > > /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : > if [ $1 -ge 1 ] ; then > # Package upgrade, not uninstall > /usr/bin/systemctl try-restart nfs-client.target >/dev/null 2>&1 || > : > fi > > /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : > if [ $1 -ge 1 ] ; then > # Package upgrade, not uninstall > /usr/bin/systemctl try-restart nfs-server >/dev/null 2>&1 || : > fi > > So I'm afraid that the problem exists in RHEL 7 too. Fine... It seems RHEL7 not act the same with RHEL6:
1. The configure file name for RHEL 7 is "nfs-utils-disable-postun", but it's "nfs-utils-disable-posttrans" for RHEL6;
2. Seems the exports configuration will NOT lost while updating the nfs-utils package, no matter file "/etc/sysconfig/nfs-utils-disable-posttrans" exist or not.
So are these current behavior all right or not?
###########################################################################
The output of "rpm -q --scripts nfs-utils" for nfs-utils-1.3.0-0.8.el7
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.8.el7.x86_64
[root@ibm-x3550m3-06 ~]# rpm -q --scripts nfs-utils | grep "nfs-utils-disable-postun"
[root@ibm-x3550m3-06 ~]#
###########################################################################
The output of "rpm -q --scripts nfs-utils" for nfs-utils-1.3.0-0.11.el7
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.11.el7.x86_64
[root@ibm-x3550m3-06 ~]# rpm -q --scripts nfs-utils | grep "nfs-utils-disable-postun"
if [ ! -f /etc/sysconfig/nfs-utils-disable-postun ]; then
[root@ibm-x3550m3-06 ~]# rpm -q --scripts nfs-utils | tail -16
postuninstall scriptlet (using /bin/sh):
if [ ! -f /etc/sysconfig/nfs-utils-disable-postun ]; then
systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart nfs-client.target >/dev/null 2>&1 || :
fi
systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
systemctl try-restart nfs-server >/dev/null 2>&1 || :
fi
/bin/systemctl --system daemon-reload >/dev/null 2>&1 || :
fi
[root@ibm-x3550m3-06 ~]#
###########################################################################
upgrade from 1.3.0-0.8 to 1.3.0-0.9 with file "nfs-utils-disable-posttrans"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ibm-x3550m3-06 ~]# ll /etc/sysconfig/nfs-utils-disable-postun
ls: cannot access /etc/sysconfig/nfs-utils-disable-postun: No such file or directory
[root@ibm-x3550m3-06 ~]# touch /etc/sysconfig/nfs-utils-disable-postun
[root@ibm-x3550m3-06 ~]# ll /etc/sysconfig/nfs-utils-disable-postun
-rw-r--r--. 1 root root 0 Aug 5 14:37 /etc/sysconfig/nfs-utils-disable-postun
[root@ibm-x3550m3-06 ~]# exportfs -v
[root@ibm-x3550m3-06 ~]# exportfs -i localhost:/export_test/
[root@ibm-x3550m3-06 ~]# exportfs -v
/export_test localhost(ro,wdelay,root_squash,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.8.el7.x86_64
[root@ibm-x3550m3-06 ~]# rpm -Uvh nfs-utils-1.3.0-0.9.el7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:nfs-utils-1:1.3.0-0.9.el7 ################################# [ 50%]
Cleaning up / removing...
2:nfs-utils-1:1.3.0-0.8.el7 ################################# [100%]
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.9.el7.x86_64
[root@ibm-x3550m3-06 ~]# exportfs -v
/export_test localhost(ro,wdelay,root_squash,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ configuration still exists
[root@ibm-x3550m3-06 ~]#
[root@ibm-x3550m3-06 ~]#
###########################################################################
upgrade from 1.3.0-0.9 to 1.3.0-0.11 without "nfs-utils-disable-posttrans"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ibm-x3550m3-06 ~]# rm /etc/sysconfig/nfs-utils-disable-postun
rm: remove regular empty file ‘/etc/sysconfig/nfs-utils-disable-postun’? y
[root@ibm-x3550m3-06 ~]# ll /etc/sysconfig/nfs-utils-disable-postun
ls: cannot access /etc/sysconfig/nfs-utils-disable-postun: No such file or directory
[root@ibm-x3550m3-06 ~]# exportfs -v
/export_test localhost(ro,wdelay,root_squash,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.9.el7.x86_64
[root@ibm-x3550m3-06 ~]# rpm -Uvh nfs-utils-1.3.0-0.11.el7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:nfs-utils-1:1.3.0-0.11.el7 ################################# [ 50%]
Cleaning up / removing...
2:nfs-utils-1:1.3.0-0.9.el7 ################################# [100%]
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.11.el7.x86_64
[root@ibm-x3550m3-06 ~]# exportfs -v
/export_test localhost(ro,wdelay,root_squash,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ configuration still exists
[root@ibm-x3550m3-06 ~]#
###########################################################################
upgrade from 1.3.0-0.11 to 1.3.0-0.14 without "nfs-utils-disable-posttrans"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ibm-x3550m3-06 ~]# ll /etc/sysconfig/nfs-utils-disable-postun
ls: cannot access /etc/sysconfig/nfs-utils-disable-postun: No such file or directory
[root@ibm-x3550m3-06 ~]# exportfs -v
/export_test localhost(ro,wdelay,root_squash,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.11.el7.x86_64
[root@ibm-x3550m3-06 ~]# rpm -Uvh nfs-utils-1.3.0-0.14.el7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:nfs-utils-1:1.3.0-0.14.el7 ################################# [ 50%]
Cleaning up / removing...
2:nfs-utils-1:1.3.0-0.11.el7 ################################# [100%]
[root@ibm-x3550m3-06 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.14.el7.x86_64
[root@ibm-x3550m3-06 ~]# exportfs -v
/export_test localhost(ro,wdelay,root_squash,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ configuration still exists
[root@ibm-x3550m3-06 ~]#
Verified with nfs-utils-1.3.0-0.11.el7.x86_64 And the different configure file name of RHEL-7 (nfs-utils-disable-postun) with RHEL-6 (nfs-utils-disable-posttrans) maybe not a problem. ############################################################################## upgrade from 1.3.0-0.8 to 1.3.0-0.11 WITHOUT file "nfs-utils-disable-posttrans" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [root@hp-dl160g8-01 ~]# service nfs start Redirecting to /bin/systemctl start nfs.service [root@hp-dl160g8-01 ~]# ll /etc/sysconfig/nfs-utils-disable-postun ls: cannot access /etc/sysconfig/nfs-utils-disable-postun: No such file or directory [root@hp-dl160g8-01 ~]# exportfs -ua [root@hp-dl160g8-01 ~]# exportfs [root@hp-dl160g8-01 ~]# exportfs -i localhost:/export_test/ [root@hp-dl160g8-01 ~]# exportfs /export_test localhost [root@hp-dl160g8-01 ~]# rpm -q nfs-utils nfs-utils-1.3.0-0.8.el7.x86_64 [root@hp-dl160g8-01 ~]# rpm -Uvh nfs-utils-1.3.0-0.11.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:nfs-utils-1:1.3.0-0.11.el7 ################################# [ 50%] Cleaning up / removing... 2:nfs-utils-1:1.3.0-0.8.el7 ################################# [100%] [root@hp-dl160g8-01 ~]# exportfs [root@hp-dl160g8-01 ~]# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export lost ############################################################################### upgrade from 1.3.0-0.11 to 1.3.0-0.17 WITHOUT file "nfs-utils-disable-posttrans" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [root@hp-dl160g8-01 ~]# ll /etc/sysconfig/nfs-utils-disable-postun ls: cannot access /etc/sysconfig/nfs-utils-disable-postun: No such file or directory [root@hp-dl160g8-01 ~]# exportfs [root@hp-dl160g8-01 ~]# exportfs -i localhost:/export_test/ [root@hp-dl160g8-01 ~]# exportfs /export_test localhost [root@hp-dl160g8-01 ~]# rpm -q nfs-utils nfs-utils-1.3.0-0.11.el7.x86_64 [root@hp-dl160g8-01 ~]# rpm -Uvh nfs-utils-1.3.0-0.17.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:nfs-utils-1:1.3.0-0.17.el7 ################################# [ 50%] post 1=2 Cleaning up / removing... 2:nfs-utils-1:1.3.0-0.11.el7 ################################# [100%] [root@hp-dl160g8-01 ~]# exportfs [root@hp-dl160g8-01 ~]# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export lost ########################################################################### upgrade from 1.3.0-0.8 to 1.3.0-0.11 with file "nfs-utils-disable-posttrans" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [root@hp-dl160g8-01 ~]# service nfs start Redirecting to /bin/systemctl start nfs.service [root@hp-dl160g8-01 ~]# touch /etc/sysconfig/nfs-utils-disable-postun [root@hp-dl160g8-01 ~]# ll /etc/sysconfig/nfs-utils-disable-postun -rw-r--r--. 1 root root 0 Aug 11 08:28 /etc/sysconfig/nfs-utils-disable-postun [root@hp-dl160g8-01 ~]# exportfs [root@hp-dl160g8-01 ~]# exportfs -i localhost:/export_test/ [root@hp-dl160g8-01 ~]# exportfs /export_test localhost [root@hp-dl160g8-01 ~]# rpm -q nfs-utils nfs-utils-1.3.0-0.8.el7.x86_64 [root@hp-dl160g8-01 ~]# rpm -Uvh nfs-utils-1.3.0-0.11.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:nfs-utils-1:1.3.0-0.11.el7 ################################# [ 50%] Cleaning up / removing... 2:nfs-utils-1:1.3.0-0.8.el7 ################################# [100%] [root@hp-dl160g8-01 ~]# rpm -q nfs-utils nfs-utils-1.3.0-0.11.el7.x86_64 [root@hp-dl160g8-01 ~]# exportfs [root@hp-dl160g8-01 ~]# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export lost ############################################################################ upgrade from 1.3.0-0.11 to 1.3.0-0.17 with file "nfs-utils-disable-posttrans" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [root@hp-dl160g8-01 ~]# ll /etc/sysconfig/nfs-utils-disable-postun -rw-r--r--. 1 root root 0 Aug 11 08:28 /etc/sysconfig/nfs-utils-disable-postun [root@hp-dl160g8-01 ~]# exportfs [root@hp-dl160g8-01 ~]# exportfs -i localhost:/export_test/ [root@hp-dl160g8-01 ~]# exportfs /export_test localhost [root@hp-dl160g8-01 ~]# rpm -q nfs-utils nfs-utils-1.3.0-0.11.el7.x86_64 [root@hp-dl160g8-01 ~]# rpm -Uvh nfs-utils-1.3.0-0.17.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:nfs-utils-1:1.3.0-0.17.el7 ################################# [ 50%] post 1=2 Cleaning up / removing... 2:nfs-utils-1:1.3.0-0.11.el7 ################################# [100%] [root@hp-dl160g8-01 ~]# exportfs /export_test localhost ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export does survive [root@hp-dl160g8-01 ~]# Move it to VERIFIED Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2196.html |