Bug 1446572

Summary: gluster-block: doesn't support json responses
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: surabhi <sbhaloth>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, rhs-bugs, sbhaloth
Target Milestone: ---   
Target Release: RHGS 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-block-0.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 04:17:54 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: 1417151    

Description Prasanna Kumar Kalever 2017-04-28 11:17:52 UTC
Description of problem:

Currently, gluster-block doesn't support json responses.
gluster-block should respond in json format to applications who calls gluster-block cli with 'json' argument.

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

Comment 2 Prasanna Kumar Kalever 2017-04-28 11:57:27 UTC
Merged as part of master branch: https://review.gluster.org/#/c/16939/

Comment 3 Atin Mukherjee 2017-04-28 12:22:30 UTC
Downstream bus is to remain in POST till the patch is pulled into downstream repo.

Comment 7 surabhi 2017-06-13 09:22:58 UTC
gluster cli now takes json argument and provides the output in same format.

 gluster-block list blockstor --json
{ "blocks": [ "block1", "bluff-block", "block3", "block4", "block5" ], "RESULT": "SUCCESS" }
gluster-block info blockstor/block1 --json
{ "NAME": "block1", "VOLUME": "blockstor", "GBID": "a7c52bbd-5277-4fc6-8295-c4a3bc348d73", "SIZE": 1073741824, "HA": 1, "PASSWORD": "", "BLOCK CONFIG NODE(S)": [ "10.70.46.151" ] }


Marking the BZ to verify.
Build version :
gluster-block-0.2.1-1.el7rhgs.x86_64
tcmu-runner-1.2.0-4.el7rhgs.x86_64

Comment 9 errata-xmlrpc 2017-09-21 04:17:54 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-2017:2773