Bug 1031585

Summary: [RHSC] Unable to remove more than one pair of bricks from a distributed-replicate ( 3x2 ) volume
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shruti Sampat <ssampat>
Component: rhscAssignee: anmol babu <anbabu>
Status: CLOSED ERRATA QA Contact: Shruti Sampat <ssampat>
Severity: medium Docs Contact:
Priority: high    
Version: 2.1CC: anbabu, dpati, dtsang, knarra, mmahoney, pprakash, rhs-bugs, sdharane, sharne
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cb11 Doc Type: Enhancement
Doc Text:
Enhancements have been made to allow the removal of more than a pair of bricks from a distributed-replicate volume.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 08:04:13 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:
Attachments:
Description Flags
screenshot
none
engine logs none

Description Shruti Sampat 2013-11-18 10:53:41 UTC
Created attachment 825525 [details]
screenshot

Description of problem:
-----------------------

On trying to remove more than one pair of bricks from a distributed-replicate ( 3x2 ) volume the following error was seen - 

Incorrect bricks selected for removal in Distributed Replicate volume. <br/> Either all the selected bricks should be from the same sub volume or one brick each for every sub volume!
- 10.70.37.96:/rhs/brick3/b1
- 10.70.37.77:/rhs/brick4/b1
- 10.70.37.96:/rhs/brick4/b1
- 10.70.37.77:/rhs/brick3/b1

The same operation was successful from gluster CLI - 

[root@rhs tmp]# gluster v remove-brick dis_rep_vol 10.70.37.77:/rhs/brick3/b1 10.70.37.96:/rhs/brick3/b1  10.70.37.77:/rhs/brick4/b1 10.70.37.96:/rhs/brick4/b1 start
volume remove-brick start: success
ID: 3f65cf69-27d5-47c1-b464-9bcf61d23916

The operation should have succeeded from the Console too.

Version-Release number of selected component (if applicable):
Red Hat Storage Console Version: 2.1.2-0.23.master.el6_5 

How reproducible:
Always

Steps to Reproduce:
1. Create a distributed-replicate ( 3x2 ) volume, start it.
2. Select two pairs of bricks from the Console and click on Remove.

Actual results:
The above described error message is seen.

Expected results:
The operation should succeed.

Additional info:

Comment 1 Shruti Sampat 2013-11-18 10:57:16 UTC
Created attachment 825526 [details]
engine logs

Comment 3 Shruti Sampat 2013-12-12 11:25:48 UTC
Verified as fixed in Red Hat Storage Console Version: 2.1.2-0.27.beta.el6_5. Removing multiple replica groups at once is now possible.

Comment 4 Shalaka 2014-01-06 05:04:35 UTC
Please review and signoff the edited DocText.

Comment 5 anmol babu 2014-01-06 05:44:44 UTC
yep concise and appropriate.

Comment 6 Dusmant 2014-01-06 07:18:25 UTC
Anmol, change the doc_type to enhancement and add the notes. 
It's a change in behaviour and hence an enhancement.

Comment 7 Shalaka 2014-01-07 04:59:53 UTC
Please review the edited DocText and confirm.

Comment 8 anmol babu 2014-01-07 06:06:51 UTC
yep looks good to me.

Comment 10 errata-xmlrpc 2014-02-25 08:04:13 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