Whamcloud - gitweb
LU-18723 hsm: sanity-hsm 500 hung in llapi_hsm_copytool_recv 84/58084/5
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 14 Feb 2025 09:16:56 +0000 (17:16 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Mar 2025 08:06:37 +0000 (08:06 +0000)
commit95c035b47a303df0752e9c965bc4db6de4af862a
treeab03d62e2147f94918a12201b128568aa52e7cbd
parent194102b8319cf5d70f19f2b669f91e9b3f6ea49b
LU-18723 hsm: sanity-hsm 500 hung in llapi_hsm_copytool_recv

sanity-hsm hung in test_500 in llapi_hsm_test test100.
The bug can be reproduced by the following test script:
ONLY="411 500" REFORMAT=yes ./sanity-hsm.sh

The reason is that the previous test case 411 does not cleanup
clearly and failed to unregister the HSM agent due to the
permission under the active rbac role and return -EPERM:
mdt_hsm_ct_unregister() {
...
if (!mdt_hsm_is_admin(info))
GOTO(out, rc = -EPERM);
...

This bug can easily be solved by making sure nodemap is always removed
before the copytool is cleaned up.

Test-Parameters: trivial testlist=sanity-hsm
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I093775eeaf39b4d2671e3a05e41f33a9e1d8ec5e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58084
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: Robert Read <rread@ddn.com>
Reviewed-by: Robert Read <rread@ddn.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-hsm.sh