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:
@ -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.
|
||||
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user