Bug 1182787

Summary: nfs options went missing in nfsserver after updating to 3.9.5-12.el6
Product: Red Hat Enterprise Linux 7 Reporter: David Vossel <dvossel>
Component: resource-agentsAssignee: Fabio Massimo Di Nitto <fdinitto>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: agk, cbuissar, cluster-maint, cluster-qe, fdinitto, mnovacek, psingare
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: resource-agents-3.9.5-45.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1179412 Environment:
Last Closed: 2015-11-19 04:41:15 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: 1179412    
Bug Blocks:    

Comment 3 David Vossel 2015-04-29 15:23:18 UTC
patch.
https://github.com/ClusterLabs/resource-agents/pull/581

Comment 5 michal novacek 2015-08-12 18:15:28 UTC
I have verified that with resource-agents-3.9.5-50.el7.x86_64 the values
contained in /etc/sysconfig/nfs are kept intact.

[root@virt-151 ~]# grep -v \# /etc/sysconfig/nfs 
LOCKD_UDPPORT=32769

[root@virt-151 ~]# export OCF_ROOT=/usr/lib/ocf \
OCF_RESKEY_lockd_tcp_port=32803 OCF_RESKEY_nfs_shared_infodir=/mnt/shared/nfs


before the patch resource-agents-3.9.5-40.el7.x86_64
====================================================

[root@virt-151 ~]# /usr/lib/ocf/resource.d/heartbeat/nfsserver start
DEBUG: nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled)
   Active: inactive (dead) since Wed 2015-08-12 20:06:25 CEST; 8s ago
  Process: 32400 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
  Process: 32398 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 32397 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
  Process: 32145 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
  Process: 32144 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 32145 (code=exited, status=0/SUCCESS)

Aug 12 20:04:11 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Starting NFS server and services...
Aug 12 20:04:11 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Started NFS server and services.
Aug 12 20:06:25 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopping NFS server and services...
Aug 12 20:06:25 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopped NFS server and services.
INFO: Starting NFS server ...
rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static)
   Active: inactive (dead) since Wed 2015-08-12 20:06:25 CEST; 8s ago
 Main PID: 5330 (code=exited, status=0/SUCCESS)

Aug 12 11:02:41 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Starting NFS status monitor for NFSv2/3 locking....
Aug 12 11:02:41 virt-151.cluster-qe.lab.eng.brq.redhat.com rpc.statd[5330]: Version 1.3.0 starting
Aug 12 11:02:41 virt-151.cluster-qe.lab.eng.brq.redhat.com rpc.statd[5330]: Flags: TI-RPC
Aug 12 11:03:41 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Started NFS status monitor for NFSv2/3 locking..
Aug 12 20:06:25 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopping NFS status monitor for NFSv2/3 locking....
Aug 12 20:06:25 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopped NFS status monitor for NFSv2/3 locking..
DEBUG:
INFO: executing sm-notify
INFO: NFS server started

[root@bucek-02 x86_64]# grep -v \# /etc/sysconfig/nfs
STATDARG="--no-notify"
LOCKD_TCPPORT="32803"


with patched version resource-agents-3.9.5-50.el7.x86_64
========================================================

[root@virt-151 ~]# grep -v \# /etc/sysconfig/nfs
LOCKD_UDPPORT=32769

[root@virt-151 ~]# /usr/lib/ocf/resource.d/heartbeat/nfsserver start
DEBUG: nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled)
   Active: inactive (dead) since Wed 2015-08-12 20:09:18 CEST; 6s ago
  Process: 393 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
  Process: 391 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 390 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
  Process: 32482 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
  Process: 32481 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 32482 (code=exited, status=0/SUCCESS)

Aug 12 20:06:34 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Starting NFS server and services...
Aug 12 20:06:34 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Started NFS server and services.
Aug 12 20:09:18 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopping NFS server and services...
Aug 12 20:09:18 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopped NFS server and services.
INFO: Starting NFS server ...
rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static)
   Active: inactive (dead) since Wed 2015-08-12 20:09:18 CEST; 6s ago
  Process: 32470 ExecStart=/usr/sbin/rpc.statd --no-notify $STATDARGS (code=exited, status=0/SUCCESS)
 Main PID: 32471 (code=exited, status=0/SUCCESS)

