Bug 1022531 - RHS-C: Remove-brick of second brick in a volume is also trying to remove the brick that was already Retained
Summary: RHS-C: Remove-brick of second brick in a volume is also trying to remove the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: rhsc
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
: RHGS 2.1.2
Assignee: Ramesh N
QA Contact: Prasanth
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-23 13:21 UTC by Prasanth
Modified: 2015-05-13 16:27 UTC (History)
6 users (show)

Fixed In Version: Cb6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-25 07:44:08 UTC
Target Upstream Version:


Attachments (Terms of Use)
screenshot1 (115.07 KB, image/png)
2013-10-23 13:21 UTC, Prasanth
no flags Details
screenshot2 (103.42 KB, image/png)
2013-10-23 13:22 UTC, Prasanth
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC
oVirt gerrit 20096 0 None MERGED webadmin: action to retain the bricks being removed 2020-05-05 19:04:17 UTC

Description Prasanth 2013-10-23 13:21:25 UTC
Created attachment 815412 [details]
screenshot1

Description of problem:

Remove-brick of second brick in a volume is also trying to remove the brick that was already removed and Retained

Version-Release number of selected component (if applicable):


[root@vm08 /]# rpm -qa |grep rhsc
rhsc-webadmin-portal-2.1.2-0.21.beta1.el6_4.noarch
rhsc-lib-2.1.2-0.21.beta1.el6_4.noarch
rhsc-log-collector-2.1.2.0-0.1.el6rhs.noarch
rhsc-branding-rhs-3.3.0-1.0.master.201309200500.fc18.noarch
rhsc-dbscripts-2.1.2-0.21.beta1.el6_4.noarch
rhsc-2.1.2-0.21.beta1.el6_4.noarch
rhsc-cli-2.1.0.0-0.bb3a.el6rhs.noarch
rhsc-backend-2.1.2-0.21.beta1.el6_4.noarch
rhsc-setup-2.1.2-0.21.beta1.el6_4.noarch
rhsc-sdk-python-2.1.2.0-0.1.el6rhs.noarch
rhsc-restapi-2.1.2-0.21.beta1.el6_4.noarch
rhsc-tools-2.1.2-0.21.beta1.el6_4.noarch

vdsm-4.13.0-19.gitc2a87f5.el6rhs.x86_64

glusterfs-3.4.0.35.1u2rhs-1


How reproducible: Always


Steps to Reproduce:
1. Create a distribute volume having 2 bricks (say brick1 and brick2) and start it.
2. In the Bricks sub-tab select one of the bricks (say brick1) and click on Remove.
3. After data migration is complete, click on the drop-down beside the icon that appears on the row corresponding to that brick selected for removal and click on Retain.
4. After successfully retained, now select the 2nd brick (brick2) for removal and click on Remove. 
5. After data migration is complete, commit the removal of this brick.

You will see that both the bricks (brick1 and brick2) are selected for removal. If you proceed further, it will end up in the following error error. See screenshots attached as well.

-----
Error while executing action CommitRemoveGlusterVolumeBricks: Volume remove brick commit failed
error: Deleting all the bricks of the volume is not allowed
-----

Actual results:


Expected results: Brick selected for removal in the second remove-brick operation is the one that has to be removed and not the ones retained previously. 


Additional info: Screenshots attached

Comment 1 Prasanth 2013-10-23 13:22:33 UTC
Created attachment 815413 [details]
screenshot2

Comment 3 Prasanth 2013-11-12 14:46:09 UTC
Verified in cb6.

Comment 4 Ramesh N 2014-01-03 11:57:07 UTC
New feature hence no doc text required

Comment 6 errata-xmlrpc 2014-02-25 07:44:08 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


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