RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1200713 - Automatic condrestart upon package upgrade breaks exports from Veritas cluster
Summary: Automatic condrestart upon package upgrade breaks exports from Veritas cluster
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On: 1078829
Blocks: 1133060 1205790
TreeView+ depends on / blocked
 
Reported: 2015-03-11 09:26 UTC by Julio Entrena Perez
Modified: 2019-10-10 09:40 UTC (History)
8 users (show)

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
Clone Of: 1078829
Environment:
Last Closed: 2015-11-19 04:29:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1355773 0 None None None Never
Red Hat Product Errata RHBA-2015:2196 0 normal SHIPPED_LIVE nfs-utils bug fix update 2015-11-19 08:05:04 UTC

Comment 4 Steve Dickson 2015-04-20 13:05:23 UTC
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.

Comment 5 Julio Entrena Perez 2015-04-20 13:09:44 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.

Comment 6 Steve Dickson 2015-04-20 13:34:18 UTC
(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...

Comment 8 Yongcheng Yang 2015-08-05 06:50:44 UTC
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 ~]#

Comment 19 Yongcheng Yang 2015-08-11 00:45:59 UTC
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

Comment 20 errata-xmlrpc 2015-11-19 04:29:28 UTC
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


Note You need to log in before you can comment on or make changes to this bug.