Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1096377

Summary: Pacemaker nfsserver resource agent doesn't set the rpc.statd TCPPORT or UDPPORT via config options
Product: Red Hat Enterprise Linux 7 Reporter: David Vossel <dvossel>
Component: resource-agentsAssignee: David Vossel <dvossel>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: high    
Version: 7.1CC: abeekhof, agk, cluster-maint, fdinitto, mnovacek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: resource-agents-3.9.5-30.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1096376 Environment:
Last Closed: 2015-03-05 08:00:11 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:
Bug Depends On: 1096376    
Bug Blocks:    

Description David Vossel 2014-05-09 18:54:49 UTC
+++ This bug was initially created as a clone of Bug #1096376 +++

Description of problem:

We need to maintain feature parity between the rgmanager and pacemaker resource agents. The rgmanager agent is gaining the ability to set the rpc.statd tcp/udp port via a OCF configuration option.

https://bugzilla.redhat.com/show_bug.cgi?id=918315

The pacemaker nfsserver agent needs this same ability.

Comment 2 David Vossel 2014-05-19 21:13:09 UTC
There is an upstream pull request related to this issue.
https://github.com/ClusterLabs/resource-agents/pull/430

I added the ability for the nfsserver resource agent to configure the ports used for all the nfs daemons.

Comment 5 michal novacek 2014-12-10 16:59:06 UTC
I have verified that it is possible to pass the following parameters 
lockd_udp_port, lockd_tcp_port, statd_outgoing_port, statd_port, mountd_port,
rquotad_port to the nfsserver resource agent with resource-agents-3.9.5-38.el7.x86_64

-----

[root@host-026 ~]# rpm -q resource-agents
resource-agents-3.9.5-38.el7.x86_64

[root@host-026 ~]# pcs resource describe nfsserver
ocf:heartbeat:nfsserver - Manages an NFS server

 Nfsserver helps to manage the Linux nfs server as a failover-able resource in Linux-HA. It depends on Linux specific NFS implementation details,
 so is considered not portable to other platforms yet.

Resource options:
  nfs_init_script: The default init script shipped with the Linux distro. The nfsserver resource agent offloads the start/stop/monitor work to the
                   init script because the procedure to start/stop/monitor nfsserver varies on different Linux distro. In the event that this
                   option is not set, this agent will attempt to use an init script at this location, /etc/init.d/nfs, or detect a systemd unit-
                   file to use in the event that no init script is detected.
  nfs_no_notify: Do not send reboot notifications to NFSv3 clients during server startup.
  nfs_notify_foreground: Keeps the sm-notify attached to its controlling terminal and running in the foreground.
  nfs_smnotify_retry_time: Specifies the length of sm-notify retry time, in minutes, to continue retrying notifications to unresponsive hosts. If
                           this option is not specified, sm-notify attempts to send notifications for 15 minutes. Specifying a value of 0 causes
                           sm-notify to continue sending notifications to unresponsive peers until it is manually killed.
  nfs_ip: Comma separated list of floating IP addresses used to access the nfs service
  nfsd_args: Specifies what arguments to pass to the nfs daemon on startup. View the rpc.nfsd man page for information on what arguments are
             available. Note that setting this value will override all settings placed in the local /etc/sysconfig/nfs file.
  lockd_udp_port: The udp port lockd should listen on. Note that setting this value will override all settings placed in the local
                  /etc/sysconfig/nfs file.
  lockd_tcp_port: The tcp port lockd should listen on. Note that setting this value will override all settings placed in the local
                  /etc/sysconfig/nfs file.
  statd_outgoing_port: The source port number sm-notify uses when sending reboot notifications. Note that setting this value will override all
                       settings placed in the local /etc/sysconfig/nfs file.
  statd_port: The port number used for RPC listener sockets. Note that setting this value will override all settings placed in the local
              /etc/sysconfig/nfs file.
  mountd_port: The port number used for rpc.mountd listener sockets. Note that setting this value will override all settings placed in the local
               /etc/sysconfig/nfs file.
  rquotad_port: The port number used for rpc.rquotad. Note that setting this value will override all settings placed in the local
                /etc/sysconfig/nfs file.
  nfs_shared_infodir: The nfsserver resource agent will save nfs related information in this specific directory. And this directory must be able to
                      fail-over before nfsserver itself.
  rpcpipefs_dir: The mount point for the sunrpc file system. Default is /var/lib/nfs/rpc_pipefs. This script will mount (bind) nfs_shared_infodir
                 on /var/lib/nfs/ (cannot be changed), and this script will mount the sunrpc file system on /var/lib/nfs/rpc_pipefs (default, can
                 be changed by this parameter). If you want to move only rpc_pipefs/ (e.g. to keep rpc_pipefs/ local) from default, please set this
                 value.

[root@host-026 ~]# pcs resource create le-nfs nfsserver \
lockd_udp_port=50001 \
lockd_tcp_port=50002 \
statd_outgoing_port=50003 \
statd_port=50004 \
mountd_port=50005 \
rquotad_port=50006

[root@host-026 ~]# pcs resource show le-nfs
 Resource: le-nfs (class=ocf provider=heartbeat type=nfsserver)
  Attributes: lockd_udp_port=50001 lockd_tcp_port=50002 \
statd_outgoing_port=50003 statd_port=50004 mountd_port=50005 rquotad_port=50006 
  Operations: start interval=0s timeout=40 (le-nfs-start-timeout-40)
              stop interval=0s timeout=20s (le-nfs-stop-timeout-20s)
              monitor interval=10 timeout=20s (le-nfs-monitor-interval-10)

Comment 7 errata-xmlrpc 2015-03-05 08:00:11 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.

https://rhn.redhat.com/errata/RHBA-2015-0351.html