Description of problem: gluster cli commands should provide yaml output Version-Release number of selected component (if applicable): RHGS 3.2 Actual results: No yaml output Expected results: # gluster volume status volname --yaml volume: volname gluster_process: type: 'Brick' path: 'nodename1:/rhgs/volname/brick01/fs' ports: tcp: 49154 rdma: 0 online: 'Y' pid: 13422 type: 'Brick' path: 'nodename2:/rhgs/volname/brick01/fs' ports: tcp: 49154 rdma: 0 online: 'Y' pid: 13415 ... type: 'Self heal' node: nodename1 online: 'Y' pid: 23676 type: 'Self heal' node: localhost online: 'Y' pid: 21519 tasks: '<<Empty>> Additional info: Customer is asking for yaml output since it is good option for programatic access
We do have xml output for programmatic access today, would that work for the customer right now?
Please check GSS case comments. XML output is there, but it has issues & some gluster commands are not supported (--xml switch is ignored). YAML or JSON will be very nice addition to XML. Ability to use as a source for Ansible dynamic inventory. Easier integration with CloudForms or other mgmt tools. Converting XML data to JSON/YAML should be very simple only by choosing and adding and using some converter. You can save sysadmins time whie trying to generate some gluster reports for various external dashboards..etc. It's completely fine to schedule it for Gluster 4.0+.
GlusterD2 will have the json support.