Solution | When performing a firmware upgrade on a FortiGate HA cluster through FortiManager, the upgrade task may fail with an error similar to:
FGT_check_status failed: timeout
By default, the secondary unit is upgraded first during an HA upgrade. Depending on the firmware version and the changes being applied, the unit may require multiple reboots before it completes initialization and rejoins the HA cluster.
For example, changes involving hardware acceleration or NPU-related configuration may require an additional reboot to make the changes effective. During this process, the FortiGate console may display a message similar to:
Reading boot image 6298964 bytes. Initializing firewall...
System is starting...
System will reboot to make some changes effective.Â
If the additional reboot cycles, device initialization, and HA recovery take longer than the configured timeout values, FortiManager may declare the upgrade task failed and stop the upgrade process. As a result, the remaining cluster members, including the primary unit, may not be upgraded, even if the unit being upgraded eventually completes its reboot sequence successfully.
In some cases, increasing check-status-timeout alone may not resolve the issue. In a case involving multiple device reboots during an HA upgrade, increasing this timeout did not prevent the task from timing out. Increasing reboot-of-upgrade-timeout as well allowed the upgrade process to complete successfully.
To address this scenario, review the FortiManager upgrade task logs and the FortiGate reboot sequence. If the configured timeouts do not allow sufficient time for the reboot process and subsequent HA recovery, increase the relevant timeout values.
Log in to the FortiManager command line interface (CLI). Configure the upgrade timeout values. For example:
config fmupdate fwm-setting
   config upgrade-timeout
       set check-status-timeout 1800
       set reboot-of-upgrade-timeout 1800
   end
endÂ
The values are specified in seconds. In this example, both timeouts are set to 1800 seconds (30 minutes).
Perform the upgrade again from FortiManager. Monitor the upgrade task and verify that the upgraded unit completes initialization, rejoins and synchronizes with the HA cluster, and that the remaining cluster members are upgraded successfully.
 Notes: The default value of check-status-timeout is 600 seconds, with a configurable range of 1 to 6000 seconds. The default value of reboot-of-upgrade-timeout is 1200 seconds, with a configurable range of 1 to 12000 seconds. The timeout values in the example are not universal requirements. Adjust them according to the observed reboot duration, HA recovery time, and upgrade task logs. If the overall upgrade task still exceeds its configured time limit, review total-timeout under the same upgrade-timeout configuration. Its default value is 3600 seconds, with a configurable range of 1 to 86400 seconds. Increasing reboot-of-upgrade-timeout may be necessary when multiple reboot cycles occur, but verify the relevant timeout behavior before changing the settings. After the upgrade completes successfully, the timeout values can be returned to their previous settings if the increased values are no longer required.
Related document:
|