3
# The nfs.rpc-auth-allow volume option is used to generate the list of clients
4
# that are displayed as able to mount the export. The "group" in the export
5
# should be a list of all clients, identified by "name". In previous versions,
6
# the "name" was the copied string from nfs.rpc-auth-allow. This is not
7
# correct, as the volume option should be parsed and split into different
10
# When the single string is passed, this testcase fails when the
11
# nfs.rpc-auth-allow volume option is longer than 256 characters. By splitting
12
# the groups into their own structures, this testcase passes.
15
#G_TESTDEF_TEST_STATUS_CENTOS6=NFS_TEST
17
. $(dirname $0)/../../include.rc
18
. $(dirname $0)/../../nfs.rc
19
. $(dirname $0)/../../volume.rc
26
TEST $CLI volume create $V0 $H0:$B0/brick1
27
EXPECT 'Created' volinfo_field $V0 'Status'
28
TEST $CLI volume set $V0 nfs.disable false
30
CLIENTS=$(echo 127.0.0.{1..128} | tr ' ' ,)
31
TEST $CLI volume set $V0 nfs.rpc-auth-allow ${CLIENTS}
32
TEST $CLI volume set $V0 nfs.rpc-auth-reject all
34
TEST $CLI volume start $V0;
35
EXPECT 'Started' volinfo_field $V0 'Status'
37
# glusterfs/nfs needs some time to start up in the background
38
EXPECT_WITHIN $NFS_EXPORT_TIMEOUT 1 is_nfs_export_available
40
# showmount should not timeout (no reply is sent on error)