Bug 1008889

Summary: [RHSC] Stop volume when rebalance is in progress succeeds.
Product: Red Hat Gluster Storage Reporter: Shruti Sampat <ssampat>
Component: rhscAssignee: Ramesh N <rnachimu>
Status: CLOSED ERRATA QA Contact: Shruti Sampat <ssampat>
Severity: unspecified Docs Contact:
Priority: high    
Version: 2.1CC: dpati, dtsang, knarra, mmahoney, pprakash, rhs-bugs, sdharane, shtripat
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CB3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 07:38: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:
Attachments:
Description Flags
engine logs none

Description Shruti Sampat 2013-09-17 09:48:40 UTC
Description of problem:
------------------------
After starting rebalance on a volume, trying to stop the volume, failed the first couple of times, but then eventually succeeded, while rebalance was still running.

Version-Release number of selected component (if applicable):
oVirt Engine Version: 3.4.0-0.2.master.20130911113322.gite7ade4a.fc19 

How reproducible:
Observed it once.

Steps to Reproduce:
1. Start rebalance on a volume.
2. Try to start the volume while rebalance is still running. Try this a few times, it failed.
3. Left the setup as it is. The tasks subtab showed that rebalance was still running and the menu item for Rebalance -> Stop was enabled (which indicates that rebalance was still going on, according to engine DB).
4. Again try to stop the volume.

(Note: rebalance had actually completed, according to the gluster CLI output of rebalance status command, but the engine still showed it as running)

Actual results:
Stopping the volume succeeded, which should not be the case.

Expected results:
Stopping the volume should fail.

Additional info:

Comment 2 Shruti Sampat 2013-09-17 09:55:52 UTC
Step 2 in 'Steps to reproduce' should read as :

Try to stop the volume while rebalance is still running. Try this a few times, it failed.

Comment 3 Shruti Sampat 2013-09-17 10:06:39 UTC
Created attachment 798716 [details]
engine logs

Comment 4 Shruti Sampat 2013-10-18 13:01:03 UTC
Verified as fixed in Red Hat Storage Console Version: 2.1.2-0.0.scratch.beta1.el6_4. 

An error pop-up is shown on trying to stop a volume while rebalance is running on the volume.

Comment 5 Ramesh N 2014-01-03 08:46:33 UTC
Doc Text is not required  as its a new feature and we already have an RFE

Comment 7 errata-xmlrpc 2014-02-25 07:38:41 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-0208.html