Bug 1351455 - heketi-cli should display help, when invoked
Summary: heketi-cli should display help, when invoked
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: CNS 3.4
Assignee: Michael Adam
QA Contact: Prasanth
URL:
Whiteboard:
Depends On:
Blocks: 1385246
TreeView+ depends on / blocked
 
Reported: 2016-06-30 06:39 UTC by Anoop
Modified: 2017-01-18 21:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-18 21:55:38 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github heketi heketi issues 415 0 None None None 2016-10-05 21:41:10 UTC
Red Hat Product Errata RHEA-2017:0148 0 normal SHIPPED_LIVE heketi bug fix and enhancement update 2017-01-19 02:53:24 UTC

Description Anoop 2016-06-30 06:39:12 UTC
heketi-cli should at least display help, when invoked.

Presently, you get nothing in the o/p, should give usage/help.

[root@dhcp42-41 ~]# heketi-cli 
[root@dhcp42-41 ~]#

Comment 2 Humble Chirammal 2016-07-04 11:26:04 UTC
Yes, by default it can list the the commands and options, in short '--help' o/p.

Comment 3 Luis Pabón 2016-07-06 16:25:35 UTC
Good catch: https://github.com/heketi/heketi/issues/415

Comment 4 Mohamed Ashiq 2016-07-07 02:49:43 UTC
PR : https://github.com/heketi/heketi/pull/410

Comment 11 Prasanth 2016-10-28 07:22:27 UTC
Verified as Fixed.


#########
# rpm -qa |grep heketi-client
heketi-client-3.0.0-1.el7rhgs.x86_64


# heketi-cli
Usage:
  heketi-cli [flags]
  heketi-cli [command]

Examples:
  $ export HEKETI_CLI_SERVER=http://localhost:8080
  $ heketi-cli volume list

Available Commands:
  cluster                        Heketi cluster management
  device                         Heketi device management
  node                           Heketi Node Management
  setup-openshift-heketi-storage Setup OpenShift/Kubernetes persistent storage for Heketi
  topology                       Heketi Topology Management
  volume                         Heketi Volume Management

Flags:
  -h, --help                           help for heketi-cli
      --json                           
        Print response as JSON
      --log-flush-frequency duration   Maximum number of seconds between log flushes (default 5s)
      --secret string                  
        Secret key for specified user.  Can also be
        set using the environment variable HEKETI_CLI_KEY
  -s, --server string                  
        Heketi server. Can also be set using the
        environment variable HEKETI_CLI_SERVER
      --user string                    
        Heketi user.  Can also be set using the
        environment variable HEKETI_CLI_USER
  -v, --version                        
        Print version

Use "heketi-cli [command] --help" for more information about a command.
#########

Comment 13 errata-xmlrpc 2017-01-18 21:55:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2017-0148.html


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