Bug 1245084
| Summary: | [RFE] changes needed in snapshot info command's 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: | Anil Shah <ashah> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.1 | CC: | amukherj, ashah, asrivast, dnarayan, rcyriac, rhinduja, rhs-bugs, rjoseph, sankarshan, vbellur |
| Target Milestone: | --- | Keywords: | FutureFeature, Triaged |
| Target Release: | RHGS 3.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | SNAPSHOT | ||
| Fixed In Version: | glusterfs-3.8.4-1 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1173437 | Environment: | |
| Last Closed: | 2017-03-23 05:22:32 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: | 1173437, 1250387, 1250388 | ||
| Bug Blocks: | 1351503 | ||
|
Description
Avra Sengupta
2015-07-21 07:47:40 UTC
Patch sent upstream for review at http://review.gluster.org/#/c/11834/ Upstream patch at http://review.gluster.org/#/c/11834/ Based on comment 6 and 7 on https://bugzilla.redhat.com/show_bug.cgi?id=1173437, limiting the scope of the bug to only the description fix. This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions Fixed in master as part of http://review.gluster.org/#/c/11834/ Till we do a rebase the bug shouldn't be moved to MODIFIED as the content is not yet available in the rhgs codebase. Moving the state back to POST. [root@rhs-client46 core]# gluster snapshot info snap1_GMT-2016.10.20-06.10.09
Snapshot : snap1_GMT-2016.10.20-06.10.09
Snap UUID : 9b3a1a0f-7690-4e93-9c4f-bb2f1def8475
Created : 2016-10-20 06:10:09
Snap Volumes:
Snap Volume Name : b0d1575cb10c479ca38a8a5723ffc710
Origin Volume name : arvol
Snaps taken for arvol : 3
Snaps available for arvol : 253
Status : Stopped
[root@rhs-client46 core]# gluster snapshot info snap1_GMT-2016.10.20-06.10.09 --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<snapInfo>
<count>1</count>
<snapshots>
<snapshot>
<name>snap1_GMT-2016.10.20-06.10.09</name>
<uuid>9b3a1a0f-7690-4e93-9c4f-bb2f1def8475</uuid>
<description/>
<createTime>2016-10-20 06:10:09</createTime>
<volCount>1</volCount>
<snapVolume>
<name>b0d1575cb10c479ca38a8a5723ffc710</name>
<status>Stopped</status>
<originVolume>
<name>arvol</name>
<snapCount>3</snapCount>
<snapRemaining>253</snapRemaining>
</originVolume>
</snapVolume>
</snapshot>
</snapshots>
</snapInfo>
</cliOutput>
============================================================================
Snapshot created with description
[root@rhs-client46 core]# gluster snapshot create snap3 arvol no-timestamp description "Third snapshot in arbitor volume"
snapshot create: success: Snap snap3 created successfully
[root@rhs-client46 core]# gluster snapshot info snap3
Snapshot : snap3
Snap UUID : 017f995a-9597-4ba2-a059-7ec9869bbbde
Description : Third snapshot in arbitor volume
Created : 2016-10-20 06:17:29
Snap Volumes:
Snap Volume Name : c50b5b574fe245bc8244548900f0de36
Origin Volume name : arvol
Snaps taken for arvol : 4
Snaps available for arvol : 252
Status : Stopped
[root@rhs-client46 core]# gluster snapshot info snap3 --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<snapInfo>
<count>1</count>
<snapshots>
<snapshot>
<name>snap3</name>
<uuid>017f995a-9597-4ba2-a059-7ec9869bbbde</uuid>
<description>Third snapshot in arbitor volume</description>
<createTime>2016-10-20 06:17:29</createTime>
<volCount>1</volCount>
<snapVolume>
<name>c50b5b574fe245bc8244548900f0de36</name>
<status>Stopped</status>
<originVolume>
<name>arvol</name>
<snapCount>4</snapCount>
<snapRemaining>252</snapRemaining>
</originVolume>
</snapVolume>
</snapshot>
</snapshots>
</snapInfo>
</cliOutput>
=====================================================
Snapshot created with description
[root@rhs-client46 core]# gluster snapshot info snap1
Snapshot : snap1
Snap UUID : fa6a58c8-a6c5-4819-b432-3f63b7be4958
Created : 2016-10-20 05:22:51
Snap Volumes:
Snap Volume Name : 919d9eb8aaed4d18af5f236157d64104
Origin Volume name : arvol
Snaps taken for arvol : 2
Snaps available for arvol : 254
Status : Started
[root@rhs-client46 core]# gluster snapshot info snap1 --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<snapInfo>
<count>1</count>
<snapshots>
<snapshot>
<name>snap1</name>
<uuid>fa6a58c8-a6c5-4819-b432-3f63b7be4958</uuid>
<description/>
<createTime>2016-10-20 05:22:51</createTime>
<volCount>1</volCount>
<snapVolume>
<name>919d9eb8aaed4d18af5f236157d64104</name>
<status>Started</status>
<originVolume>
<name>arvol</name>
<snapCount>2</snapCount>
<snapRemaining>254</snapRemaining>
</originVolume>
</snapVolume>
</snapshot>
</snapshots>
</snapInfo>
</cliOutput>
Bug verified on build glusterfs-3.8.4-2.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://rhn.redhat.com/errata/RHSA-2017-0486.html |