From f36e659715e9ae031407db379ba91a24b88c3909 Mon Sep 17 00:00:00 2001 From: bybai Date: Mon, 12 Mar 2018 23:10:24 -0400 Subject: [PATCH] enhance mlnxofed_ib_install.v2 return 1 when service openibd restart failed --- .../share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 index dc4df9918..cc1970044 100755 --- a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 +++ b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 @@ -328,6 +328,10 @@ EOF #force openibd load all modules in need, restart again sleep 1 service openibd restart + if [ "$?" != "0" ] ;then + echo "[Error] service openibd restart failed." + exit 1 + fi fi if [[ "$NODESETSTATE" == "genimage" ]]; then