Whamcloud - gitweb
LU-14668 lnet: don't delete peer created by Lustre 32/51132/3
authorAmir Shehata <ashehata@whamcloud.com>
Thu, 6 May 2021 06:02:22 +0000 (23:02 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Aug 2023 06:19:54 +0000 (06:19 +0000)
commit26d11f254795a2869ae30a7e5d6ebf2bee59f879
tree06e501db2a0c5712a0319b0fa0a1091675550f97
parentf63e87f0a88a856d5cc38039afef704676ff5521
LU-14668 lnet: don't delete peer created by Lustre

Peers created by Lustre have their primary NIDs locked.
If that peer is deleted, it'll confuse lustre. So when manually
deleting a peer using:
   lnetctl peer del --prim_nid ...
We must continue to preserve the primary NID. Therefore we delete
all the constituent NIDs, but keep the primary NID. We then
flag the peer for rediscovery.

Lustre-change: https://review.whamcloud.com/43565
Lustre-commit: 7cc5b4329fc2eecbf09dbda85efe58f4ad5a32b9

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I34eef9b0049435a01fde87dc8263dd50f631c551
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51132
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/peer.c