Bug 1003792 - NFS initscript bug
Summary: NFS initscript bug
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils
Version: 6.5
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On: 809201
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-03 08:46 UTC by JianHong Yin
Modified: 2018-11-27 20:05 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 809201
Environment:
Last Closed: 2013-10-11 18:43:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

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
}


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