Red Hat Bugzilla – Bug 840033
Ouput of gluster volume list | info is not sorted consistently
Last modified: 2013-09-15 19:53:50 EDT
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
Steps to Reproduce:
1. Run cluster volume list | info on several storage nodes of a cluster
[root@rhs1-1 vols]# gluster volume list
while on the other node:
[root@rhs1-2 vols]# gluster volume list
Same behaviour w/ gluster volume info
Output should be ordered in the same way on all nodes of the storage cluster
can't we use 'gluster volume list | sort' on all the machines?
For now thats easiest thing to do.
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.