Bug 1184661

Summary: systemd service contains -w switch
Product: Red Hat Enterprise Linux 7 Reporter: Joe Julian <joe>
Component: rpcbindAssignee: Steve Dickson <steved>
Status: CLOSED DUPLICATE QA Contact: Yongcheng Yang <yoyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: eguan, jclift, kripper, yoyang
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-04 15:01:15 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:
Embargoed:

Description Joe Julian 2015-01-21 23:49:03 UTC
The -w switch may not always be desired yet it is hardcoded in the ExecStart line of the systemd service.

That should be the default RPCBIND_ARGS in /etc/sysconfig/rpcbind instead.

Comment 2 Steve Dickson 2015-01-23 18:55:18 UTC
(In reply to Joe Julian from comment #0)
> The -w switch may not always be desired yet it is hardcoded in the ExecStart
> line of the systemd service.
> 
> That should be the default RPCBIND_ARGS in /etc/sysconfig/rpcbind instead.

The -w switch is needed so updates are seamless....

I did look into removing but all hell broke lose when
services lost their ports. If there there was a way 
rpcbind to tell services to re-registers then the -w
would not be needed...

Comment 3 Christopher Pereira 2015-03-04 02:25:10 UTC
WONTFIX means that CentOS 7 will not be supporting Gluster-NFS any more?

With the "-w" switch in /etc/systemd/system/rpcbind.service, it is impossible to start Gluster with NFS support due to error:

"Could not register with portmap 100021 4 38468"

Workarround (as pointed out by Joe Julian):

sed 's/-w //' /usr/lib/systemd/system/rpcbind.service >/etc/systemd/system/rpcbind.service

..and restart services.

Comment 4 Justin Clift 2015-03-04 02:28:55 UTC
Just to point out, JoeJulian wasn't asking for it to be removed... he was asking for the switch to be moved to the config file so it's configurable by people with a need for it to be off.  And likely who don't need the bits that were dying for you, or are prepared to config them appropriately so they don't die. :)

It doesn't seem like an unreasonable thing to ask (to me anyway). ;)

And yeah, this affects upstream GlusterFS (unsure about RHS, haven't checked). :(

Comment 5 Joe Julian 2015-03-04 02:31:16 UTC
The -w switch may be needed for seamless updates, but that doesn't preclude it from being put in RPCBIND_ARGS instead of hardcoded.

I'm frequently having to solve this problem for GlusterFS users whose services cannot bind with rpcbind even though the kernel nfs has been disabled because the ports are in use.

IMHO, it should either be added to RPCBIND_ARGS in /etc/sysconfig/rpcbind or it should have it's own variable but still reside in /etc/sysconfig/rpcbind along with sufficient comments to allow an informed user to override the setting so programs other than the kernel nfs server can still work. :)

Comment 6 Steve Dickson 2015-05-04 15:01:15 UTC

*** This bug has been marked as a duplicate of bug 1181779 ***