[LU-6203] sanity-hsm test 251: FAIL: Copytool failed to stop in 20s Created: 03/Feb/15 Updated: 14/Sep/15 Resolved: 11/Mar/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.4 |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Jian Yu | Assignee: | Bruno Faccini (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 22pl, zfs | ||
| Environment: |
Lustre Build: https://build.hpdd.intel.com/job/lustre-b2_5/112/ |
||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 17337 | ||||||||||||
| Description |
|
sanity-hsm test 251 failed as follows: CMD: shadow-26vm10 pkill -INT -x lhsmtool_posix CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 Copytool still running on shadow-26vm10 CMD: shadow-26vm10 pgrep -x lhsmtool_posix shadow-26vm10: 7902 sanity-hsm test_251: @@@@@@ FAIL: Copytool failed to stop in 20s ... Maloo reports: |
| Comments |
| Comment by Jian Yu [ 03/Feb/15 ] |
|
This is a regression failure introduced by the following commit in Lustre b2_5 build #112: Commit 97fc8c8caf41e9d74cdb1e373f19c907ed8481b2 by Oleg Drokin LU-5622 tests: check/wait for copytool death Seems that copytool death/kill may take more time so this condition must be handled in sanity-hsm copytool_cleanup() function to avoid situations where copytool will then not be restarted, but only signaled, in next copytool_setup(). This patch is back-ported from the following one: Lustre-commit: 6facf3953b170832200ca9c111398da8feecd281 Lustre-change: http://review.whamcloud.com/11922 Signed-off-by: Bruno Faccini <bruno.faccini@intel.com> Change-Id: Ia817936eb030386dbe539ec8d5297812f4b6fff2 Reviewed-on: http://review.whamcloud.com/12967 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: James Nunez <james.a.nunez@intel.com> Reviewed-by: Henri Doreau <henri.doreau@cea.fr> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Hi Bruno, |
| Comment by Jian Yu [ 03/Feb/15 ] |
|
The zfs full group test session was not run on master branch, so we do not know whether the failure exists on master branch or not for now. |
| Comment by Bruno Faccini (Inactive) [ 03/Feb/15 ] |
|
Yu Jian, thanks for all this research work already!! |
| Comment by Andreas Dilger [ 03/Feb/15 ] |
|
Bruno, Yu Jian, is this also happening on master, or only on b2_5? |
| Comment by Bruno Faccini (Inactive) [ 04/Feb/15 ] |
|
Andreas: no not on master. Based on Maloo reports search, latest test_251 sub-test failures in master have occurred about a year ago and at this time, my patch for There has only been a bunch of 8 failures, between 2014-12-30 07:31:46 UTC and 2015-01-30 14:05:49 UTC and after my patch for I have still not been able to reproduce the problem running with b2_5 build #112, that has been reported to trigger the problem. So could this be the consequence of some ZFS/Network config/performance related causing the file's dirty page flush, occuring at lock cancel time, to take more than 20s under some circumstances ? Also, I wonder if the priority of this ticket should be kept as Blocker ?? |
| Comment by Gerrit Updater [ 04/Feb/15 ] |
|
Faccini Bruno (bruno.faccini@intel.com) uploaded a new patch: http://review.whamcloud.com/13646 |
| Comment by Bruno Faccini (Inactive) [ 04/Feb/15 ] |
|
http://review.whamcloud.com/13646 implements early lock cancel solution to speed-up copytool death. |
| Comment by Jian Yu [ 04/Feb/15 ] |
|
The zfs full group test session was not run on master branch. Maybe this is the reason that we did not search out failure instances on master branch on Maloo. In the following report on b2_5 branch, many sub-tests failed with this issue: |
| Comment by Jian Yu [ 05/Feb/15 ] |
|
The failure started affecting patch review testing on Lustre b2_5 patches: |
| Comment by Bruno Faccini (Inactive) [ 05/Feb/15 ] |
|
Concerning the "https://testing.hpdd.intel.com/test_sets/97fd06d8-ac1c-11e4-992b-5254006e85c2" case, the 'Copytool failed to stop in 20s ...' errors/symptoms there looks more as an additional consequence (due to cleanup()/copytool_cleanup() execute as a trap, set in copytool_cleanup(), upon exit) of previous problem within same sub-test or even preceeding sub-tests : _ 1st sub-test reported to have failed for 'Copytool failed to stop in 20s ...' is test_33, but it has failed previously with "sanity-hsm test_33: @@@@@@ FAIL: request on 0x200007931:0x2b:0x0 is not SUCCEED on mds1" waiting for archive to complete/succeed ... _ 2nd sub-test reported to have failed for 'Copytool failed to stop in 20s ...' is test_60, but it has failed previously with "sanity-hsm test_60: @@@@@@ FAIL: Timed out waiting for progress update!" waiting for a progress update during archive. _ 3rd sub-test reported to have failed for 'Copytool failed to stop in 20s ...' is test_70, but it is the next just after test_60 and since its 1st cmd is a copytool_cleanup that is likely to have encountered the same problem than the preceeding. _ 4th sub-test reported to have failed for 'Copytool failed to stop in 20s ...' is test_71, but it is the next just after test_70 and since its 1st cmd is a copytool_cleanup that is likely to have encountered the same problem than the 2 preceeding. _ 5th sub-test reported to have failed for 'Copytool failed to stop in 20s ...' is test_103, and according to its specific logs it is the only one that seems to have triggered the same scenario (huge delay during lock flush/cancel processing) I have already described in my previous update. So it may be an other potential subject to the same change than for test_251. After more Lustre debug log reading, it seems that the "huge delay during lock flush/cancel processing" that seems to be the root cause of the problem is mainly on the OSS side, after the Client has handled the Blocking callback and sent back its Cancel of lock to the OSS. The thread handling it on the OSS can then spend multiple tens of seconds in ldlm_request_cancel() |
| Comment by nasf (Inactive) [ 24/Feb/15 ] |
|
Another failure instance on b2_5: |
| Comment by Bruno Faccini (Inactive) [ 24/Feb/15 ] |
|
Last 2 failures occurrences again show the same delay of copytool death/cleanup due to being stuck, during tens of seconds, because waiting for lock flush/cancel (between Client, who have created file and asked for its archive, and OST[s]) upon archiving file. This seem to only occur on ZFS until now, and I have verified that my patch, adding a cancel_lru_locks() before hsm_archive allows the copytool copy to start immediatelly, which is normally delayed to allow for previous Client's lock flush/cancel. |
| Comment by Gerrit Updater [ 04/Mar/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13646/ |
| Comment by Peter Jones [ 11/Mar/15 ] |
|
Landed for 2.8 |