4.1 server tests: support other minor versions

So you can run tests with minor version 4.2, for example, by using
--minorversion=2.

This is a bit primitive.  Eventually we'll need it to vary behavior and
applicable tests based on minorversion.

Also, it shouldn't really allow --minorversion=0.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
server41tests: create_sessions should always specify cb_sec

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
server41tests: remove unused function

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.1 server tests: callback_sec_parms4 definition needed

Fixes "NameError: global name 'callback_sec_parms4' is not defined" on
REBT1.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.1 server tests: fix REBT1 sleeptime calculation

We can hit the "finally" clause before sleeptime is initialized, causing
a "UnboundLocalError: local variable 'sleeptime' referenced before
assignment" followed by later tests failing with unexpected
NFS4ERR_GRACE.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.1 server tests: try harder to get read delegation

The recent linux server has stopped giving out read delegations on open
creates.  I think this is a reasonable heuristic (files that have just
been created are likely to be modified soon).  In any case, it can't
hurt for pynfs to try the open one more time.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Make mode 000 tests expect NFS4_OK when run as root

They will warn if NFS4ERR_ACCESS is returned.

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Make some tests runable by request

Ganesha can pass several tests that were made inoperable.
The original FLAGS: for these were commented out and FLAGS:
is left blank so these tests only run if requested for.

Plus a few tests had duplicate names.

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>
Make LOOK10 accept MSG_ACCEPTED: GARBAGE_ARGS as well as NFS4ERR_BADXDR

The Ganesha server does XDR for the whole request before starting to
process COMPOUND. As a result, LOOK10 causes an XDR failure that Ganesha
responds at RPC layer and never gets to NFS layer to return NFS4ERR_BADXDR.

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>