Whamcloud - gitweb
LU-17687 utils: Netlink doesn't return for missing MGS device 81/55881/2
authorJames Simmons <jsimmons@infradead.org>
Mon, 29 Jul 2024 15:30:56 +0000 (11:30 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 22:00:23 +0000 (22:00 +0000)
commite67edc5fc9ed83aa140ab2ce798db154a450c0a0
tree0e463076ed417f478b49f0f30a27c4f81a6f618e
parent7fa5e8f8c4bb09a39a141d417b1e9d0a661b3dee
LU-17687 utils: Netlink doesn't return for missing MGS device

If the MGS is down then yaml_get_device_index() will fail to
contact the Netlink layer on the MGS server. When it fails
the bool done is still set to true which causes it to go into
a loop. The proper solution is to break on emitter failure of
any kind to the end of the function to cleanup the parser
and netlink socket.

Change-Id: Ia25000dd86fd2c5f46f5de24f9a5f391c373fea4
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55881
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lustre_cfg.c