From 692dd7e83cc8a1c85581dda3f752d5ea3b184f8c Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Mon, 24 Nov 2014 17:07:02 +0530 Subject: cli: volume status for tcp,rdma type volume display only tcp port For tcp,rdma type voumes, there will be two ports, one for tcp and one for rdma. But volume status command only display tcp port. By this change, adding an extra column for rdma port and changing the port to tcp port. Eg: >gluster volume status pathy >For tcp,rdma type volume Status of volume: patchy Gluster process TCP Port RDMA Port Online Pid ------------------------------------------------------------------------------ Brick brickname 49152 49153 Y 14158 >For rdma type volume Status of volume: patchy Gluster process TCP Port RDMA Port Online Pid ------------------------------------------------------------------------------ Brick brickname 0 49153 Y 14158 For tcp type volume Status of volume: patchy Gluster process TCP Port RDMA Port Online Pid ------------------------------------------------------------------------------ Brick brickname 49152 0 Y 14158 >gluster volume status patchy detail Status of volume: xcube2 ------------------------------------------------------------------------------ Brick : Brick brickname TCP Port : 49152 RDMA Port : 49153 Online : Y Pid : 14158 File System : ext4 Device : /dev/mapper/luks-2099dd4a-0050-4cae-ad7b-c6a0498c4e88 Mount Options : rw,seclabel,relatime,data=ordered Inode Size : 256 Disk Space Free : 31.1GB Total Disk Space : 47.9GB Inode Count : 3203072 Free Inodes : 2926789 >gluster volume status xcube --xml 0 0 (null) xcube 2 hostname /home/brick1 2d7bcb95-3d26-4d4f-b3c6-e2ee01b71662 1 49152 49152 N/A 5657 NFS Server localhost 2d7bcb95-3d26-4d4f-b3c6-e2ee01b71662 1 2049 2049 N/A 5665 Change-Id: I81aab226edbd400d29cd3f510af4f344dd99ba51 BUG: 1164079 Signed-off-by: Mohammed Rafi KC Reviewed-on: http://review.gluster.org/9191 Reviewed-by: Atin Mukherjee Tested-by: Gluster Build System Reviewed-by: Kaushal M --- tests/bugs/glusterfs-server/bug-861542.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/bugs/glusterfs-server/bug-861542.t') diff --git a/tests/bugs/glusterfs-server/bug-861542.t b/tests/bugs/glusterfs-server/bug-861542.t index ab572963bb0..d33593257b9 100755 --- a/tests/bugs/glusterfs-server/bug-861542.t +++ b/tests/bugs/glusterfs-server/bug-861542.t @@ -20,7 +20,7 @@ function port_field() if [ $opt -eq '0' ]; then $CLI volume status $vol | grep "brick0" | awk '{print $3}'; else - $CLI volume status $vol detail | grep "^Port " | awk '{print $3}'; + $CLI volume status $vol detail | grep "^TCP Port " | awk '{print $4}'; fi } -- cgit