Bug 1038464

Summary: [sysconfig/nfs]rhel7 Inconsistent variable naming style in /etc/sysconfig/nfs
Product: Red Hat Enterprise Linux 7 Reporter: JianHong Yin <jiyin>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED WONTFIX QA Contact: JianHong Yin <jiyin>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.0CC: jlayton
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1038463 Environment:
Last Closed: 2013-12-05 14:58:33 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:
Bug Depends On: 1038463    
Bug Blocks:    

Description JianHong Yin 2013-12-05 07:29:13 UTC
+++ This bug was initially created as a clone of Bug #1038463 +++

Description of problem:
Inconsistent variable naming style in /etc/sysconfig/nfs
a user echo "RPCMOUNTDARGS=\"-f /etc/exports.new\"" >>/etc/sysconfig/nfs
and restart nfs, but the config not become effective...

so we find the problem:
[root@dhcp12-144 ~]# grep ARGS /etc/sysconfig/nfs
RPCNFSDARGS=""
RPCIDMAPDARGS=""
RPCGSSDARGS=""
RPCSVCGSSDARGS=""
BLKMAPDARGS=""
#RPCNFSDARGS="--no-tcp"
[root@dhcp12-144 ~]# grep OPTS /etc/sysconfig/nfs
RPCRQUOTADOPTS=""
RPCMOUNTDOPTS="-f /etc/exports"

Version-Release number of selected component (if applicable):
all version from RHEL5 6 7

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:
[root@dhcp12-144 ~]# grep ARGS /etc/sysconfig/nfs
RPCNFSDARGS=""
RPCIDMAPDARGS=""
RPCGSSDARGS=""
RPCSVCGSSDARGS=""
BLKMAPDARGS=""
#RPCNFSDARGS="--no-tcp"
[root@dhcp12-144 ~]# grep OPTS /etc/sysconfig/nfs
RPCRQUOTADOPTS=""
RPCMOUNTDOPTS="-f /etc/exports"

Expected results:
[root@dhcp12-144 ~]# grep ARGS /etc/sysconfig/nfs
RPCNFSDARGS=""
RPCIDMAPDARGS=""
RPCGSSDARGS=""
RPCSVCGSSDARGS=""
BLKMAPDARGS=""
#RPCNFSDARGS="--no-tcp"
# and follow two
RPCRQUOTADARGS=""
RPCMOUNTDARGS="-f /etc/exports"

# delete RPCRQUOTADOPTS RPCMOUNTDOPTS, but
RPCRQUOTADOPTS RPCMOUNTDOPTS still available for backport compatible;

Additional info:

Comment 2 Steve Dickson 2013-12-05 14:58:33 UTC
It is true there is an inconstancy in the name convention,
unfortunately the current name is an established API.

So making changes at this point would break that API and
make it harder for people to move from RHEL6 to RHEL7