pynfs Server failures
Subsystems (2)
Hey Bruce,
During our Fedora Testing effort we have identified the following pynfs failures when testing with a kernel-2.6.33 and a very current nfs-utils... At one point I thought there was a list of known pynfs failures. If so, how does this list match up? any thing new? Anything jumping out that we really should fix?
steved.
[root@ibm-hs21-01 pynfs]# ./testserver.py localhost:/nfs --maketree all
CID1 st_setclientid.testClientReboot : WARNING
Trying to use old stateid after SETCLIENTID_CONFIRM purges state should return NFS4ERR_OLD_STATEID, instead got NFS4ERR_BAD_STATEID
CID6 st_setclientid.testNoConfirm : FAILURE
OPEN using clientid that was never confirmed should return NFS4ERR_STALE_CLIENTID, instead got NFS4ERR_EXPIRED
CIDCF2 st_setclientidconfirm.testBadConfirm : FAILURE
SETCLIENTID_CONFIRM with case not covered in RFC, seems most likely should do nothing and should return NFS4_OK, instead got NFS4ERR_CLID_INUSE
COMP3 st_compound.testBadTags : FAILURE
Compound with invalid utf8 tag '\xc0\xc1' should return NFS4ERR_INVAL, instead got NFS4_OK
COMP6 st_compound.testLongCompound : FAILURE
COMPOUND with len=150 argarry got RPCError:
MSG_ACCEPTED: GARBAGE_ARGS, expected NFS4ERR_RESOURCE
CR13 st_create.testDots : FAILURE
Trying to CREATE a dir named '.' should return NFS4_OK or NFS4ERR_BADNAME, instead got NFS4ERR_INVAL
CR14 st_create.testSlash : FAILURE
Creation of dir named 'CR14/foo' should return NFS4ERR_BADNAME or NFS4ERR_BADCHAR, instead got NFS4ERR_INVAL
LINK4a st_link.testCfhLink : FAILURE
LINK with <cfh> not a directory should return NFS4ERR_NOTDIR, instead got NFS4ERR_SYMLINK
LINK8 st_link.testInvalidUtf8 : FAILURE
LINK with invalid utf8 name LINK8/\xc0\xc1 should return NFS4ERR_INVAL, instead got NFS4_OK
LINK9 st_link.testDots : FAILURE
Trying to make a hardlink named '.' should return NFS4_OK or NFS4ERR_BADNAME, instead got NFS4ERR_INVAL
LOCK8c st_lock.testNonzeroLockSeqid : WARNING
LOCK with newlockowner's lockseqid=1 should return NFS4ERR_BAD_SEQID, instead got NFS4_OK
LOCK18 st_lock.testFairness : WARNING
Locking is not fair
LOCK19 st_lock.testBlockPoll : WARNING
Locking is not fair
LOCK21 st_lock.testBlockingQueue : WARNING
Locking is not fair
LOCK22 st_lock.testLongPoll : WARNING
Locking is not fair
LOOK6 st_lookup.testNonAccessable : FAILURE
LOOKUP object in a dir with mode=000 should return NFS4ERR_ACCESS, instead got NFS4_OK
LOOK7 st_lookup.testInvalidUtf8 : FAILURE
LOOKUP object with invalid utf-8 name \xc0\xc1 should return NFS4ERR_INVAL, instead got NFS4ERR_NOENT
LOOK9 st_lookup.testUnaccessibleDir : FAILURE
LOOKUP off of dir with mode=0 should return NFS4ERR_ACCESS, instead got NFS4_OK
LOOKP2a st_lookupp.testLink : FAILURE
LOOKUPP with non-dir <cfh> should return NFS4ERR_NOTDIR, instead got NFS4ERR_SYMLINK
OPCF3a st_openconfirm.testLink : FAILURE
OPEN_CONFIRM of a nonfile object should return NFS4ERR_INVAL, instead got NFS4ERR_SYMLINK
OPDG9a st_opendowngrade.testLink : WARNING
OPENDOWNGRADE with nonfile object should return NFS4ERR_INVAL, instead got NFS4ERR_BAD_STATEID
OPDG9b st_opendowngrade.testBlock : WARNING
OPENDOWNGRADE with nonfile object should return NFS4ERR_INVAL, instead got NFS4ERR_BAD_STATEID
OPDG9c st_opendowngrade.testChar : WARNING
OPENDOWNGRADE with nonfile object should return NFS4ERR_INVAL, instead got NFS4ERR_BAD_STATEID
OPDG9d st_opendowngrade.testDir : WARNING
OPENDOWNGRADE with nonfile object should return NFS4ERR_INVAL, instead got NFS4ERR_BAD_STATEID
OPDG9f st_opendowngrade.testFifo : WARNING
OPENDOWNGRADE with nonfile object should return NFS4ERR_INVAL, instead got NFS4ERR_BAD_STATEID
OPDG9s st_opendowngrade.testSocket : WARNING
OPENDOWNGRADE with nonfile object should return NFS4ERR_INVAL, instead got NFS4ERR_BAD_STATEID
OPEN13 st_open.testInvalidUtf8 : FAILURE
Trying to open file with invalid utf8 name OPEN13/\xc0\xc1 should return NFS4ERR_INVAL, instead got NFS4_OK
OPEN16 st_open.testClaimPrev : WARNING
Trying to OPEN with CLAIM_PREVIOUS should return NFS4ERR_RECLAIM_BAD, instead got NFS4ERR_NO_GRACE
OPEN17 st_open.testModeChange : FAILURE
Opening file OPEN17 with mode=000 should return NFS4ERR_ACCESS, instead got NFS4_OK
OPEN19 st_open.testShareConflict2 : FAILURE
Trying to deny write permissions to others when don't have write permissions should return NFS4ERR_ACCESS, instead got NFS4_OK
OPEN23b st_open.testDenyRead3a : FAILURE
Read an access_write file should return NFS4_OK, instead got NFS4ERR_IO
RD4 st_read.testLargeCount : WARNING
READ returned 1048576 characters, expected 9000000
RD12 st_read.testOpenMode : FAILURE
READ with file opened in WRITE mode should return NFS4ERR_OPENMODE, instead got NFS4ERR_IO
RDDR11 st_readdir.testUnaccessibleDir : FAILURE
READDIR of directory with mode=0 should return NFS4ERR_ACCESS, instead got NFS4_OK
RDDR12 st_readdir.testUnaccessibleDirAttrs : FAILURE
READDIR of directory with mode=0 should return NFS4ERR_ACCESS, instead got NFS4_OK
RM5 st_remove.testNonUTF8 : FAILURE
Trying to remove file with invalid utf8 name RM5/\xc0\xc1 should return NFS4ERR_INVAL, instead got NFS4ERR_NOENT
RM7 st_remove.testDots : WARNING
REMOVE nonexistant '.' should return NFS4ERR_BADNAME, instead got NFS4ERR_NOENT
RNM8 st_rename.testBadutf8Oldname : FAILURE
RENAME with non-UTF8 oldname RNM8/\xc0\xc1 should return NFS4ERR_INVAL, instead got NFS4ERR_NOENT
RNM9 st_rename.testBadutf8Newname : FAILURE
RENAME with non-UTF8 newname RNM9/\xc0\xc1 should return NFS4ERR_INVAL, instead got NFS4_OK
RNM10 st_rename.testDotsOldname : WARNING
RENAME from nonexistant '.' should return NFS4ERR_BADNAME, instead got NFS4ERR_NOENT
RNM11 st_rename.testDotsNewname : FAILURE
RENAME from nonexistant '.' should return NFS4ERR_BADNAME, instead got NFS4ERR_INVAL
RNM16 st_rename.testDirToFullDir : FAILURE
RENAME dir1 into existing, nonempty dir2 should return NFS4ERR_EXIST, instead got NFS4ERR_NOTEMPTY
SATT1a st_setattr.testLink : FAILURE
Set attrs {33: 480} not equal to got attrs {33: 511}SATT9 st_setattr.testNonUTF8 : UNSUPPORTED
FATTR4_MIMETYPE not supported
SATT12a st_setattr.testSizeLink : FAILURE
SETATTR(FATTR4_SIZE) of a symlink should return NFS4ERR_INVAL, instead got NFS4ERR_SYMLINK
SEC6 st_secinfo.testInvalidUtf8 : FAILURE
SECINFO of non-existant file with invalid utf8 name '\xc0\xc1' should return NFS4ERR_INVAL, instead got NFS4ERR_NOENT
SEC7 st_secinfo.testRPCSEC_GSS : FAILURE
SECINFO returned mechanism list without RPCSEC_GSS
WRT5 st_write.testLargeData : FAILURE
error: [Errno 32] Broken pipe
**************************************************
Command line asked for 587 of 637 tests
Of those: 8 Skipped, 31 Failed, 17 Warned, 531 Passed
Quoted 6 lines · Steve Dickson
Hey Bruce,
During our Fedora Testing effort we have identified the following pynfs failures when testing with a kernel-2.6.33 and a very current nfs-utils... At one point I thought there was a list of known pynfs failures.
Did you see the mail I sent you last week? Especially:
http://linux-nfs.org/pipermail/pnfs/2010-January/010008.html
Quoted 2 lines
If so, how does this list match up? any thing new? Anything jumping out that we really should fix?
Personally I've been ignoring the tests that don't pass and just rerunning the rest regularly to spot regressions. I think that's the best use of pynfs for now.
Some of the failures are unimportant or questionable, so "this patch fixes pynfs test XXXYYY" is never enough to justify applying anything--we also need to check the spec and/or consider the effect on client-side behavior.
Anyway, may still be worth another look at the results, so here goes:
Quoted 5 lines
[root@ibm-hs21-01 pynfs]# ./testserver.py localhost:/nfs --maketree all
CID1 st_setclientid.testClientReboot : WARNING
Trying to use old stateid afterSETCLIENTID_CONFIRMpurges state should returnNFS4ERR_OLD_STATEID, instead gotNFS4ERR_BAD_STATEID
Quoted 8 lines
CID6 st_setclientid.testNoConfirm : FAILURE
OPEN using clientid that was never confirmed should returnNFS4ERR_STALE_CLIENTID, instead gotNFS4ERR_EXPIRED
CIDCF2 st_setclientidconfirm.testBadConfirm : FAILURE
SETCLIENTID_CONFIRMwith case not covered in RFC, seems most likely should do nothing and should returnNFS4_OK, instead gotNFS4ERR_CLID_INUSE
Medium priority to fix.
Quoted 3 lines
COMP3 st_compound.testBadTags : FAILURE
Compound with invalid utf8 tag '\xc0\xc1' should returnNFS4ERR_INVAL, instead gotNFS4_OK
UTF8 failures are by design; ignore. Omitting similar results in the following.
Quoted 3 lines
COMP6 st_compound.testLongCompound : FAILURE
COMPOUND with len=150 argarry got RPCError:
MSG_ACCEPTED:GARBAGE_ARGS, expectedNFS4ERR_RESOURCE
Low priority to fix.
Quoted 7 lines
CR13 st_create.testDots : FAILURE
Trying to CREATE a dir named '.' should returnNFS4_OKorNFS4ERR_BADNAME, instead gotNFS4ERR_INVAL
CR14 st_create.testSlash : FAILURE
Creation of dir named 'CR14/foo' should returnNFS4ERR_BADNAMEorNFS4ERR_BADCHAR, instead gotNFS4ERR_INVAL
Medium priority to fix. Omitting similar failures in the following.
Quoted 3 lines
LINK4a st_link.testCfhLink : FAILURE
LINK with <cfh> not a directory should returnNFS4ERR_NOTDIR, instead gotNFS4ERR_SYMLINK
I think current behavior may actually be correct; check the spec and behavior on other filesystems. Low priority. Omitting similar failures in the following.
Quoted 3 lines
LOCK8c st_lock.testNonzeroLockSeqid : WARNING
LOCK with newlockowner's lockseqid=1 should returnNFS4ERR_BAD_SEQID, instead gotNFS4_OK
The spec doesn't require this; we should probably remove this test.
Quoted 8 lines
LOCK18 st_lock.testFairness : WARNING
Locking is not fair
LOCK19 st_lock.testBlockPoll : WARNING
Locking is not fair
LOCK21 st_lock.testBlockingQueue : WARNING
Locking is not fair
LOCK22 st_lock.testLongPoll : WARNING
Locking is not fair
Medium priority to fix. I have patches that would need updating.
Quoted 3 lines
LOOK6 st_lookup.testNonAccessable : FAILURE
LOOKUP object in a dir with mode=000 should returnNFS4ERR_ACCESS, instead gotNFS4_OK
This happens when tests are run with root and root-squashing is disabled:
http://linux-nfs.org/pipermail/nfsv4/2006-January/thread.html#3305
I believe current behavior is correct, but it might be worth another look. Low priority. Omitting similar results in the following.
Quoted 10 lines
OPDG9a st_opendowngrade.testLink : WARNING
OPENDOWNGRADE with nonfile object should returnNFS4ERR_INVAL, instead gotNFS4ERR_BAD_STATEID
OPDG9b st_opendowngrade.testBlock : WARNING
OPENDOWNGRADE with nonfile object should returnNFS4ERR_INVAL, instead gotNFS4ERR_BAD_STATEID
OPDG9c st_opendowngrade.testChar : WARNING
OPENDOWNGRADE with nonfile object should returnNFS4ERR_INVAL, instead gotNFS4ERR_BAD_STATEID
OPDG9d st_opendowngrade.testDir : WARNING
Quoted 8 lines
OPENDOWNGRADE with nonfile object should return
NFS4ERR_INVAL, instead gotNFS4ERR_BAD_STATEID
OPDG9f st_opendowngrade.testFifo : WARNING
OPENDOWNGRADE with nonfile object should returnNFS4ERR_INVAL, instead gotNFS4ERR_BAD_STATEID
OPDG9s st_opendowngrade.testSocket : WARNING
OPENDOWNGRADE with nonfile object should returnNFS4ERR_INVAL, instead gotNFS4ERR_BAD_STATEID
Not sure if that's worth fixing. Very low priority.
Quoted 3 lines
OPEN16 st_open.testClaimPrev : WARNING
Trying to OPEN withCLAIM_PREVIOUSshould returnNFS4ERR_RECLAIM_BAD, instead gotNFS4ERR_NO_GRACE
Current behavior probably correct.
Quoted 4 lines
OPEN19 st_open.testShareConflict2 : FAILURE
Trying to deny write permissions to others when don't have write permissions should returnNFS4ERR_ACCESS, instead gotNFS4_OK
Test is wrong; patch submitted to Fred.
Quoted 3 lines
OPEN23b st_open.testDenyRead3a : FAILURE
Read anaccess_writefile should returnNFS4_OK, instead gotNFS4ERR_IO
Might be worth investigating.
Quoted 2 lines
RD4 st_read.testLargeCount : WARNING
READ returned 1048576 characters, expected 9000000
Ignore.
Quoted 3 lines
RD12 st_read.testOpenMode : FAILURE
READ with file opened in WRITE mode should returnNFS4ERR_OPENMODE, instead gotNFS4ERR_IO
Eh, maybe should be fixed. Low priority.
Quoted 3 lines
RNM16 st_rename.testDirToFullDir : FAILURE
RENAME dir1 into existing, nonempty dir2 should returnNFS4ERR_EXIST, instead gotNFS4ERR_NOTEMPTY
Might be worth checking. Low priority.
Quoted 2 lines
SATT1a st_setattr.testLink : FAILURE
Set attrs {33: 480} not equal to got attrs {33: 511}
Probably worth investigating. Medium priority.
Quoted 2 lines
SEC7 st_secinfo.testRPCSEC_GSS : FAILURE
SECINFO returned mechanism list withoutRPCSEC_GSS
Configure krb5 on your test client and server if you want to run those tests.
Quoted 2 lines
WRT5 st_write.testLargeData : FAILURE
error: [Errno 32] Broken pipe
Ignore.
--b.