gNFS : mount fails if connection to brick(s) is not established yet.

Connection between gluster-nfs and brick process requires
       time (especially for rdma).During that time when we try to
       mount using nfs ,it will fail saying that volume not found.
       So we need a check using 'is_nfs_export_available'before
       mounting to ensure volume is available.This patch will provide
       the check before nfs mount if it is not given in the test files

Change-Id: I242eb6e3118ebaca1df46314302a203a0c9738a8
BUG: 1158831
Signed-off-by: jiffin tony thottan <jthottan@redhat.com>
Reviewed-on: http://review.gluster.org/9011
Reviewed-by: Meghana M <mmadhusu@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
jiffin 2014-10-30 15:58:56 +05:30 committed by Niels de Vos
parent 4120e8a47a
commit a718a11a1c
4 changed files with 11 additions and 1 deletions

View File

@ -27,6 +27,8 @@ TEST $GFS --read-only -s $H0 --volfile-id $V0 $M1;
## Wait for volume to register with rpc.mountd
sleep 5;
##Wait for connection establishment between nfs server and brick process
EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available;
## Mount NFS
TEST mount_nfs $H0:/$V0 $N0 nolock;

View File

@ -99,6 +99,9 @@ EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "0Bytes" usage "/test_dir"
# though this may change.
## -----------------------------
##Wait for connection establishment between nfs server and brick process
EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available;
TEST mount_nfs $H0:/$V0 $N0 nolock;
TEST $CLI volume quota $V0 limit-usage /test_dir 100MB

View File

@ -98,7 +98,9 @@ TEST fd_close $fd3
# similar tests on nfs mount
# test 44
##Wait for connection establishment between nfs server and brick process
EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available;
#test 44
TEST mount_nfs $H0:/$V0 $N0 nolock;
NUM_SNAPS=$(ls $N0/.snaps | wc -l);

View File

@ -19,6 +19,9 @@ sleep 2
## Mount FUSE
TEST $GFS -s $H0 --volfile-id $V0 $M0;
##Wait for connection establishment between nfs server and brick process
EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available;
## Mount NFS
TEST mount_nfs $H0:/$V0 $N0 nolock;