The restore of Avi Load Balancer config fails in 30.2.x and 31.1.x version with the error controller.pkg does not exist in [node1.controller.local]
[admin:####]: > restore configuration file /path/to/backup/<backup_file>.json skip_warnings
Please enter the passphrase for the configuration:
+---------------+--------+---------------+---------------------------+--------------+-----------------------------+-------+----------------------------------------------------------+
| Name | Tenant | Cloud | State | Operation | Image | Patch | Reason |
+---------------+--------+---------------+---------------------------+--------------+-----------------------------+-------+----------------------------------------------------------+
| cluster-0-1 | admin | - | UPGRADE_PRE_CHECK_WARNING | EVAL_RESTORE | 31.1.1-9122-20250127.143602 | - | Use 'show upgrade status detail filter pre_check_status' |
| Default-Group | admin | Default-Cloud | UPGRADE_FSM_INIT | None | 31.1.1-9122-20250127.143602 | - | - |
+---------------+--------+---------------+---------------------------+--------------+-----------------------------+-------+----------------------------------------------------------+
[admin:####]]: > show upgrade status detail filter pre_check_status
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
| uuid | cluster-######-####-####-####-######## |
| name | cluster-0-1 |
| node_type | NODE_CONTROLLER_CLUSTER |
| upgrade_readiness | |
| state | |
| state | UPGRADE_PRE_CHECK_ERROR |
| last_changed_time | Thu Jul 31 11:31:33 2025 ms(170712987) UTC |
| checks[1] | |
| check_code | SYSERR_MC_CONFIG_IMAGES_ERR |
| description | Required images are missing in the controller. |
| details[1] | Image(s): 31.1.1-9007-2p3-20250523.113042 are missing on the controller. Please |
| | upload them. |
| state | UPGRADE_PRE_CHECK_ERROR |
| start_time | 2025-07-31 11:31:15 |
| end_time | 2025-07-31 11:31:15 |
| duration | 0 sec |
| checks[2] | |
| check_code | SYSERR_MC_CONTROLLER_PACKAGE_ERR |
| description | 'System package does not exist.' |
| details[1] | Package image://31.1.1-9122-20250127.143602/controller.pkg does not exist in [no |
| | de1.controller.local] |
| state | UPGRADE_PRE_CHECK_ERROR |
| start_time | 2025-07-31 11:31:15 |
| end_time | 2025-07-31 11:31:15 |
| duration | 0 sec |
[admin:######]: > show image
+-----------------------------+--------------------------------------------+-------------------+---------------------+
| Name | UUID | Type | State |
+-----------------------------+--------------------------------------------+-------------------+---------------------+
| 31.1.1-9122-20250127.143602 | image-#######-####-####-####-####### | IMAGE_TYPE_SYSTEM | IMAGE_FSM_COMPLETED |
+-----------------------------+--------------------------------------------+-------------------+---------------------+
Example: If the controller is on 31.1.1, download the upgrade package for 31.1.1
Example. If the config was backed up in 31.1.1-2p3, upload the 2p3 package before continuing with the restore.
[admin:######]: > upload image filename /path/to/upgrade/file/controller-31.1.1-9122.pkg
[admin:######]: > upload image filename /path/to/patch/file/avi_patch-31.1.1-2p3-9007.pkg
4) [admin:######]: > show image
+---------------------------------+--------------------------------------------+-------------------+---------------------+
| Name | UUID | Type | State |
+---------------------------------+--------------------------------------------+-------------------+---------------------+
| 31.1.1-9122-20250127.143602 | image-#######-####-####-####-####### | IMAGE_TYPE_SYSTEM | IMAGE_FSM_COMPLETED |
| 31.1.1-9007-2p3-20250523.113042 | image-#######-####-####-####-####### | IMAGE_TYPE_PATCH | IMAGE_FSM_COMPLETED |
+---------------------------------+--------------------------------------------+-------------------+---------------------+
root@######:# cd /host/pkgs/31.1.1-9122-20250127.143602/
root@######:/host/pkgs/31.1.1-9122-20250127.143602# ls -ltr
total 5721576
-rw-r--r-- 1 root root 4275365322 Jul 31 11:43 controller.pkg
-rw-r--r-- 1 root root 71079266 Jul 31 11:44 azure.pkg
-rw-r--r-- 1 root root 165 Jul 31 11:44 VERSION
-rw-r--r-- 1 root root 1512431202 Jul 31 11:44 se.pkg
[admin:####] restore configuration file /path/to/backup/<backup_file>.json skip_warnings
[admin:####]]: > show upgrade status
+---------------+--------+---------------+----------------------------+-----------+-----------------------------+---------------------------------+--------+
| Name | Tenant | Cloud | State | Operation | Image | Patch | Reason |
+---------------+--------+---------------+----------------------------+-----------+-----------------------------+---------------------------------+--------+
| cluster-0-1 | admin | - | UPGRADE_FSM_WAITING : (0)% | RESTORE | 31.1.1-9122-20250127.143602 | 31.1.1-9007-2p3-20250523.113042 | - |
| Default-Group | admin | Default-Cloud | UPGRADE_FSM_INIT | None | 31.1.1-9122-20250127.143602 | - | - |
+---------------+--------+---------------+----------------------------+-----------+-----------------------------+---------------------------------+--------+
[admin:####]]: > show upgrade status
+-------------+--------+-------+---------------------------------+-----------+-------+-------+--------+
| Name | Tenant | Cloud | State | Operation | Image | Patch | Reason |
+-------------+--------+-------+---------------------------------+-----------+-------+-------+--------+
| cluster-0-1 | - | - | UPGRADE_FSM_IN_PROGRESS : (12)% | RESTORE | - | - | - |
+-------------+--------+-------+---------------------------------+-----------+-------+-------+--------+
[admin:10-91-5-38]: > show upgrade status
+----------------+--------+---------------+---------------------------+------------+-----------------------------+---------------------------------+----------------------------------------------------------+
| Name | Tenant | Cloud | State | Operation | Image | Patch | Reason |
+----------------+--------+---------------+---------------------------+------------+-----------------------------+---------------------------------+----------------------------------------------------------+
| cluster-0-1 | admin | - | UPGRADE_FSM_COMPLETED | RESTORE | 31.1.1-9122-20250127.143602 | 31.1.1-9007-2p3-20250523.113042 | - |
| Default-Group | admin | Default-Cloud | UPGRADE_PRE_CHECK_WARNING | EVAL_PATCH | 31.1.1-9122-20250127.143602 | - | Use 'show upgrade status detail filter pre_check_status' |
| SE311-se-cuxwt | admin | Default-Cloud | UPGRADE_FSM_INIT | None | 31.1.1-9122-20250127.143602 | - | - |
+----------------+--------+---------------+---------------------------+------------+-----------------------------+---------------------------------+----------------------------------------------------------+