Controller Rollback from 31.x to older versions fails with error "Enum SYSERR_CHECK_PATCH_PACKAGE not found in enum type Syserr"
book
Article ID: 399931
calendar_today
Updated On:
Products
VMware Avi Load Balancer
Issue/Introduction
After upgrading the AVI Controller to version 31.x, users may encounter a blocker when attempting to roll back to the previous version. This typically occurs under the following conditions:
A Controller-only upgrade is performed from an older version to 31.x.
An SE Group upgrade precheck (upgrade segroup prechecks_only image_ref <image_file>) is initiated, or the SE Group upgrade is started and fails with 'UPGRADE_PRE_CHECK_ERROR' due to new must checks introduced in 31.x.
Subsequently, an attempt is made to rollback the Controller, which unexpectedly fails and returns the state 'UPGRADE_FSM_ABORTED'
Upon inspecting the upgrade process using 'show upgrade status detail', the following error may be observed: "Error while running task: RestoreSEData: Enum SYSERR_CHECK_PATCH_PACKAGE not found in enum type Syserr"
Environment
Avi Load Balancer 31.x
Resolution
Download the script "clear_upgrade_readiness.py" attached with this article
Use WinSCP or any FTP tool to upload the script to the leader controller node. Place it under the path: /tmp/clear_upgrade_readiness.py
SSH into the leader controller and run the script from the bash mode