From 5cd2dcea515ffab31851dba80fd1437c51f0169a Mon Sep 17 00:00:00 2001 From: penguhyang Date: Wed, 19 Oct 2016 02:43:54 -0400 Subject: [PATCH] fix setting the ipmi info incorrectly in the site table causes infinite loop --- xCAT-server/lib/perl/xCAT/IPMI.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/IPMI.pm b/xCAT-server/lib/perl/xCAT/IPMI.pm index a4e3cf5cd..bb332bb13 100644 --- a/xCAT-server/lib/perl/xCAT/IPMI.pm +++ b/xCAT-server/lib/perl/xCAT/IPMI.pm @@ -864,8 +864,10 @@ sub got_rakp2 { return; } if ($rmcp_codes{$byte}) { + $self->{sessionestablishmentcontext} = STATE_FAILED; $self->{onlogon}->("ERROR: " . $rmcp_codes{$byte}, $self->{onlogon_args}); #TODO: errors } else { + $self->{sessionestablishmentcontext} = STATE_FAILED; $self->{onlogon}->("ERROR: $byte code on opening RMCP+ session", $self->{onlogon_args}); #TODO: errors } return 9;