Skip to content

Commit

Permalink
sshXtermIPMI: Retry connecting IPMI SOL 3 times
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucha committed Feb 29, 2024
1 parent 31c3389 commit 406f764
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion consoles/sshXtermIPMI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ sub activate ($self) {
($ipmi_response =~ /SOL payload already de-activated/);
}

$self->callxterm($cstr, "ipmitool:$testapi_console");
for my $retry (0 .. 2) {
eval { $self->callxterm($cstr, "ipmitool:$testapi_console") };
return unless $@;
die $@ unless $@ ~= m/err:/;
bmwqemu::diag("IPMI sol activate try #$retry: $@");
}

die $@;
}

sub reset ($self) {
Expand Down

0 comments on commit 406f764

Please # to comment.