Bug 1242894 - [RFE] 'gluster volume help' output could be sorted alphabetically
Summary: [RFE] 'gluster volume help' output could be sorted alphabetically
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Mohamed Ashiq
QA Contact:
URL:
Whiteboard:
: 1193298 (view as bug list)
Depends On: 1193298
Blocks: 1276208
TreeView+ depends on / blocked
 
Reported: 2015-07-14 11:03 UTC by Mohamed Ashiq
Modified: 2016-06-16 13:23 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.8rc2
Doc Type: Enhancement
Doc Text:
Clone Of: 1193298
: 1276208 (view as bug list)
Environment:
Last Closed: 2016-06-16 13:23:25 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Mohamed Ashiq 2015-07-14 11:03:26 UTC
+++ This bug was initially created as a clone of Bug #1193298 +++

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 Anand Avati 2015-07-14 12:20:38 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#2) for review on master by Mohamed Ashiq (ashiq333)

Comment 2 Anand Avati 2015-07-15 08:59:07 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#3) for review on master by Mohamed Ashiq (ashiq333)

Comment 3 Anand Avati 2015-07-16 06:46:06 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#4) for review on master by Mohamed Ashiq (ashiq333)

Comment 4 Anand Avati 2015-07-23 06:56:37 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#5) for review on master by Mohamed Ashiq (ashiq333)

Comment 5 Anand Avati 2015-07-28 15:21:31 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#6) for review on master by Mohamed Ashiq (mliyazud)

Comment 6 Anand Avati 2015-08-03 05:35:58 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#8) for review on master by Mohamed Ashiq Liyazudeen (mliyazud)

Comment 7 Anand Avati 2015-08-05 07:20:31 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#9) for review on master by Mohamed Ashiq Liyazudeen (mliyazud)

Comment 8 Anand Avati 2015-08-05 09:05:14 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#10) for review on master by Mohamed Ashiq Liyazudeen (mliyazud)

Comment 9 Vijay Bellur 2015-09-15 16:28:58 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#13) for review on master by Mohamed Ashiq Liyazudeen (mliyazud)

Comment 10 Vijay Bellur 2015-10-27 07:12:20 UTC
REVIEW: http://review.gluster.org/11663 (cli : 'gluster volume help' output sorted alphabetically) posted (#14) for review on master by Mohamed Ashiq Liyazudeen (mliyazud)

Comment 11 Vijay Bellur 2015-10-28 20:42:35 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 12 Mohamed Ashiq 2015-10-29 15:26:37 UTC
*** Bug 1193298 has been marked as a duplicate of this bug. ***

Comment 13 Niels de Vos 2016-06-16 13:23:25 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


Note You need to log in before you can comment on or make changes to this bug.