| Summary: | [FEAT] cli should output in xml | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Kaushal <kaushal> |
| Component: | cli | Assignee: | Kaushal <kaushal> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Vijaykumar Koppad <vkoppad> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | mainline | CC: | bbandari, gluster-bugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.4.0 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-07-24 17:51:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 817967 | ||
|
Description
Kaushal
2012-02-15 09:07:23 UTC
CHANGE: http://review.gluster.com/2753 (cli: Enable output in XML) merged in master by Vijay Bellur (vijay) Tested on v3.3.0qa44. Appending '--xml' to a gluster command produces xml output. Eg: -!- ~ » gluster volume info test --xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <cliOutput><opRet>0</opRet><opErrno>0</opErrno><opErrstr></opErrstr><volInfo><volumes><volume><name>test</name><id>0fac9efa-3f73-4fea-9460-4df05f835e53</id><type>0</type><status>1</status><brickCount>1</brickCount><distCount>1</distCount><stripeCount>1</stripeCount><replicaCount>1</replicaCount><transport>0</transport><bricks><brick>arch:/export/test</brick></bricks><optCount>0</optCount><options/></volume><count>1</count></volumes></volInfo></cliOutput> -!- ~ » gluster volume stop test --xml Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <cliOutput><volStop><flags>0</flags><volname>test</volname></volStop></cliOutput> -!- ~ » gluster volume status test --xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <cliOutput><opRet>-1</opRet><opErrno>0</opErrno><opErrstr>Volume test is not started</opErrstr><cliOp>volStatus</cliOp><output>Volume test is not started</output></cliOutput> -!- ~ » |