Bug 2213669 - [regression] NFS junction fail to work in nfs-utils-2.5.4-19.el9
Summary: [regression] NFS junction fail to work in nfs-utils-2.5.4-19.el9
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nfs-utils
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-08 23:39 UTC by Yongcheng Yang
Modified: 2023-08-09 05:48 UTC (History)
2 users (show)

Fixed In Version: nfs-utils-2.5.4-20.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-159351 0 None None None 2023-06-08 23:45:13 UTC

Description Yongcheng Yang 2023-06-08 23:39:08 UTC
Description of problem:
The nfs-utils junction support doesn't work due to the fix of Bug 2148353

Pass in nfs-utils-2.5.4-18.el9 https://beaker.engineering.redhat.com/jobs/7941942
Fail in nfs-utils-2.5.4-19.el9 https://beaker.engineering.redhat.com/jobs/7941943

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
# beaker job https://beaker.engineering.redhat.com/jobs/7941943 nfs-utils-2.5.4-19.el9
###
$ nfsref --type=nfs-basic add /mnt/testarea/junction fsqe-r6515-02.fs.lab.eng.bos.redhat.com /
nfsref: Failed to add NFS location metadata to /mnt/testarea/junction: FEDFS_ERR_IO
$ nfsref --type=nfs-basic lookup /mnt/testarea/junction
nfsref: /mnt/testarea/junction is not an nfs-basic junction


Expected results:
# beaker job https://beaker.engineering.redhat.com/jobs/7941942 nfs-utils-2.5.4-18.el9
###
$ nfsref --type=nfs-basic add /mnt/testarea/junction dell-per740-89.rhts.eng.pek2.redhat.com /
Created junction /mnt/testarea/junction
$ nfsref --type=nfs-basic lookup /mnt/testarea/junction
dell-per740-89.rhts.eng.pek2.redhat.com:/

	NFS port:	2049
	Valid for:	0
	Currency:	-1
	Flags:		varsub(false)
	GenFlags:	writable(false), going(false), split(true)
	TransFlags:	rdma(true)
	Class:		simul(0), handle(0), fileid(0)
	Class:		writever(0), change(0), readdir(0)
	Read:		rank(0), order(0)
	Write:		rank(0), order(0)



Additional info:

Comment 1 Steve Dickson 2023-08-07 20:52:40 UTC
Here is the problem

--      tmp = open(pathname, O_DIRECTORY);
-+      tmp = open(pathname, O_PATH|O_DIRECTORY);

I remove the O_PATH and everything started to
work... not clear as to way it needed in the
first place. 

I'm working on getting a scratch build.. I
get some goofy Python

Comment 2 Yongcheng Yang 2023-08-08 08:12:55 UTC
This issue has been fixed in nfs-utils-2.5.4-20.el9 now: https://beaker.engineering.redhat.com/jobs/8163907

Comment 3 Jeff Layton 2023-08-08 10:13:33 UTC
Looks like a reasonable fix. I think I only added O_PATH in order to make mountd's footprint lighter, but if the reproducer works without that, then it should be fine.

Comment 6 Yongcheng Yang 2023-08-09 05:48:29 UTC
No new issue found from the regression tests against nfs-utils-2.5.4-20.el9


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