RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 809201 - NFS initscript bug
Summary: NFS initscript bug
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils
Version: 6.2
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: yanfu,wang
URL:
Whiteboard:
Depends On:
Blocks: 1003792
TreeView+ depends on / blocked
 
Reported: 2012-04-02 17:55 UTC by Kevin Clevenger
Modified: 2018-11-27 20:05 UTC (History)
3 users (show)

Fixed In Version: nfs-utils-1.2.3-22.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 810075 819373 1003792 (view as bug list)
Environment:
Last Closed: 2012-06-20 15:08:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0964 0 normal SHIPPED_LIVE nfs-utils bug fix update 2012-06-19 21:12:07 UTC

Description Kevin Clevenger 2012-04-02 17:55:50 UTC
Description of problem:
Line #138 of /etc/init.d/nfs reads:
[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

Should read:
[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condrestart

Because condstart is used instead of condrestart rpc.idmapd is always started, even if not running previously

Version-Release number of selected component (if applicable):
nfs-utils-1.2.3-15

How reproducible:
service nfs restart

Steps to Reproduce:
1. run service nfs restart
2.
3.
  
Actual results:
rpc.idmapd is always started

Expected results:
If rpc.idmapd is chkconfig'd off it should not start on 'nfs restart'

Additional info:

Comment 4 yanfu,wang 2012-05-07 03:41:21 UTC
Reproduced on nfs-utils-1.2.3-21.el6:
[root@ibm-x3690x5-01 ~]# chkconfig rpcidmapd off
[root@ibm-x3690x5-01 ~]# chkconfig --list rpcidmapd 
rpcidmapd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
[root@ibm-x3690x5-01 ~]# service rpcidmapd stop   
Stopping RPC idmapd: [  OK  ]
[root@ibm-x3690x5-01 ~]# service rpcidmapd status 
rpc.idmapd is stopped
[root@ibm-x3690x5-01 ~]# service nfs restart 
Shutting down NFS daemon: [  OK  ]
Shutting down NFS mountd: [  OK  ]
Shutting down NFS quotas: [  OK  ]
Shutting down NFS services:  [  OK  ]
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS mountd: [  OK  ]
Starting RPC idmapd: [  OK  ]
Starting NFS daemon: [  OK  ]
[root@ibm-x3690x5-01 ~]# service rpcidmapd status 
rpc.idmapd (pid 2052) is running...

Verified on nfs-utils-1.2.3-22.el6:
[root@sgi-xe320-01 ~]# service rpcidmapd stop
Stopping RPC idmapd: [  OK  ]
[root@sgi-xe320-01 ~]# service rpcidmapd status
rpc.idmapd is stopped
[root@sgi-xe320-01 ~]# service nfs restart
Shutting down NFS daemon: [FAILED]
Shutting down NFS mountd: [FAILED]
Shutting down NFS quotas: [FAILED]
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS mountd: [  OK  ]
Starting NFS daemon: [  OK  ]
[root@sgi-xe320-01 ~]# service rpcidmapd status
rpc.idmapd is stopped

The line of /etc/init.d/nfs is changed as per comment #0:
        [ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condrestart

Comment 5 errata-xmlrpc 2012-06-20 15:08:48 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.

http://rhn.redhat.com/errata/RHBA-2012-0964.html


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