Bug 1040435

Summary: [SNAPSHOT] : CG ID is displyed as "Does not exist" on listing CG with -d option
Product: Red Hat Gluster Storage Reporter: senaik
Component: snapshotAssignee: Sachin Pandit <spandit>
Status: CLOSED DEFERRED QA Contact: senaik
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.0CC: nsathyan, rhs-bugs, rjoseph, sdharane, spandit, ssamanta, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: SNAPSHOT
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-26 07:24:44 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:

Description senaik 2013-12-11 12:34:15 UTC
Description of problem:
=======================
On listing CG with -d option , it lists the CG name, CG ID, CG Description and CG status . Further as it lists the information of the volume and the snaps of the volumes , CG ID for the individual snaps is displayed as "Does not exist"


Version-Release number of selected component (if applicable):
============================================================
glusterfs 3.4.0.snap.dec03.2013git


How reproducible:
================
Always


Steps to Reproduce:
==================
1.create 2 volumes and start it 

2.Create a CG of both the volumes 
gluster snapshot create volume2 volume3 -n CG1

3.Create another CG of the volumes with description [-d option]
gluster snapshot create volume2 volume3 -n CG2 -d "this is the first_CG"

4. List any one CG in detailed description 

 gluster snapshot list -c CG2 -d
CG Name : CG2
CG ID : 8a5a80d8-b19a-4038-a87b-5fe35246bf7b
CG Description : Does not exist
CG Status : Init

Volume Name : volume2
Number of snaps taken : 2
Number of snaps available : 254

	Snap Name : CG1_volume2_snap
	Snap Time : 2013-12-10 11:19:55
	Snap ID : 2678dcca-0e26-49e4-929e-36115492e23a
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : Description not present
	Snap Status : In-use

	Snap Name : CG2_volume2_snap
	Snap Time : 2013-12-10 11:35:52
	Snap ID : 5b7e6985-fa07-4d73-b40b-e8c0cae243e7
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : this is the first_CG
	Snap Status : In-use

Volume Name : volume3
Number of snaps taken : 2
Number of snaps available : 254

	Snap Name : CG1_volume3_snap
	Snap Time : 2013-12-10 11:19:56
	Snap ID : 977adc92-68ce-4c23-b95f-97baab3591b5
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : Description not present
	Snap Status : In-use

	Snap Name : CG2_volume3_snap
	Snap Time : 2013-12-10 11:35:53
	Snap ID : 1a95da30-808f-4448-80c3-0f1eb3a3cf91
	CG Name : Does not exist
	CG ID : Does not exist
	Snap Description : this is the first_CG
	Snap Status : In-use



Actual results:
==============
CG ID for the individual snaps is displayed as "Does not exist"

Expected results:
================
CG ID to which the snap relates to can be displayed in the output 


Additional info:

Comment 3 Sachin Pandit 2013-12-30 07:37:12 UTC
CG Name and ID was not getting updated during the snapshot create, Hence you could see CG Name and ID Does not exist in the snapshot list output.
This issue is fixed.

Comment 4 senaik 2013-12-31 11:40:40 UTC
Version : glusterfs 3.4.0.snap.dec30.2013
========

CG ID and CG Name is listed while listing CG with -d option 

[root@snapshot-01 brick7]# gluster snapshot list -c CG1 -d
CG Name : CG1
CG ID : d3a2a7e7-cb07-40ed-a028-2450d16d62c4
CG Description : Does not exist
CG Status : Init

Volume Name : vol1
Number of snaps taken : 2
Number of snaps available : 254

	Snap Name : CG1_vol1_snap
	Snap Time : 2013-12-31 06:08:13
	Snap ID : c0c78145-20a5-4036-9b21-e442d6259ad8
	CG Name : CG1
	CG ID : d3a2a7e7-cb07-40ed-a028-2450d16d62c4
	Snap Description : Description not present
	Snap Status : In-use

	Snap Name : CG2_vol1_snap
	Snap Time : 2013-12-31 06:09:12
	Snap ID : 50b78f90-a12c-4d99-b807-d24b2d555bf7
	CG Name : CG2
	CG ID : 772ee2e6-2e0a-4503-aa37-a58e3d074983
	Snap Description : this is the first_CG
	Snap Status : In-use

Volume Name : vol2
Number of snaps taken : 2
Number of snaps available : 254

	Snap Name : CG1_vol2_snap
	Snap Time : 2013-12-31 06:08:14
	Snap ID : c51de252-1c37-4e3a-b537-f3b39a19eca9
	CG Name : CG1
	CG ID : d3a2a7e7-cb07-40ed-a028-2450d16d62c4
	Snap Description : Description not present
	Snap Status : In-use

	Snap Name : CG2_vol2_snap
	Snap Time : 2013-12-31 06:09:12
	Snap ID : ffd861f9-0c08-4964-97e8-012ffc2e7949
	CG Name : CG2
	CG ID : 772ee2e6-2e0a-4503-aa37-a58e3d074983
	Snap Description : this is the first_CG
	Snap Status : In-use

Comment 6 Nagaprasad Sathyanarayana 2014-04-21 06:18:14 UTC
Marking snapshot BZs to RHS 3.0.

Comment 8 Nagaprasad Sathyanarayana 2014-05-06 12:05:57 UTC
Fixing RHS 3.0 flags.

Comment 9 Nagaprasad Sathyanarayana 2014-05-06 12:12:53 UTC
Fixing RHS 3.0 flags.

Comment 10 Nagaprasad Sathyanarayana 2014-05-19 10:56:37 UTC
Setting flags required to add BZs to RHS 3.0 Errata

Comment 11 rjoseph 2014-05-26 07:24:44 UTC
CG functionality is removed from snapshot code. Therefore moving the bug to close state.