Project

General

Profile

Actions

Bug #16346

open

pynfs/nfs4.1: SEQ6 st_sequence.testRequestTooBig FAILURE

Added by Toomas Soome 4 months ago. Updated 2 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
nfs - NFS server and client
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
racktop:BSR-10964

Description

Error from pynfs:

OP_LOOKUP should return NFS4ERR_REQ_TOO_BIG, instead got NFS4ERR_NAMETOOLONG.

From https://www.rfc-editor.org/rfc/rfc8881#name-compound-and-cb_compound-co
"If a request exceeds ca_maxrequestsize, the reply will have the status NFS4ERR_REQ_TOO_BIG."

Actions #1

Updated by Electric Monk 4 months ago

  • Gerrit CR set to 3337
Actions #2

Updated by Toomas Soome 2 months ago

Testing done: pynfs runs

nfs 4.1 SEQ6 test

**************************************************
SEQ6     st_sequence.testRequestTooBig                            : PASS
**************************************************
Command line asked for 1 of 262 tests
Of those: 0 Skipped, 0 Failed, 0 Warned, 1 Passed

nfs 4.1 against gate:

pynfs@debian:~/pynfs/nfs4.1$ diff -u result-gate.txt result-16346-balrog.txt 
--- result-gate.txt    2024-03-25 23:40:31.783552714 +0200
+++ result-16346-balrog.txt    2024-03-29 19:50:46.913142954 +0200
@@ -11,9 +11,7 @@
 COUR3    st_courtesy.testShareReservation00                       : FAILURE
            OP_OPEN should return NFS4_OK, instead got
            NFS4ERR_SHARE_DENIED
-COUR2    st_courtesy.testLockSleepLock                            : FAILURE
-           OP_LOCK should return NFS4_OK, instead got
-           NFS4ERR_RESOURCE
+COUR2    st_courtesy.testLockSleepLock                            : PASS
 CSID3    st_current_stateid.testOpenWriteClose                    : FAILURE
            OP_WRITE should return NFS4_OK, instead got
            NFS4ERR_STALE_STATEID
@@ -31,11 +29,11 @@
            OP_CLOSE should return NFS4_OK, instead got
            NFS4ERR_STALE_STATEID
 CSID4    st_current_stateid.testLockWriteLocku                    : FAILURE
-           OP_LOCK should return NFS4_OK, instead got
-           NFS4ERR_RESOURCE
+           OP_WRITE should return NFS4_OK, instead got
+           NFS4ERR_STALE_STATEID
 CSID2    st_current_stateid.testLockLockU                         : FAILURE
-           OP_LOCK should return NFS4_OK, instead got
-           NFS4ERR_RESOURCE
+           OP_LOCKU should return NFS4_OK, instead got
+           NFS4ERR_BAD_STATEID
 CSID6    st_current_stateid.testCloseNoStateid                    : PASS
 PUTFH1s  st_putfh.testSocket                                      : PASS
 PUTFH1a  st_putfh.testLink                                        : PASS
@@ -124,9 +122,7 @@
 SEQ7     st_sequence.testTooManyOps                               : PASS
 SEQ1     st_sequence.testSupported                                : PASS
 SEQ12    st_sequence.testSessionidSequenceidSlotid                : PASS
-SEQ6     st_sequence.testRequestTooBig                            : FAILURE
-           OP_LOOKUP should return NFS4ERR_REQ_TOO_BIG, instead
-           got NFS4ERR_NAMETOOLONG
+SEQ6     st_sequence.testRequestTooBig                            : PASS
 SEQ10b   st_sequence.testReplayCache007                           : FAILURE
            OP_SEQUENCE should return NFS4_OK or
            NFS4ERR_RETRY_UNCACHED_REP, instead got
@@ -239,4 +235,4 @@
 EID4     st_exchange_id.testBadFlags                              : PASS
 **************************************************
 Command line asked for 171 of 262 tests
-Of those: 0 Skipped, 32 Failed, 0 Warned, 139 Passed
+Of those: 0 Skipped, 30 Failed, 0 Warned, 141 Passed

nfs 4.0 against gate:

pynfs@debian:~/pynfs/nfs4.0$ diff -u result-gate.txt result-16364-balrog.txt 
--- result-gate.txt    2024-03-26 00:04:36.980115176 +0200
+++ result-16364-balrog.txt    2024-03-31 13:54:53.949152991 +0300
@@ -36,10 +36,6 @@
 Woke up
 Sleeping for 0.3 seconds: 
 Woke up
