Bug 963541
Summary: | glusterd : 'gluster volume status <vol_name>' some times do not show active task and sometimes it shows tasks which are not active. | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Kaushal <kaushal> |
Component: | glusterd | Assignee: | Kaushal <kaushal> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | mainline | CC: | gluster-bugs, kirantpatil, nsathyan, racpatel, rhs-bugs, sasundar, vbellur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.4.0 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 961608 | Environment: | |
Last Closed: | 2013-07-24 17:40:31 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: | 961608 |
Description
Kaushal
2013-05-16 06:23:12 UTC
REVIEW: http://review.gluster.org/5019 (glusterd: More checks before starting rebalance/remove-brick) posted (#1) for review on master by Kaushal M (kaushal) REVIEW: http://review.gluster.org/5019 (glusterd: More checks before starting rebalance/remove-brick) posted (#2) for review on master by Kaushal M (kaushal) REVIEW: http://review.gluster.org/5019 (glusterd: More checks before starting rebalance/remove-brick) posted (#3) for review on master by Kaushal M (kaushal) COMMIT: http://review.gluster.org/5019 committed in master by Vijay Bellur (vbellur) ------ commit 7fd38981278c8a51587f1db5b59f8cfeed5c6e5a Author: Kaushal M <kaushal> Date: Thu May 16 16:03:52 2013 +0530 glusterd: More checks before starting rebalance/remove-brick Check if a previous remove-brick operation has been committed before starting a new rebalance/remove-brick task. Change-Id: I553e5ba64a6a352ca91032ab1a17997051a4494e BUG: 963541 Signed-off-by: Kaushal M <kaushal> Reviewed-on: http://review.gluster.org/5019 Reviewed-by: Vijay Bellur <vbellur> Tested-by: Gluster Build System <jenkins.com> I ran the 963541.t testcase from Gluster Regression Test suite and it fails and I also raised a testcase bug which is 1132496. Version-Release number of selected component (if applicable): gluster v3.5.2 How reproducible: Always Steps to Reproduce: 1. Install gluster v3.5.2 rpm on CentOS 6.4 2. clone the gluster from github and checkout v3.5.2 3. DEBUG=1 prove tests/bugs/bug-963541.t [root@fractal-0e6e glusterfs]# DEBUG=1 prove tests/bugs/bug-963541.t tests/bugs/bug-963541.t .. ========================= TEST 1 (line 7): glusterd tests/bugs/bug-963541.t .. 1/13 RESULT 1: 0 ========================= TEST 2 (line 8): pidof glusterd RESULT 2: 0 ========================= TEST 3 (line 10): gluster --mode=script volume create patchy fractal-0e6e:/d/backends/patchy1 fractal-0e6e:/d/backends/patchy2 fractal-0e6e:/d/backends/patchy3 tests/bugs/bug-963541.t .. 3/13 RESULT 3: 0 ========================= TEST 4 (line 11): gluster --mode=script volume start patchy tests/bugs/bug-963541.t .. 4/13 RESULT 4: 0 ========================= TEST 5 (line 14): gluster --mode=script volume remove-brick patchy fractal-0e6e:/d/backends/patchy1 start tests/bugs/bug-963541.t .. 5/13 RESULT 5: 0 ========================= TEST 6 (line 16): ! gluster --mode=script volume rebalance patchy start RESULT 6: 0 ========================= TEST 7 (line 17): ! gluster --mode=script volume remove-brick patchy fractal-0e6e:/d/backends/patchy2 start RESULT 7: 0 ========================= TEST 8 (line 20): gluster --mode=script volume remove-brick patchy fractal-0e6e:/d/backends/patchy1 commit volume remove-brick commit: failed: use 'force' option as migration is in progress RESULT 8: 1 ========================= TEST 9 (line 24): gluster --mode=script volume rebalance patchy start volume rebalance: patchy: failed: A remove-brick task on volume patchy is not yet committed. Either commit or stop the remove-brick task. RESULT 9: 1 ========================= TEST 10 (line 25): gluster --mode=script volume rebalance patchy stop tests/bugs/bug-963541.t .. 10/13 RESULT 10: 0 ========================= TEST 11 (line 27): gluster --mode=script volume remove-brick patchy fractal-0e6e:/d/backends/patchy2 start tests/bugs/bug-963541.t .. 11/13 RESULT 11: 0 ========================= TEST 12 (line 28): gluster --mode=script volume remove-brick patchy fractal-0e6e:/d/backends/patchy2 stop RESULT 12: 0 ========================= TEST 13 (line 30): gluster --mode=script volume stop patchy volume stop: patchy: failed: rebalance session is in progress for the volume 'patchy' RESULT 13: 1 tests/bugs/bug-963541.t .. Failed 3/13 subtests Test Summary Report ------------------- tests/bugs/bug-963541.t (Wstat: 0 Tests: 13 Failed: 3) Failed tests: 8-9, 13 Files=1, Tests=13, 17 wallclock secs ( 0.09 usr 0.02 sys + 0.26 cusr 0.50 csys = 0.87 CPU) Result: FAIL |