Skip to content

Commit f803ced

Browse files
bf-upgrade.env/bmc: CEC activation is not required
CEC is activated automatically. Signed-off-by: Vladimir Sokolovsky <[email protected]>
1 parent 7f4a0b4 commit f803ced

File tree

1 file changed

+5
-7
lines changed
  • src/bf-upgrade.env

1 file changed

+5
-7
lines changed

src/bf-upgrade.env/bmc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ update_bmc_fw()
465465
fi
466466
elif [ "$BMC_FIRMWARE_STAGED" == "yes" ]; then
467467
post_bmc_install_message="INFO: BMC firmware was staged"
468-
if [ "$ACTIVATION_FLOW" -ne 1 ]; then
468+
if [ "$ACTIVATE_FLOW" -ne 1 ]; then
469469
post_bmc_install_message="${post_bmc_install_message}. BMC Firmware activation is required"
470470
fi
471471
log "${post_bmc_install_message}"
@@ -827,8 +827,6 @@ bmc_components_update()
827827
if [[ "$UPDATE_CEC_FW" == "yes" && "$BMC_LINK_UP" == "yes" ]]; then
828828
update_cec_fw
829829
update_progress cec_fw $?
830-
ilog "Activating CEC firmware. It is required before BMC firmware update due to CEC limitations."
831-
bmc_activate
832830
fi
833831

834832
if function_exists bmc_custom_action2; then
@@ -913,17 +911,17 @@ bmc_activate()
913911
output=$(curl -sSk -u $BMC_USER:"$BMC_PASSWORD" -X POST https://$BMC_IP/redfish/v1/UpdateService/Actions/Oem/NvidiaUpdateService.ActivateFirmware)
914912
status=$(echo $output | jq '."@Message.ExtendedInfo"[0].Message')
915913
if [ "$status" != "\"The request completed successfully."\" ]; then
916-
rlog "ERR Failed to activate BMC or CEC firmware."
917-
ilog "Failed to activate BMC or CEC firmware. Output: $output"
914+
rlog "ERR Failed to activate BMC firmware."
915+
ilog "Failed to activate BMC firmware. Output: $output"
918916
RC=$((RC+1))
919917
return 1
920918
else
921-
log "INFO: BMC or CEC firmware activated successfully."
919+
log "INFO: BMC firmware activated successfully."
922920
return 0
923921
fi
924922
ilog "$output"
925923
else
926-
ilog "BMC link is not up. Skipping BMC or CEC firmware activation."
924+
ilog "BMC link is not up. Skipping BMC firmware activation."
927925
RC=$((RC+1))
928926
return 1
929927
fi

0 commit comments

Comments
 (0)