From ecef90aa414a4dcb0a0d520be2334f03d06a4451 Mon Sep 17 00:00:00 2001 From: hari gowtham Date: Mon, 21 Aug 2017 15:41:42 +0530 Subject: Command to identify client process command: gluster volume status client-list output: Client connections for volume v1 Name count ----- ------ fuse 2 tierd 1 total clients for volume v1 : 3 ----------------------------------------------------------------- Client connections for volume v2 Name count ----- ------ tierd 1 fuse.gsync 1 total clients for volume v2 : 2 ----------------------------------------------------------------- Updates: #178 Change-Id: I0ff2579d6adf57cc0d3bd0161a2ec6ac6c4747c0 Signed-off-by: hari gowtham Reviewed-on: https://review.gluster.org/18095 Smoke: Gluster Build System Tested-by: hari gowtham CentOS-regression: Gluster Build System Reviewed-by: Atin Mukherjee --- tests/basic/volume-status.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/basic') diff --git a/tests/basic/volume-status.t b/tests/basic/volume-status.t index f87b0a93edf..0899344cba9 100644 --- a/tests/basic/volume-status.t +++ b/tests/basic/volume-status.t @@ -6,6 +6,10 @@ cleanup; +function gluster_client_list_status () { + gluster volume status $V0 client-list | sed -n '/Name/','/total/'p | wc -l +} + TEST glusterd TEST pidof glusterd TEST $CLI volume info; @@ -21,6 +25,8 @@ EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" nfs_up_status ## Mount FUSE TEST $GFS -s $H0 --volfile-id $V0 $M0; +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "7" gluster_client_list_status + ##Wait for connection establishment between nfs server and brick process EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available; -- cgit