From a811568afbc951d8835d990cdff3cd49137599c2 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Thu, 11 May 2017 03:37:41 -0400 Subject: [PATCH] Fix issue 2803: rinv ocasionally produces BMC error without telling which node was in error --- xCAT-server/lib/xcat/plugins/ipmi.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 102061a59..cc510278a 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -4525,8 +4525,9 @@ sub extractfield { #idx is location of the type/length byte, returns something a my $language = shift; my $data; if ($idx >= scalar @$area) { - xCAT::SvrUtils::sendmsg([ 1, "Error parsing FRU data from BMC" ], $callback); - return -1, undef, undef; + # The global_sessdata store the sessdata for a node when parsefru, and it is cleaned after parsefru + xCAT::SvrUtils::sendmsg([ 1, "Error encountered when parsing FRU data from BMC" ], $callback, $global_sessdata->{node}, %allerrornodes); + return 0, undef, undef; } my $size = $area->[$idx] & 0b00111111; my $encoding = ($area->[$idx] & 0b11000000) >> 6;