From: Chris Horn Date: Fri, 22 Oct 2021 00:13:19 +0000 (+0000) Subject: LU-15138 lnet: Fail peer add for existing gw peer X-Git-Tag: 2.14.56~84 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=79a4b69adb1e365b16eb8521c79ef1c6985c6b91;hp=79a4b69adb1e365b16eb8521c79ef1c6985c6b91 LU-15138 lnet: Fail peer add for existing gw peer If there's an existing peer entry for a peer that is being added via CLI, and that existing peer was not created via the CLI, then DLC will attempt to delete the existing peer before creating a new one. The exit status of the peer deletion was not being checked. This results in the ability to add duplicate peers for gateways, because gateways cannot be deleted via lnetctl unless the routes for that gateway have been removed first. Test-Parameters: trivial testlist=sanity-lnet Signed-off-by: Chris Horn Change-Id: I9b7864a2bd21540336f72d96e180c89bd0aae8dc Reviewed-on: https://review.whamcloud.com/45337 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alexander Boyko Reviewed-by: Andriy Skulysh Reviewed-by: Oleg Drokin ---