From a718a11a1c21c1f74460b61c98579db4ae2747ac Mon Sep 17 00:00:00 2001 From: jiffin Date: Thu, 30 Oct 2014 15:58:56 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/9011 Reviewed-by: Meghana M Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- tests/basic/nufa.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/basic/nufa.t') diff --git a/tests/basic/nufa.t b/tests/basic/nufa.t index c368f87787e..ca4054a354d 100644 --- a/tests/basic/nufa.t +++ b/tests/basic/nufa.t @@ -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; -- cgit