Whamcloud - gitweb
LU-15112 mgc: do not ignore target registration failure
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Wed, 15 Dec 2021 10:26:02 +0000 (13:26 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 7 Dec 2023 11:11:38 +0000 (11:11 +0000)
commite1fc8896d037b836535ee42ad4f7d7333243bb44
tree0bc2e945bc5713572b56a2c98d35d440710f9dca
parentca93687047c63f2f3c751af6bca29cf3a92d7297
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.

Lustre-change: https://review.whamcloud.com/45259
Lustre-commit: cefabee52586f443bfd5163f6ac0b5e1b56a9db7

HPE-bug-id: LUS-8752
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: If051199d3dbafc8f8102f3daf086de01bc5c5f98
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53340
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@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