Bug 1467531

Summary: [gluster-block]: Block create help does not show the new option "prealloc <full|no>"
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Sweta Anandpara <sanandpa>
Component: gluster-blockAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED ERRATA QA Contact: Sweta Anandpara <sanandpa>
Severity: high Docs Contact:
Priority: unspecified    
Version: cns-3.9CC: nchilaka, rcyriac, rhs-bugs, storage-qa-internal
Target Milestone: ---   
Target Release: CNS 3.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-block-0.2.1-14.1.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1545101 (view as bug list) Environment:
Last Closed: 2018-09-12 09:25:17 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: 1545101, 1568861    

Description Sweta Anandpara 2017-07-04 07:08:50 UTC
Description of problem:
======================
While verifying bug 1459839, noticed that gluster-block create help has no mention of newly added "prealloc <full|no>" option. 

[root@dhcp47-121 ~]# gluster-block create
Inadequate arguments for create:
gluster-block create <volname/blockname> [ha <count>] [auth enable|disable] <HOST1[,HOST2,...]> <size> [--json*]
[root@dhcp47-121 ~]# 

"gluster-block help" does list it under the create section though. It seems to have gotten missed adding the same in "gluster-block create help"

Though a minor change, I would consider this important if we are exposing the gluster-block CLI to the user. If not, we could choose to live with it .. as the api calls in CNS environment are not going to be affected with this.


Version-Release number of selected component (if applicable):
=============================================================
glusterfs-3.8.4-31, gluster-block-0.2.1-3


How reproducible:
=================
Always

Additional info:
==================

[root@dhcp47-121 ~]# gluster-block 
gluster-block (0.2.1)
usage:
  gluster-block <command> <volname[/blockname]> [<args>] [--json*]

commands:
  create  <volname/blockname> [ha <count>]
                              [auth <enable|disable>]
                              [prealloc <full|no>]
                              <host1[,host2,...]> <size>
        create block device [defaults: ha 1, auth disable, prealloc no]

  list    <volname>
        list available block devices.

  info    <volname/blockname>
        details about block device.

  delete  <volname/blockname>
        delete block device.

  modify  <volname/blockname> <auth enable|disable>
        modify block device.

  help
        show this message and exit.

  version
        show version info and exit.

supported JSON formats:
  --json|--json-plain|--json-spaced|--json-pretty
unknown option: (null)
[root@dhcp47-121 ~]#

Comment 2 Sweta Anandpara 2017-07-04 08:23:19 UTC
Wrongly marked this as blocker. Removing it..

Comment 4 Prasanna Kumar Kalever 2017-07-07 11:26:31 UTC
Patch:
https://review.gluster.org/#/c/17726/

Comment 10 errata-xmlrpc 2018-09-12 09:25:17 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://access.redhat.com/errata/RHEA-2018:2691