From 55c3a0ef040a7372b3cdd13c7818808b978f1f75 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 23 Aug 2012 18:21:25 +0000 Subject: [PATCH] Sometimes IPMI 2 implementations randomly complain about our math being wrong once in a few thousand tries, start over from scratch should this occur git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/IPMI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/IPMI.pm b/xCAT-server/lib/perl/xCAT/IPMI.pm index 01b5a5e97..891cb55ae 100644 --- a/xCAT-server/lib/perl/xCAT/IPMI.pm +++ b/xCAT-server/lib/perl/xCAT/IPMI.pm @@ -652,7 +652,7 @@ sub got_rakp4 { } $byte = shift @data; unless ($byte == 0x00) { - if ($byte == 0x02 and $self->{logontries}) { # 0x02 is 'invalid session id', seems that some ipmi implementations sometimes expire a temporary id before I can respond, start over in such a case + if (($byte == 0x02 or $byte == 15) and $self->{logontries}) { # 0x02 is 'invalid session id', seems that some ipmi implementations sometimes expire a temporary id before I can respond, start over in such a case $self->relog(); return; } @@ -692,7 +692,7 @@ sub got_rakp2 { } $byte = shift @data; unless ($byte == 0x00) { - if ($byte == 0x02 and $self->{logontries}) { # 0x02 is 'invalid session id', seems that some ipmi implementations sometimes expire a temporary id before I can respond, start over in such a case + if (($byte == 0x02 or $byte == 15) and $self->{logontries}) { # 0x02 is 'invalid session id', seems that some ipmi implementations sometimes expire a temporary id before I can respond, start over in such a case $self->relog(); return; }