Bug 1446572 - gluster-block: doesn't support json responses
Summary: gluster-block: doesn't support json responses
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-block
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHGS 3.3.0
Assignee: Prasanna Kumar Kalever
QA Contact: surabhi
URL:
Whiteboard:
Depends On:
Blocks: 1417151
TreeView+ depends on / blocked
 
Reported: 2017-04-28 11:17 UTC by Prasanna Kumar Kalever
Modified: 2017-09-21 04:17 UTC (History)
3 users (show)

Fixed In Version: gluster-block-0.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-21 04:17:54 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2773 0 normal SHIPPED_LIVE new packages: gluster-block 2017-09-21 08:16:22 UTC

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


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