From bebac9a567c055c6735ae09300f3422b23088dba Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 27 Mar 2017 17:13:23 -0400 Subject: [PATCH] Have FPC process handle failure to abort --- xCAT-server/lib/xcat/plugins/ipmi.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index a5e6010dc..7031c41bf 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -2072,8 +2072,12 @@ sub abort_fpc_update { } sub fpc_update_aborted { + if ($_[0]->{code}) { + xCAT::SvrUtils::sendmsg("Unexpected condition, restarting device", $callback, $sessdata->{node}, %allerrornodes); + $sessdata->{ipmisession}->subcmd(netfn => 0x2e, command => 0xcc, data => [0x2e, 0xcc, 0x5e, 0x2b, 0, 6, 0x43, 0], callback => \&fpc_update_aborted, callback_args => $sessdata); + } check_rsp_errors(@_); - return; + exit 1; } sub fpc_firmxfer_watch {