Aug 12 20:06:34 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Starting NFS status monitor for NFSv2/3 locking....
Aug 12 20:06:34 virt-151.cluster-qe.lab.eng.brq.redhat.com rpc.statd[32471]: Version 1.3.0 starting
Aug 12 20:06:34 virt-151.cluster-qe.lab.eng.brq.redhat.com rpc.statd[32471]: Flags: TI-RPC
Aug 12 20:06:34 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Started NFS status monitor for NFSv2/3 locking..
Aug 12 20:09:18 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopping NFS status monitor for NFSv2/3 locking....
Aug 12 20:09:18 virt-151.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Stopped NFS status monitor for NFSv2/3 locking..
DEBUG: 
INFO: executing sm-notify
INFO: NFS server started

[root@virt-151 ~]# cat /etc/sysconfig/nfs
# AUTOGENERATED by /usr/lib/ocf/resource.d/heartbeat/nfsserver high availability resource-agent
# local config backup stored here, '/etc/sysconfig/nfs.ha.bu'
LOCKD_UDPPORT=32769
STATDARG="--no-notify"
LOCKD_TCPPORT="32803"

Comment 9 errata-xmlrpc 2015-11-19 04:41:15 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-2190.html

Comment 10 Praveen Singareddy 2016-10-21 04:51:18 UTC
Appears this issue is not fixed. I was able to reproduce this issue with the resource-agents-3.9.5-54.el7_2.9.x86_64 version.

[root@dhcp-0-203 ~]# cat /etc/sysconfig/nfs
# AUTOGENERATED by /usr/lib/ocf/resource.d/heartbeat/nfsserver high availability resource-agent
# local config backup stored here, '/etc/sysconfig/nfs.ha.bu'
STATDARG="--no-notify"
NFSD_V4_LEASE=10
NFSD_V4_GRACE=10

Resource Group: nfsgroup
     my_lvm	(ocf::heartbeat:LVM):	(target-role:Stopped) Stopped
     nfsshare	(ocf::heartbeat:Filesystem):	(target-role:Stopped) Stopped
     nfs-daemon	(ocf::heartbeat:nfsserver):	(target-role:Stopped) Stopped
     nfs-root	(ocf::heartbeat:exportfs):	(target-role:Stopped) Stopped
     nfs-ip	(ocf::heartbeat:IPaddr2):	(target-role:Stopped) Stopped
     nfs-notify	(ocf::heartbeat:nfsnotify):	(target-role:Stopped) Stopped

================================================================================
After nfsgroup started, NFSD_V4_LEASE=10 and NFSD_V4_GRACE=10 were removed from /etc/sysconfig/nfs

Resource Group: nfsgroup
     my_lvm	(ocf::heartbeat:LVM):	Started dhcp-1-233.bne.redhat.com
     nfsshare	(ocf::heartbeat:Filesystem):	Started dhcp-1-233.bne.redhat.com
     nfs-daemon	(ocf::heartbeat:nfsserver):	Started dhcp-1-233.bne.redhat.com
     nfs-root	(ocf::heartbeat:exportfs):	Started dhcp-1-233.bne.redhat.com
     nfs-ip	(ocf::heartbeat:IPaddr2):	Started dhcp-1-233.bne.redhat.com
     nfs-notify	(ocf::heartbeat:nfsnotify):	Started dhcp-1-233.bne.redhat.com

[root@dhcp-0-203 ~]# cat /etc/sysconfig/nfs
# AUTOGENERATED by /usr/lib/ocf/resource.d/heartbeat/nfsserver high availability resource-agent
# local config backup stored here, '/etc/sysconfig/nfs.ha.bu'
STATDARG="--no-notify"