Whamcloud - gitweb
LU-14668 lnet: add 'force' option to lnetctl peer del 49/50149/5
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 27 Feb 2023 23:41:19 +0000 (15:41 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Mar 2023 03:29:08 +0000 (03:29 +0000)
commitf1b2d8d60c593a670b36006bcf9b040549d8c13a
treeb6c3ec177503d0ceaa35d68d80d4958b59ffdfa5
parentee67a78cf2b102230dc3a7beea2274866e643224
LU-14668 lnet: add 'force' option to lnetctl peer del

Add --force option to 'lnetctl peer del' command.
If the peer has primary NID locked, this option allows
for the peer to be deleted manually:
lnetctl peer del --prim_nid <nid> --force

Add --prim_lock option to 'lnetctl peer add' command.
If specified, the primary NID of the peer is locked
such that it is going to be the NID used to identify
the peer in communications with Lustre layer.

Test-Parameters: trivial
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Ia6001856cfbce7b0c3288cff9b244b569d259647
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50149
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c
lustre/doc/lnetctl.8
lustre/tests/sanity-lnet.sh