Fedora Account System
Red Hat Associate
Red Hat Customer
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
Merged as part of master branch: https://review.gluster.org/#/c/16939/
Downstream bus is to remain in POST till the patch is pulled into downstream repo.
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
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