Symptoms: The install_image task failed while applying the 22.1.3-2p6 patch
Cause
The issue happens when upgrading from 22.1.3-2p2/2p3/2p4/2p5 to 22.1.3-2p6.
The Controller has numerous file changes in 22.1.3-2p6, as a result installing the patch is taking longer (in this case, more than 5 minutes).
We are terminating the InstallPatchImage task after the 5-minute timeout.
Resolution
The fix will be delivered in 22.1.3-2p7.
Workaround:
Step-1: The timeout for the install_patch_image tasks needs to be increased (from 5 to 20 minutes).
# Login to controller and run below command in sudo mode: $> sed -i 's/install_patch_image", timeout=5/install_patch_image", timeout=25/g' /opt/avi/python/lib/avi/upgrade/upgrade_tasks.py
Step-2: Restart the Upgrade Coordinator Service.
service upgrade-coordinator restart
Step-3: After the upgrade completes, the above two steps need to be repeated (to make sure any future patch upgrades from 2p6 do not face the same issue)
Additional Information
Impact/Risks:
The patch process gets aborted and it is not applied.