Bug 1083882 - [SNAPSHOT]: snapshot config <vol> is to list the config, it should not acquire the volume lock to list.
Summary: [SNAPSHOT]: snapshot config <vol> is to list the config, it should not acquir...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: snapshot
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Sachin Pandit
QA Contact: Rahul Hinduja
URL:
Whiteboard: SNAPSHOT
Depends On:
Blocks: 1087677
TreeView+ depends on / blocked
 
Reported: 2014-04-03 07:33 UTC by Rahul Hinduja
Modified: 2016-09-17 12:56 UTC (History)
6 users (show)

Fixed In Version: glusterfs-3.6.0-3.0.el6rhs
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1087677 (view as bug list)
Environment:
Last Closed: 2014-09-22 19:33:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:1278 0 normal SHIPPED_LIVE Red Hat Storage Server 3.0 bug fix and enhancement update 2014-09-22 23:26:55 UTC

Description Rahul Hinduja 2014-04-03 07:33:28 UTC
Description of problem:
=======================

In a scenario where a snap creation is in progress and a user tries to list the config of that particular volume, it fails with "Another transition is in progress". The listing of volume configuration should not acquire a lock and it should be successful. Also, listing the complete system config information using "gluster snapshot config" works.

This could be the reason as we have single command to list and set
"snapshot config [volname] [snap-max-hard-limit <count>] [snap-max-soft-limit <percent>] - Snapshot Config."

But for a user the listing should not acquire a lock.

[root@snapshot-12 ~]# gluster snapshot config vol0
Snapshot Config : failed: Another transaction is in progress. Please try again after sometime.
Snapshot command failed
[root@snapshot-12 ~]# 



Version-Release number of selected component (if applicable):
==============================================================
glusterfs-3.4.1.7.snap.mar27.2014git-1.el6.x86_64


How reproducible:
=================
1/1


Steps to Reproduce:
===================
1. Start creating snapshot 
2. While snapshot creation is inprogress list the config using "gluster snapshot config <vol-name>"


Actual results:
===============

[root@snapshot-12 ~]# gluster snapshot config vol0
Snapshot Config : failed: Another transaction is in progress. Please try again after sometime.
Snapshot command failed
[root@snapshot-12 ~]# 

Expected results:
=================

[root@snapshot-12 ~]# gluster snapshot config vol0

Snapshot System Configuration:
snap-max-hard-limit : 70
snap-max-soft-limit : 90%

Snapshot Volume Configuration:

Volume : vol0
snap-max-hard-limit : 256
Effective snap-max-hard-limit : 70
Effective snap-max-soft-limit : 63 (90%)
[root@snapshot-12 ~]#

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

Comment 4 Sachin Pandit 2014-05-06 07:22:37 UTC
The Patch which fixes this bug can be found in http://review.gluster.org/#/c/7458/

Comment 5 Rahul Hinduja 2014-05-15 12:25:12 UTC
verified with build: glusterfs-3.6.0.1-1.el6rhs.x86_64

While the snapshot creation is in progress, able to list the config of a volume

[root@snapshot09 ~]# for i in {1..10} ; do time gluster snapshot create snap$i vol0 ; done 
snapshot create: success: Snap snap1 created successfully

real	0m10.914s
user	0m0.135s
sys	0m0.030s



 

[root@snapshot10 ~]# gluster snapshot config vol0

Snapshot System Configuration:
snap-max-hard-limit : 200
snap-max-soft-limit : 90%

Snapshot Volume Configuration:

Volume : vol0
snap-max-hard-limit : 256
Effective snap-max-hard-limit : 200
Effective snap-max-soft-limit : 180 (90%)
[root@snapshot10 ~]# 


Moving the bug to verified

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

Comment 8 errata-xmlrpc 2014-09-22 19:33:42 UTC
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.

http://rhn.redhat.com/errata/RHEA-2014-1278.html


Note You need to log in before you can comment on or make changes to this bug.