Whamcloud - gitweb
LU-16188 mdt: fix incompatible HSM request handling 58/48658/6
authorAurelien Degremont <degremoa@amazon.com>
Mon, 26 Sep 2022 12:27:37 +0000 (12:27 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Feb 2023 06:27:07 +0000 (06:27 +0000)
commitb13a5b351e71e4e7b0016e2a1426b1a21bf783c4
tree95eb34ab4dbfddf0dee736f2f895b11eb6c6154c
parenta3a51806ef361f55421a1bc07f64c78730ae50d5
LU-16188 mdt: fix incompatible HSM request handling

When the coordinator tries to send multiple hsm actions in
a single request, if one of the request fails incompat checks all the
requests are marked as STARTED but none of the requests are
sent to the agent.

Return EAGAIN from mdt_agent_hsm_send() so that the coordinator would
not mark the requests as STARTED. It would retry them later.

Add a sanity-hsm test.

Test-Parameters: trivial testlist=sanity-hsm
Change-Id: Id4fb858021be6dc6b0cbcf140c3f2051efce57ad
Signed-off-by: Jeya Ganesh Babu Jegatheesan <jeyaga@amazon.com>
Signed-off-by: Aurelien Degremont <degremoa@amazon.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48658
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Nikitas Angelinas <nikitas.angelinas@hpe.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_hsm_cdt_agent.c
lustre/tests/sanity-hsm.sh