From 3797cd99d8ecd0e983abcb40c2120ffdfeb5284d Mon Sep 17 00:00:00 2001 From: caomengmeng Date: Tue, 24 May 2016 04:58:44 -0400 Subject: [PATCH] update xCATreg --- xCAT-server/share/xcat/tools/xCATreg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/tools/xCATreg b/xCAT-server/share/xcat/tools/xCATreg index 879790209..04b79c024 100755 --- a/xCAT-server/share/xcat/tools/xCATreg +++ b/xCAT-server/share/xcat/tools/xCATreg @@ -298,7 +298,11 @@ sub mn_install { &runcmd("makedhcp -n"); &runcmd("makedns -n"); &runcmd("chdef $confkeys{$mn} status="); - &runcmd("lsdef -l $confkeys{$mn}|grep status"); + if($?){ + send_msg(0, "[$mn->$confkeys{$mn}][mn_install] Failed to change MN status in current control node"); + return 1; + } + &runcmd("nodeset $confkeys{$mn} osimage=$osimage"); if( $arch =~ /x86_64/ || $arch =~ /ppc64le/ || $arch =~ /ppc64el/){