2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 00:00:12 +00:00

Better message for --recover option

This commit is contained in:
Mark Gurevich
2018-03-22 14:47:05 -04:00
parent fa5c6e3f37
commit 20e7dcd7de
3 changed files with 6 additions and 2 deletions

View File

@ -236,7 +236,7 @@ This delete option will delete update image from BMC. It expects an ID as the in
OpenPOWER BMC specific (using IPMI):
Used for IBM Power S822LC for Big Data systems only. Used to recover the BMC with a BMC image downloaded from FixCentral.
Used for IBM Power S822LC for Big Data systems only. Used to recover the BMC with a BMC image downloaded from FixCentral. This option will only work if BMC is in "Brick protection" state.

View File

@ -173,7 +173,7 @@ Used to recover the flash image in the permanent side of the chip to the tempora
OpenPOWER BMC specific (using IPMI):
Used for IBM Power S822LC for Big Data systems only. Used to recover the BMC with a BMC image downloaded from FixCentral.
Used for IBM Power S822LC for Big Data systems only. Used to recover the BMC with a BMC image downloaded from FixCentral. This option will only work if BMC is in "Brick protection" state.
=item B<--retry=>I<count>

View File

@ -2518,6 +2518,10 @@ sub do_rflash_process {
my $cmd = "/usr/bin/tftp $bmcip -m binary -c put $recover_image ".basename($recover_image);
my $output = xCAT::Utils->runcmd($cmd, -1);
if ($::RUNCMD_RC != 0) {
if ($output =~ "timed out") {
# Time out running tftp command. One possible reason is BMC not in "brick protection" mode
$output .= " BMC might not be in 'Brick protection' state";
}
$callback->({ error => "Running tftp command \'$cmd\' failed. Error Code: $::RUNCMD_RC. Output: $output.",
errorcode => 1 });
exit(1);