Bug 1555191

Summary: [RFE]: gluster-block: cli command to generate the configuration
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasanna Kumar Kalever <prasanna.kalever>
Component: gluster-blockAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED ERRATA QA Contact: Sweta Anandpara <sanandpa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: cns-3.10CC: amukherj, kramdoss, pkarampu, pprakash, prasanna.kalever, rcyriac, rhs-bugs, sanandpa, storage-qa-internal, vbellur, xiubli
Target Milestone: ---Keywords: FutureFeature
Target Release: CNS 3.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-block-0.2.1-19.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-12 09:25:26 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: 1566105, 1566106, 1566107    
Bug Blocks: 1568860    

Description Prasanna Kumar Kalever 2018-03-14 06:21:09 UTC
Description of problem:

Add a capability in gluster-block to support regeneration of configuration

[0] ॐ 11:48:23@~ $ gluster-block help
gluster-block (e5d3252)
usage:
  gluster-block <command> <volname[/blockname]> [<args>] [--json*]

commands:
[...]
  regenconfig <volname[,volume2,volume3,...]> enable <host>
        regenerate block configuration for volume[s] in list, enabling host.
[...]
supported JSON formats:
  --json|--json-plain|--json-spaced|--json-pretty


[0] ॐ 11:50:06@~ $ gluster-block regenconfig test,test enable 10.215.99.133
{                            
  "storage_objects":[        
    {
      "attributes":{
        "cmd_time_out":0,
        "dev_size":1073741824
      },
      "config":"glfs\/test.99.133\/block-store\/694c4028-039a-4e28-929e-50a2c0988e95",
      "name":"block",
      "plugin":"user",
      "size":1073741824,
      "wwn":"694c4028-039a-4e28-929e-50a2c0988e95"
    },
...
}

Comment 2 Prasanna Kumar Kalever 2018-03-14 06:32:22 UTC
upstream issue tracker: https://github.com/gluster/gluster-block/issues/52

Comment 17 errata-xmlrpc 2018-09-12 09:25:26 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