Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 456445

Summary: [RHEL5.2][kernel][nfs] Connectathon NFSv4 special tests fails
Product: Red Hat Enterprise Linux 5 Reporter: Jeff Burke <jburke>
Component: kernelAssignee: Peter Staubach <staubach>
Status: CLOSED DUPLICATE QA Contact: Martin Jenner <mjenner>
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: dzickus, jlayton, jpirko, steved
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://rhts.redhat.com/cgi-bin/rhts/test_log.cgi?id=3713776
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-25 17:13:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Burke 2008-07-23 18:11:13 UTC
Description of problem:
 While running the connectathon test using a RHEL5.2 client and a Netapp as NFS
server the NFSv4 special tests fails.

Version-Release number of selected component (if applicable):
2.6.18-92.el5
2.6.18-92.1.10.el5

How reproducible:
Intermittent

Steps to Reproduce:
1. Using RHTS. Submit a job running the connectathon test.
  
Actual results:

Running as user "root" and group "root". This could be dangerous.
Capturing on eth0
===== Starting 'nfsvers=4' test 'special' =====
----- start: Wed Jul 23 10:54:09 EDT 2008 -----
./server -s -F nfs4 -p /vol/vol1/cthon netapp-nfs
Start tests on path /mnt/netapp-nfs/hp-dl580g5-01.test [y/n]? 
sh ./runtests  -s -t /mnt/netapp-nfs/hp-dl580g5-01.test

SPECIAL TESTS: directory /mnt/netapp-nfs/hp-dl580g5-01.test
make[1]: Entering directory
`/mnt/tests/kernel/filesystems/nfs/connectathon/cthon04/special'
cd /mnt/netapp-nfs/hp-dl580g5-01.test; rm -f runtests runtests.wrk READWIN.txt
Makefile op_unlk op_ren op_chmod dupreq excltest negseek rename holey truncate
nfsidem nstat stat stat2 touchn fstat rewind telldir bigfile bigfile2 freesp
cp runtests runtests.wrk READWIN.txt Makefile op_unlk op_ren op_chmod dupreq
excltest negseek rename holey truncate nfsidem nstat stat stat2 touchn fstat
rewind telldir bigfile bigfile2 freesp /mnt/netapp-nfs/hp-dl580g5-01.test
make[1]: Leaving directory
`/mnt/tests/kernel/filesystems/nfs/connectathon/cthon04/special'

check for proper open/unlink operation
nfsjunk files before unlink:
  ls: .nfs*: No such file or directory
./nfs4qVtvJ open; unlink ret = 0
nfsjunk files after unlink:
  -rw-rw-rw- 1 nobody nobody 0 Jul 23 10:29 .nfs00000000001a9d4900000237
data compare ok
nfsjunk files after close:
  ls: .nfs*: No such file or directory
test completed successfully.

check for proper open/rename operation
nfsjunk files before rename:
  ls: .nfs*: No such file or directory
./nfsb70Yxfl open; rename ret = 0
nfsjunk files after rename:
  -rwxrwxrwx 1 nobody nobody 0 Jul 23 10:29 .nfs00000000001a9d4a00000238
data compare ok
nfsjunk files after close:
  ls: .nfs*: No such file or directory
test completed successfully.

check for proper open/chmod 0 operation
testfile before chmod:
  -rw-rw-rw- 1 nobody nobody 0 Jul 23 10:29 ./nfsrn6DLP
./nfsrn6DLP open; chmod ret = 0
testfile after chmod:
  ---------- 1 nobody nobody 0 Jul 23 10:29 ./nfsrn6DLP
data compare ok
testfile after write/read:
  ---------- 1 nobody nobody 100 Jul 23 10:29 ./nfsrn6DLP
test completed successfully.

check for lost reply on non-idempotent requests
100 tries

test exclusive create.

test negative seek, you should get: read: Invalid argument
or lseek: Invalid argument
lseek: Invalid argument

test rename

test truncate
truncate succeeded

test holey file support
Holey file test ok

second check for lost reply on non-idempotent requests
rmdir 1: Directory not empty
testing 50 idempotencies in directory "testdir"
special tests failed
Tests failed, leaving /mnt/netapp-nfs mounted
----- end: Wed Jul 23 10:54:11 EDT 2008 -----

Expected results:
This test should pass

Additional info:
Spoke with Peter S. I opened this bug at his request to track this issue.