Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1358333 - nfs-server: Possibility to change rpc_pipefs mount point
nfs-server: Possibility to change rpc_pipefs mount point
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils (Show other bugs)
7.3
Unspecified Unspecified
high Severity medium
: rc
: ---
Assigned To: Scott Mayhew
Yongcheng Yang
: Patch, Reproducer
Depends On: 1418041
Blocks: 1298243 1385242 1420851 1469559
  Show dependency treegraph
 
Reported: 2016-07-20 10:24 EDT by Oyvind Albrigtsen
Modified: 2018-04-10 14:22 EDT (History)
7 users (show)

See Also:
Fixed In Version: nfs-utils-1.3.0-0.51.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 14:21:01 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2328531 None None None 2016-07-20 10:29 EDT
Red Hat Product Errata RHBA-2018:0981 None None None 2018-04-10 14:22 EDT

  None (edit)
Comment 11 Steve Whitehouse 2017-04-04 07:34:44 EDT
Bearing in mind where we are on the 7.4 schedule, we should not be adding new features that (at least as far as I can tell from above) are not yet upstream. Unless there is a pressing customer need I'm going to propose that we move this to 7.5 at this stage. Does that sound reasonable?
Comment 12 Scott Mayhew 2017-04-06 15:09:51 EDT
(In reply to Steve Whitehouse from comment #11)
> Bearing in mind where we are on the 7.4 schedule, we should not be adding
> new features that (at least as far as I can tell from above) are not yet
> upstream. Unless there is a pressing customer need I'm going to propose that
> we move this to 7.5 at this stage. Does that sound reasonable?

I don't know if I'd call this a new feature or not.  rpc.gssd and rpc.idmapd both allow you to specify a different value for the rpc_pipefs mountpoint, but the systemd configuration that sets up the rpc_pipefs mountpoint is hard-coded.  To me that seems like a bug.

With the changes I'm proposing, instead of manually overriding a bunch of configs as in comment #8, it's simply a matter of editing one setting in the /etc/nfs.conf and rebooting:

[root@fedora25 ~]# lsof -p `pidof rpc.idmapd` | grep rpc_pipefs
rpc.idmap 670 root    9r      DIR               0,42        0        103 /var/lib/nfs/rpc_pipefs/nfs
[root@fedora25 ~]# lsof -p `pidof rpc.gssd` | grep rpc_pipefs
rpc.gssd 671 root  cwd       DIR               0,42        0    20769 /var/lib/nfs/rpc_pipefs
rpc.gssd 671 root    7r      DIR               0,42        0    20769 /var/lib/nfs/rpc_pipefs
rpc.gssd 671 root   11u     FIFO               0,42      0t0      112 /var/lib/nfs/rpc_pipefs/gssd/clntXX/gssd
[root@fedora25 ~]# vi /etc/nfs.conf
[root@fedora25 ~]# cat /etc/nfs.conf
#
# This is a general configuration for the 
# NFS daemons and tools
#
[general]
pipefs-directory=/run/rpc_pipefs
...

[root@fedora25 ~]# reboot
Connection to fedora25 closed by remote host.
Connection to fedora25 closed.
[smayhew@coeurl ~]$ 
[smayhew@coeurl ~]$ ssh root@fedora25
Last login: Thu Apr  6 14:10:18 2017 from 192.168.122.1
[root@fedora25 ~]# lsof -p `pidof rpc.idmapd` | grep rpc_pipefs
rpc.idmap 667 root    9r      DIR               0,42        0        103 /run/rpc_pipefs/nfs
[root@fedora25 ~]# lsof -p `pidof rpc.gssd` | grep rpc_pipefs
rpc.gssd 669 root  cwd       DIR               0,42        0    20706 /run/rpc_pipefs
rpc.gssd 669 root    7r      DIR               0,42        0    20706 /run/rpc_pipefs
rpc.gssd 669 root   11u     FIFO               0,42      0t0      112 /run/rpc_pipefs/gssd/clntXX/gssd

Instead of rebooting, one can do this instead after editing /etc/nfs.conf:

[root@fedora25 ~]# systemctl daemon-reload
[root@fedora25 ~]# systemctl restart rpc_pipefs.target
[root@fedora25 ~]# systemctl restart nfs-idmapd
[root@fedora25 ~]# systemctl restart rpc-gssd
[root@fedora25 ~]# umount /var/lib/nfs/rpc_pipefs

I only see 1 case attached to the bug, and zero cases attached to the kbase article, so I guess we can move this off to 7.5.  You're correct that the changes aren't upstream yet, but I think we're close.
Comment 18 Steve Dickson 2017-10-12 10:48:27 EDT
Here are the upstream patches that are needed.

commit 3892174834ea1a4729348f0ecd3078cc1d5458e4
Author: Scott Mayhew <smayhew@redhat.com>
Date:   Mon Apr 10 07:10:45 2017 -0400

    systemd: add a generator for the rpc_pipefs mountpoint

commit da866d7f6a787045e2c9f4a700e23b58ec71400a
Author: Scott Mayhew <smayhew@redhat.com>
Date:   Sun Apr 9 15:20:31 2017 -0400

    blkmapd:  allow the rpc_pipefs mountpoint to be overridden

commit 29c322e391ad377f3e3902df0997d402c55aa0ce
Author: Scott Mayhew <smayhew@redhat.com>
Date:   Sun Apr 9 15:20:06 2017 -0400

    gssd: add a deprecation warning for pipefs-directory in gssd section

commit abe0774b0f39bdb32790e6ed20627e6fc43682f3
Author: Scott Mayhew <smayhew@redhat.com>
Date:   Sun Apr 9 15:19:02 2017 -0400

    idmapd: move the pipefs-directory config option to nfs.conf
Comment 19 Steve Dickson 2017-10-12 12:03:44 EDT
This were also needed

commit 2cc5d272402e72cb2e064de6350012de676b33fd
Author: Steve Dickson <steved@redhat.com>
Date:   Wed Aug 24 14:56:07 2016 -0400

    rpc-gssd: Make the path to the keytab configurable.

commit a9135cc015757bdd21679b4d5a1e2dcdf7ce27e9
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Apr 27 12:57:08 2016 -0400

    fix building w/newer C libraries
Comment 23 Yongcheng Yang 2017-11-07 22:55:17 EST
Moving to VERIFIED according to comment 20 and comment 22.
Comment 26 errata-xmlrpc 2018-04-10 14:21:01 EDT
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://access.redhat.com/errata/RHBA-2018:0981

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