-Sleeping for 0.3 seconds: 
-Woke up
-Sleeping for 0.3 seconds: 
-Woke up
 Sleeping for 120 seconds: 
 Woke up
 Sleeping for 0.3 seconds: 
@@ -54,7 +50,6 @@
 Woke up
 Sleeping for 0.3 seconds: 
 Woke up
-Got error: Connection closed
 Sleeping for 120 seconds: 
 Woke up
 Sleeping for 90 seconds: 
@@ -76,7 +71,9 @@
 Sleeping for 120 seconds: 
 Woke up
 **************************************************
-RPLY8    st_replay.testUnlockWait                                 : PASS
+RPLY8    st_replay.testUnlockWait                                 : FAILURE
+           Call to be replayed should return NFS4_OK or
+           NFS4ERR_EXPIRED, instead got NFS4ERR_STALE
 RPLY7    st_replay.testUnlock                                     : PASS
 RPLY3    st_replay.testReplayState2                               : PASS
 RPLY2    st_replay.testReplayState1                               : PASS
@@ -104,7 +101,9 @@
            NFS4ERR_INVAL
 WRT11    st_write.testStaleStateid                                : PASS
 WRT6s    st_write.testSocket                                      : PASS
-WRT15    st_write.testSizes                                       : PASS
+WRT15    st_write.testSizes                                       : FAILURE
+           length 2210 WRITE should return NFS4_OK, instead got
+           NFS4ERR_STALE
 WRT1b    st_write.testSimpleWrite2                                : FAILURE
            nfs4lib.BadCompoundRes: Creating file b'WRT1b-1':
            operation OP_OPEN should return NFS4_OK, instead got
@@ -395,21 +394,19 @@
 OPEN7f   st_open.testFifo                                         : FAILURE
            Trying to OPEN fifo should return NFS4ERR_SYMLINK,
            instead got NFS4ERR_INVAL
-OPEN20   st_open.testFailedOpen                                   : PASS
+OPEN20   st_open.testFailedOpen                                   : FAILURE
+           Writing with write lock should return NFS4_OK, instead
+           got NFS4ERR_LOCKED
 OPEN7d   st_open.testDir                                          : PASS
 OPEN28   st_open.testDenyWrite4                                   : PASS
-OPEN27   st_open.testDenyWrite3                                   : FAILURE
-           Trying to WRITE a write-denied file should return
-           NFS4ERR_LOCKED, instead got NFS4_OK
+OPEN27   st_open.testDenyWrite3                                   : PASS
 OPEN26   st_open.testDenyWrite2                                   : PASS
 OPEN25   st_open.testDenyWrite1                                   : FAILURE
            OPEN with access==write on a write-denied file should
            return NFS4ERR_SHARE_DENIED, instead got NFS4_OK
 OPEN24   st_open.testDenyRead4                                    : PASS
 OPEN23b  st_open.testDenyRead3a                                   : PASS
-OPEN23   st_open.testDenyRead3                                    : FAILURE
-           Trying to READ a read-denied file should return
-           NFS4ERR_LOCKED, instead got NFS4_OK
+OPEN23   st_open.testDenyRead3                                    : PASS
 OPEN22   st_open.testDenyRead2                                    : PASS
 OPEN21   st_open.testDenyRead1                                    : FAILURE
            OPEN with access==read on a read-denied file should
@@ -479,10 +476,7 @@
 LOOK10   st_lookup.testBadOpaque                                  : PASS
 LKU3     st_locku.testZeroLen                                     : PASS
 LKUNONE  st_locku.testUnlocked                                    : PASS
-LKU10    st_locku.testTimedoutUnlock                              : FAILURE
-           nfs4lib.BadCompoundRes: Opening file b'LKU10-1':
-           operation OP_OPEN should return NFS4_OK, instead got
-           NFS4ERR_SHARE_DENIED
+LKU10    st_locku.testTimedoutUnlock                              : PASS
 LKU9     st_locku.testStaleLockStateid                            : WARNING
            LOCKU with stale lockstateid should return
            NFS4ERR_STALE_STATEID, instead got NFS4ERR_BAD_STATEID

Actions

Also available in: Atom PDF