Bug 1245897
| Summary: | gluster snapshot status --xml gives back unexpected non xml output | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Avra Sengupta <asengupt> |
| Component: | snapshot | Assignee: | Avra Sengupta <asengupt> |
| Status: | CLOSED ERRATA | QA Contact: | Anoop <annair> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.1 | CC: | amukherj, ashah, asrivast, byarlaga, rhs-bugs, rjoseph, storage-qa-internal |
| Target Milestone: | --- | Keywords: | Triaged, ZStream |
| Target Release: | RHGS 3.1.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | SNAPSHOT | ||
| Fixed In Version: | glusterfs-3.7.1-12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1245895 | Environment: | |
| Last Closed: | 2015-10-05 07:13:41 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: | 1218732, 1245077, 1245895, 1253607 | ||
| Bug Blocks: | 1251815 | ||
|
Description
Avra Sengupta
2015-07-23 05:41:24 UTC
Fix sent upstream for review at xml output: Fix non-uniform opErrstr xml output Master URL: http://review.gluster.org/#/c/11835/ Release 3.7 URL: http://review.gluster.org/#/c/11920/ RHGS 3.1.1 URL: https://code.engineering.redhat.com/gerrit/#/c/55411/ Marking this bugs as dependent on 1245077, as the fix for text output is sent as part of the fix of 1245077 which also has the same issue. Verified this bug with glusterfs-3.7.1-14.el7rhgs.x86_64 build and its working as expected.
Steps followed as below:
1) Created a cluster of 4 nodes.
2) Created a 4x3 dis-rep volume.
3) without creating any snapshot, following are the outputs of commands:
[root@dhcp35-148 ~]# gluster snapshot status --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<snapStatus>
<snapshots/>
</snapStatus>
</cliOutput>
[root@dhcp35-148 ~]# gluster snapshot info --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<snapInfo>
<count>0</count>
<snapshots/>
</snapInfo>
</cliOutput>
[root@dhcp35-148 ~]# gluster snapshot list --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<snapList>
<count>0</count>
</snapList>
</cliOutput>
The output of all of the above snapshot commands is consistent and is according to what is expected.
Hence marking this bug as Verified.
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://rhn.redhat.com/errata/RHSA-2015-1845.html |