Bug 1064295

Summary: [RHSC] - Remove brick icon does not come in the volume activities column while performing remove-brick
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: rhscAssignee: Sahina Bose <sabose>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: asriram, dpati, dtsang, kmayilsa, mmahoney, nlevinki, pprakash, psriniva, rhs-bugs, sabose, sharne, ssampat
Target Milestone: ---   
Target Release: RHGS 3.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhsc-3.0.0-0.5.master.el6_5 Doc Type: Bug Fix
Doc Text:
Previously while performing a remove brick operation, clicking the "Remove" button before the pop-up closed on Remove Brick window led to a remove brick operation failure, and the remove brick icon was not displayed in the Activities column. With this fix, the Remove-brick icon appears in the volume activities column, the tasks in the task pane are updated as expected, and an appropriate message is displayed if the remove brick icon is clicked when a task is already in progress.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-22 19:07:30 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:    
Bug Blocks: 1035040    
Attachments:
Description Flags
Attaching the same.
none
Sql script to clean failed gluster jobs none

Description RamaKasturi 2014-02-12 11:21:37 UTC
Created attachment 862216 [details]
Attaching the same.

Description of problem:
Remove icon does not come in the volume activites column while performing remove brick.

Version-Release number of selected component (if applicable):
rhsc-2.1.2-0.36.el6rhs.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a distribute volume and start remove -brick.
2. Now remove-brick popup gets opened , click on ok button.
3. Now close the popup dialog.
4. Remove button gets enabled .
5. Click on Remove again.

Actual results:
Remove-brick icon does not come in the volume activities column and the task in the task pane remains in "pending commit" state, performing remove-brick or rebalance says " A task is already in progress." See the attached screenshot.

Expected results:
1) Remove-brick icon should appear in the volume activities column.
2) Once remove-brick is started , remove button should not get enabled.
3) Task in the task pane should be updated properly.

Additional info:

Comment 2 RamaKasturi 2014-02-12 12:10:58 UTC
Attaching the sosreports for the same.

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

Comment 3 Dusmant 2014-02-14 06:49:19 UTC
As discussed over e-mail, I am marking for Denali. Sahina already has a fix for this.

Comment 4 Dusmant 2014-02-14 06:52:38 UTC
This bug will be documented as a known issue in Corbett release.

Comment 5 Shalaka 2014-02-18 06:57:32 UTC
Please review the edited doc text and sign off.

Comment 6 Sahina Bose 2014-02-18 08:31:50 UTC
Created attachment 864412 [details]
Sql script to clean failed gluster jobs

The clean_failed_gluster_jobs.sql will remove failed job entries which have no associated gluster task ids

Comment 7 Sahina Bose 2014-02-18 08:35:30 UTC
Add to workaround to run attached sql file like this:

$ psql --username <dbusername> -d <enginedatabase> -a -f clean_failed_gluster_jobs.sql

example:

$ psql --username postgres -d engine -a -f clean_failed_gluster_jobs.sql

Comment 8 Shalaka 2014-02-19 09:03:07 UTC
Updated the doc text as suggested in comment 7.

Comment 9 RamaKasturi 2014-05-24 10:08:18 UTC
Verified as fixed in rhsc-3.0.0-0.5.master.el6_5.noarch.

With this fix:

 1) Remove-brick icon should appear in the volume activities column.
 
 2) Tasks in the task pane gets updated properly.

 3) Remove brick icon is still enabled, but clicking on that says "Error while executing action: Cannot start remove Gluster Brick(s). A task is in progress on the volume vol_dis in cluster Import-cluster."

Comment 10 Pavithra 2014-07-09 06:53:51 UTC
Hi Sahina,

Please review the edited doc text for technical accuracy and sign off.

Comment 11 Sahina Bose 2014-09-17 05:26:50 UTC
Doc text looks fine

Comment 13 errata-xmlrpc 2014-09-22 19:07:30 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-1277.html