Bug 840033

Summary: Ouput of gluster volume list | info is not sorted consistently
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Patric Uebele <puebele>
Component: glusterfsAssignee: Kaushal <kaushal>
Status: CLOSED WONTFIX QA Contact: Sudhir D <sdharane>
Severity: low Docs Contact:
Priority: low    
Version: 2.0CC: amarts, gluster-bugs, jschrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-18 06:54:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patric Uebele 2012-07-13 13:49:05 UTC
Description of problem:
The order of the outputs of commands like gluster volume list and gluster volume info is not the same across nodes, which may be confusing in troubleshooting scenarios.

Version-Release number of selected component (if applicable): 2.0


How reproducible:
Reproducible

Steps to Reproduce:
1. Run cluster volume list | info on several storage nodes of a cluster
2. 
3.
  
Actual results:
[root@rhs1-1 vols]# gluster volume list
distvol1
repvol1

while on the other node:

[root@rhs1-2 vols]# gluster volume list
repvol1
distvol1

Same behaviour w/ gluster volume info

Expected results:
Output should be ordered in the same way on all nodes of the storage cluster


Additional info:

Comment 2 Amar Tumballi 2012-07-16 02:38:02 UTC
can't we use 'gluster volume list | sort' on all the machines? 

For now thats easiest thing to do.

Comment 3 Amar Tumballi 2012-12-18 06:54:30 UTC
the idea was to make the CLI commands work with standard unix tools. so, now gluster volume list doesn't print line number like earlier. Please use "gluster volume list | sort" to get the same array of volume names on all the machines.