From dbb9cca1569a7f68751c50accf6a63b8f27c81bc Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Wed, 25 Oct 2017 11:57:17 -0400 Subject: [PATCH] Inform the user of the workaround when running rsetboot --- xCAT-server/lib/xcat/plugins/openbmc.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index d013fb31a..2cc0a34ff 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -1383,8 +1383,12 @@ sub deal_with_response { if ($node_info{$node}{cur_status} eq "RFLASH_UPDATE_ACTIVATE_RESPONSE") { # If 403 is received for an activation, that means the activation ID is incorrect $error = "Invalid ID provided to activate. Use the -l option to view valid firmware IDs."; + } elsif ($node_info{$node}{cur_status} eq "RSETBOOT_ENABLE_RESPONSE" ) { + # If 403 is received setting boot method, API endpoint changed in 1738 FW, inform the user of work around. + $error = "Invalid endpoint used to set boot method. If running firmware < ibm-v1.99.10-0-r7, 'export XCAT_OPENBMC_FIRMWARE=1736' and retry."; + } else { - $error = "$::RESPONSE_FORBIDDEN - This function is not yet available in OpenBMC firmware."; + $error = "$::RESPONSE_FORBIDDEN - Requested endpoint does not exists and may indicate function is not yet supported by OpenBMC firmware."; } } elsif ($response_info->{'data'}->{'description'} =~ /path or object not found: (.+)/) { #