Whamcloud - gitweb
LU-15112 mgc: do not ignore target registration failure 59/45259/15
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Wed, 15 Dec 2021 10:26:02 +0000 (13:26 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 22:00:07 +0000 (22:00 +0000)
commitcefabee52586f443bfd5163f6ac0b5e1b56a9db7
tree1bbd60108808b132c7b72646820bac57d201929d
parent94f3f1b511609fa190cee64c7e8244f21ef70792
LU-15112 mgc: do not ignore target registration failure

A serious target registation failure with LDD_F_ERROR
flag set is ignored by target, it makes possible
registreting new target with already used index;
Writeconf flag should be encoded in fs label regardless
the "first_time" flag, otherwise target cannot be registered
after initial registration failure.

HPE-bug-id: LUS-8752
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: If051199d3dbafc8f8102f3daf086de01bc5c5f98
Reviewed-on: https://review.whamcloud.com/45259
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mgc/mgc_request.c
lustre/mgs/mgs_llog.c
lustre/obdclass/obd_mount_server.c
lustre/tests/conf-sanity.sh
lustre/utils/mkfs_lustre.c