From c4ab51991d1e91bb2f2f2b4fc36496d8211e9cb7 Mon Sep 17 00:00:00 2001 From: xuweibj Date: Wed, 11 Jul 2018 04:37:29 -0400 Subject: [PATCH] if not upload failed, rst is bmc not ready --- xCAT-server/lib/xcat/plugins/openbmc.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index da848f703..536c96da4 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -1066,11 +1066,12 @@ rmdir \"/tmp/\$userid\" \n"; # In that case check the rflash log file for this node and extract error from there unless ($node_info{$node}{rst}) { my $rflash_log_file = xCAT::Utils->full_path($node.".log", $::XCAT_LOG_RFLASH_DIR); - $node_info{$node}{rst} = "Firmware upload error"; # Generic default message # Extract the upload error from last line in log file my $upload_error = `tail $rflash_log_file -n1 | grep "$::FAILED_UPLOAD_MSG"`; if ($upload_error) { $node_info{$node}{rst} = $upload_error; + } else { + $node_info{$node}{rst} = "BMC is not ready"; } } push @{ $rflash_result{fail} }, "$node: $node_info{$node}{rst}";