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 2109420 - rpc-pipefs-generator fails when different pipefs-directory value specified
Summary: rpc-pipefs-generator fails when different pipefs-directory value specified
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nfs-utils
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-21 07:49 UTC by Yongcheng Yang
Modified: 2022-11-15 13:19 UTC (History)
1 user (show)

Fixed In Version: nfs-utils-2.5.4-12.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 11:22:03 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-128579 0 None None None 2022-07-21 07:57:20 UTC
Red Hat Product Errata RHBA-2022:8376 0 None None None 2022-11-15 11:22:11 UTC

Description Yongcheng Yang 2022-07-21 07:49:55 UTC
Description of problem:
It turns out Bug 2106896 introduce a regression failure that we can't set another pipefs directory now.

E.g.
[root@hp-dl385pg8-09 ~]# cat /etc/nfs.conf
[general]
 pipefs-directory=/run/rpc_pipefs
[root@hp-dl385pg8-09 ~]# systemctl daemon-reload
[root@hp-dl385pg8-09 ~]# systemctl restart rpc_pipefs.target
Failed to restart rpc_pipefs.target: Unit run-rpc_pipefs.mount not found.

Version-Release number of selected component (if applicable):
fail nfs-utils-2.5.4-11.el9.x86_64
pass nfs-utils-2.5.4-10.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1. Edit file /etc/nfs.conf to config another pipefs-directory value
2. systemctl daemon-reload
3. systemctl restart rpc_pipefs.target
Will get failure message.

Actual results:
[root@hp-dl385pg8-09 ~]# cat /etc/nfs.conf
[general]
 pipefs-directory=/run/rpc_pipefs
[root@hp-dl385pg8-09 ~]# systemctl daemon-reload
[root@hp-dl385pg8-09 ~]# systemctl restart rpc_pipefs.target
Failed to restart rpc_pipefs.target: Unit run-rpc_pipefs.mount not found.
[root@hp-dl385pg8-09 ~]# >/var/log/messages
[root@hp-dl385pg8-09 ~]# systemctl restart rpc_pipefs.target
Failed to restart rpc_pipefs.target: Unit run-rpc_pipefs.mount not found.
[root@hp-dl385pg8-09 ~]# cat /var/log/messages
[root@hp-dl385pg8-09 ~]#

Expected results:
[root@hp-dl385pg8-09 ~]# rpm -q nfs-utils libnfsidmap
nfs-utils-2.5.4-10.el9.x86_64
libnfsidmap-2.5.4-11.el9.x86_64
[root@hp-dl385pg8-09 ~]#
[root@hp-dl385pg8-09 ~]#
[root@hp-dl385pg8-09 ~]# cat /etc/nfs.conf
[general]
 pipefs-directory=/run/rpc_pipefs
[root@hp-dl385pg8-09 ~]# systemctl daemon-reload
[root@hp-dl385pg8-09 ~]# systemctl restart rpc_pipefs.target     <<<< success
[root@hp-dl385pg8-09 ~]# grep sunrpc /proc/mounts
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
sunrpc /run/rpc_pipefs rpc_pipefs rw,relatime 0 0
[root@hp-dl385pg8-09 ~]# systemctl cat run-rpc_pipefs.mount
# /run/systemd/generator/run-rpc_pipefs.mount
# Automatically generated by rpc-pipefs-generator

[Unit]
Description=RPC Pipe File System
DefaultDependencies=no
After=systemd-tmpfiles-setup.service
Conflicts=umount.target

[Mount]
What=sunrpc
Where=/run/rpc_pipefs
Type=rpc_pipefs
[root@hp-dl385pg8-09 ~]# rpm -q nfs-utils
nfs-utils-2.5.4-10.el9.x86_64

Additional info:

Comment 1 Steve Dickson 2022-07-22 14:53:52 UTC
commit 36ce9a29d34e48e1fb5af80ec5258c342e6557df (HEAD -> master, origin/master, origin/HEAD)
Author: Steve Dickson <steved>
Date:   Thu Jul 21 15:11:17 2022 -0400

    rpc-pipefs-generator: allocate enough space for pipefs-directory buffer
    
    Commit 7f8463fe fixed a warning but introduce
    a regression by not allocating enough space
    for the pipefs-directory buffer when it is
    not the default.
    
    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2106896
    Signed-off-by: Steve Dickson <steved>

Comment 2 Yongcheng Yang 2022-07-25 03:57:43 UTC
Verified in nfs-utils-2.5.4-12.el9

https://beaker.engineering.redhat.com/recipes/12334820#task147821672
---
[21:32:50 root@ ~~]# echo '[general]' > /etc/nfs.conf
[21:32:50 root@ ~~]# echo 'pipefs-directory=/run/rpc_pipefs' >> /etc/nfs.conf
[21:32:50 root@ ~~]# systemctl daemon-reload
[21:32:50 root@ ~~]# systemctl restart rpc_pipefs.target
[21:32:50 root@ ~~]# systemctl cat rpc_pipefs.target
# /run/systemd/generator/rpc_pipefs.target
# Automatically generated by rpc-pipefs-generator

[Unit]
Requires=run-rpc_pipefs.mount
After=run-rpc_pipefs.mount
[21:32:50 root@ ~~]# cat /proc/mounts | grep ^sunrpc
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
sunrpc /run/rpc_pipefs rpc_pipefs rw,relatime 0 0


Compared with previous nfs-utils-2.5.4-11.el9

[21:01:22 root@ ~~]# echo '[general]' > /etc/nfs.conf
[21:01:22 root@ ~~]# echo 'pipefs-directory=/run/rpc_pipefs' >> /etc/nfs.conf
[21:01:22 root@ ~~]# systemctl daemon-reload
[21:01:22 root@ ~~]# systemctl restart rpc_pipefs.target
Failed to restart rpc_pipefs.target: Unit run-rpc_pipefs.mount not found.

Comment 6 errata-xmlrpc 2022-11-15 11:22:03 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 (nfs-utils bug fix and enhancement update), 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-2022:8376


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