Bug 1003792 - NFS initscript bug
NFS initscript bug
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils (Show other bugs)
6.5
x86_64 Linux
low Severity low
: rc
: ---
Assigned To: Steve Dickson
Red Hat Kernel QE team
: Regression
Depends On: 809201
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-03 04:46 EDT by Yin.JianHong
Modified: 2013-10-11 22:49 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 809201
Environment:
Last Closed: 2013-10-11 14:43:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Comment 1 Yin.JianHong 2013-09-03 04:47:48 EDT
[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 14:43:23 EDT
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 Yin.JianHong 2013-10-11 22:49:50 EDT
(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.