Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1193298

Summary: [RFE] 'gluster volume help' output could be sorted alphabetically
Product: [Community] GlusterFS Reporter: SATHEESARAN <sasundar>
Component: cliAssignee: Mohamed Ashiq <mliyazud>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, gluster-bugs, kaushal, kparthas, mliyazud
Target Milestone: ---Keywords: EasyFix, FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1242894 (view as bug list) Environment:
Last Closed: 2015-10-29 15:26:37 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:
Bug Depends On:    
Bug Blocks: 1242894, 1276208    

Description SATHEESARAN 2015-02-17 06:14:15 UTC
Description of problem:
-----------------------
'gluster volume help' output is not sorted alphabetically.
This makes little harder for the user to search or get to know of few gluster volume commands usage just from gluster cli.

This could be improved by sorting the volume subset alphabetically

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

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Execute 'gluster volume help' on CLI

Actual results:
---------------
all volume subset options are not sorted alphabetically

Expected results:
-----------------
Volume subset options should be sorted

Additional info:
----------------
Current output looks like this,

[~]# gluster v help
volume info ...
volume create ...
volume delete ...
volume start ...
volume stop ...
volume add-brick ...
volume remove-brick ...
volume rebalance ...
volume replace-brick ... 
volume set ...
volume help ...
'
'
volume clear-locks ...

It could be sorted alphabetically as,
[~]# gluster v help
volume add-brick ...

volume create ...
volume clear-locks ...
volume delete ...
volume help ...
volume info ...
volume rebalance ...
volume remove-brick ...
volume replace-brick ... 
'
'
volume set ...
volume start ...
volume stop ...
'
'

The justification is that future days could bring in more new options to 'volume' command, and it is difficult to search through that output.

Comment 1 Kaleb KEITHLEY 2015-10-22 17:12:53 UTC
changing version to mainline in order to retire pre-release.

If you know the appropriate, correct version for this bug, please
set it.

Comment 2 Mohamed Ashiq 2015-10-29 05:38:48 UTC
COMMIT: http://review.gluster.org/11663 committed in master by Jeff Darcy (jdarcy) 
------
commit 323e71617fee5020324540776d0d4469577f0afe
Author: Mohamed Ashiq <mliyazud>
Date:   Wed Jul 15 14:19:49 2015 +0530

    cli : 'gluster volume help' output sorted alphabetically
    
    'gluster volume help' output is not sorted alphabetically.
    This makes little harder for the user to search or get to know of
    few gluster volume commands usage just from gluster cli.
    
    Change-Id: I855da2e4748a5c2ff3be319c50fa9548d676ee8a
    BUG: 1242894
    Signed-off-by: Mohamed Ashiq <mliyazud>
    Reviewed-on: http://review.gluster.org/11663
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Manikandan Selvaganesh <mselvaga>
    Reviewed-by: Anand Nekkunti <anekkunt>

Comment 3 Mohamed Ashiq 2015-10-29 15:26:37 UTC

*** This bug has been marked as a duplicate of bug 1242894 ***