Bug 1228066

Summary: [New] - user should not be allowed to take snapshot when rebalance / remove-brick is running.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shubhendu Tripathi <shtripat>
Component: rhscAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.1CC: asrivast, dpati, ecohen, gklein, knarra, lsurette, mgoldboi, nlevinki, rbalakri, rhs-bugs, sabose, shtripat, vagarwal, yeylon
Target Milestone: ---   
Target Release: RHGS 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: gluster
Fixed In Version: rhsc-3.1.0-59 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1215878 Environment:
Last Closed: 2015-07-29 05:31:56 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: 1215878    
Bug Blocks: 1202842, 1224288    
Attachments:
Description Flags
Attaching the screenshot for the error message if user tries to take a snapshot while remove brick is running
none
Attaching screenshot for the message when user tries to take a snapshot when rebalance is running on the volume none

Description Shubhendu Tripathi 2015-06-04 07:05:25 UTC
+++ This bug was initially created as a clone of Bug #1215878 +++

Description of problem:
As of now when rebalance / remove-brick is running user is allowed to take snapshot, snapshot creation succeeds but does not display any snaps.

user should be given a message saying "Rebalance/remove-brick is running for the volume <vol_name> and snapshot cannot be taken. 

Version-Release number of selected component (if applicable):
ovirt-engine-3.6.0-0.0.master.20150420232310.gite30f655.el6.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Create a volume and start running rebalance on the volume.
2. Now click on the snapshot and say 'New'
3. New dialog loads and provide the snap name.

Actual results:
Snapshot creation succeds with no snapshots and event message is displayed saying "Snapshot <snapname> created for volume <vol_name>"

Expected results:
user should not be allowed to take snapshots when rebalance / remove-brick is running.

Additional info:

--- Additional comment from RamaKasturi on 2015-04-28 00:52:56 EDT ---

Find the engine and vdsm logs attached in the link below.

http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/rhsc/1215878/

--- Additional comment from RamaKasturi on 2015-05-21 01:11:27 EDT ---

Moving this bug back because the error message mapping is not proper.

When rebalance or remove brick is in progress UI displays the following error message "Error while executing action: Cannot create ${type}. A task is in progress on the volume ${volumeName} in cluster ${vdsGroup}

Instead of task is in progress, can we display the actual task which is in progress?

Comment 3 Ramesh N 2015-06-15 05:40:00 UTC
Moving back to MODIFIED as the build is not ready but errata has moved the bugs to ON_QA.

Comment 4 RamaKasturi 2015-06-18 13:56:15 UTC
Verified and works fine with build rhsc-3.1.0-0.60.el6.noarch.

When rebalance is running on a volume and if user tries to take snapshot UI displays the following error. 

Error while executing action: Cannot create Gluster Volume Snapshot. A rebalance operation is in progress on the volume <vol_name> in cluster <cluster_name>

When remove-brick is running on a volume and if user tries to take snapshot UI displays the following error.

Error while executing action: Cannot create Gluster Volume Snapshot. A remove_brick operation is in progress on the volume <vol_name> in cluster <cluster_name>

Comment 5 RamaKasturi 2015-06-18 13:58:49 UTC
Created attachment 1040508 [details]
Attaching the screenshot for the error message if user tries to take a snapshot while remove brick is running

Comment 6 RamaKasturi 2015-06-18 14:00:21 UTC
Created attachment 1040510 [details]
Attaching screenshot for the message when user tries to take a snapshot when rebalance is running on the volume

Comment 7 errata-xmlrpc 2015-07-29 05:31:56 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.

https://rhn.redhat.com/errata/RHEA-2015-1494.html