Bug 1003792

Summary: NFS initscript bug
Product: Red Hat Enterprise Linux 6 Reporter: JianHong Yin <jiyin>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: low Docs Contact:
Priority: low    
Version: 6.5CC: ddumas, kcleveng, redhat-bugzilla, rwheeler, yanwang
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 809201 Environment:
Last Closed: 2013-10-11 18:43:23 UTC Type: ---
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: 809201    
Bug Blocks:    

Comment 1 JianHong Yin 2013-09-03 08:47:48 UTC
[root@ibm-x3550m3-02 ~]# service rpcidmapd stop
Shutting down RPC idmapd: [FAILED]
[root@ibm-x3550m3-02 ~]# service rpcidmapd status
rpc.idmapd is stopped
[root@ibm-x3550m3-02 ~]# service nfs start
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS mountd: [  OK  ]
Starting NFS daemon: [  OK  ]
Starting RPC idmapd: [  OK  ]
[root@ibm-x3550m3-02 ~]# chkconfig rpcidmapd off
[root@ibm-x3550m3-02 ~]# service nfs restart
Shutting down NFS daemon: [  OK  ]
Shutting down NFS mountd: [  OK  ]
Shutting down NFS quotas: [  OK  ]
Shutting down RPC idmapd: [  OK  ]
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS mountd: [  OK  ]
Starting NFS daemon: [  OK  ]
Starting RPC idmapd: [  OK  ]
[root@ibm-x3550m3-02 ~]# lsb_release -sir
RedHatEnterpriseServer 6.5
[root@ibm-x3550m3-02 ~]# vim /etc/init.d/nfs
[root@ibm-x3550m3-02 ~]# grep 'idmapd' /etc/init.d/nfs
        # Start rpc.idmapd 
        [ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd start
        [ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd stop
[root@ibm-x3550m3-02 ~]#

Comment 5 Steve Dickson 2013-10-11 18:43:23 UTC
Expected results:
If rpc.idmapd is chkconfig'd off it should not start on 'nfs restart'

Is an incorrect assumption... After RHEL6.4 rpc.idmapd is only used
on by the server to do ID mapping. The nfsidmap command is now 
used on the client to ID mapping.

So, rpc.idmapd needs to be tied to the starting and stop of the 
NFS server no the chkconfig configuration.

Comment 6 JianHong Yin 2013-10-12 02:49:50 UTC
(In reply to Steve Dickson from comment #5)
> Expected results:
> If rpc.idmapd is chkconfig'd off it should not start on 'nfs restart'
> 
> Is an incorrect assumption... After RHEL6.4 rpc.idmapd is only used
> on by the server to do ID mapping. The nfsidmap command is now 
> used on the client to ID mapping.
> 
> So, rpc.idmapd needs to be tied to the starting and stop of the 
> NFS server no the chkconfig configuration.

Got it, change the test case:

vercmp "$(lsb_release -sr)" '>=' 6.3 && {
    echo -e "{Info} rhel version not match, skip the test.\n"
    report_result $TEST PASS
    exit 0
}