From 1c006a4162a10133418196cd1407dd07a5cc78d3 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Wed, 21 Mar 2012 07:12:47 +0000 Subject: [PATCH] fix bug 3500392: FB->console abnormal if off/on blade git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPpower.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/FSPpower.pm b/perl-xCAT/xCAT/FSPpower.pm index 3e243e09d..be10f2e45 100644 --- a/perl-xCAT/xCAT/FSPpower.pm +++ b/perl-xCAT/xCAT/FSPpower.pm @@ -292,7 +292,17 @@ sub powercmd { if ((scalar(keys %$hash) == 1) and $Rc) { push @output, [$node_name, $data, $Rc]; } else { - push @output, [$node_name,"Success", 0]; + # check the state of the blade or CEC after cec_reboot in order to let HWS realize the destination CEC had been powerd off # + #my $msg = "success"; + if ($action eq 'cec_reboot') { + sleep 0.1; + xCAT::FSPUtils::fsp_state_action (@$d[3], @$d[4], "cec_state"); + #my $state_res = xCAT::FSPUtils::fsp_state_action (@$d[3], @$d[4], "cec_state"); + #my @state_state = @$state_res[1]; + #$msg = @state_state[0]; + } + push @output, [$node_name,"Success", 0]; + #push @output, [$node_name,$msg, 0]; } } return( \@output );