UI rollback upgrade options discrepancy
search cancel

UI rollback upgrade options discrepancy

book

Article ID: 373227

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

Under Administration > Controller > System Update the "RollBack" options presented are not clear and do not match the last upgrade operation.

Per the last upgrade operation the system was upgraded from 20.1.6-2p14 to 22.1.5-2p2.   The rollback "version" should show 22.1.5-2p2 -> 20.1.6-2p14, but it shows 201.6-2p1 instead.  The clear patch options should not appear as the last operation was a system upgrade, not a patch.

show upgrade status detail include_history

+------------------------+----------------------------------------------------------------------------------+
| Field                  | Value                                                                            |
+------------------------+----------------------------------------------------------------------------------+
| uuid                   | cluster-uuid                                     |
| name                   | cluster                                                                          |
| node_type              | NODE_CONTROLLER_CLUSTER                                                          |
| upgrade_ops            | UPGRADE                                                                          |
| version                | 22.1.5-9093-20231010.145553                                                      |
| image_ref              | 22.1.5-9093-20231010.145553                                                      |
| patch_version          | 2p2                                                                              |
| patch_image_ref        | 22.1.5-9016-2p2-20240119.042122                                                  |
| previous_version       | 20.1.6-9132-20210615.024303                                                      |
| previous_image_ref     | 20.1.6-9132-20210615.024303                                                      |


| history[3]                       |                                                                                  |
|   ops                            | PATCH                                                                            |
|   state                          |                                                                                  |
|     state                        | UPGRADE_FSM_COMPLETED                                                            |
|   version                        | 20.1.6-9132-20210615.024303                                                      |
|   patch_version                  | 2p14                                                                             |

Environment

Versions 22.1.4, 22.1.5, 22.1.6, 30.1.x, 30.2,x

Cause

The UI is gathering incorrect values from the /api/upgradestatusinfo API endpoint.

Resolution

The UI RollBack options will be amended to reflect the last upgrade or patch operation to accurately present the rollback operation version/patch_version.

Additional Information

Alternatively you can run the CLI commands below without "skip_warnings" to dry run the upgrade and use the command 'show upgrade status detail filter pre_check_status' to determine if the rollback is valid and identify the version/patch the system will be rolled back to in the output under details.

> rollback controller
> rollback segroup
> rollback system

> rollbackpatch system
> rollbackpatch controller
> rollbackpatch segroup

Details example:

| checks[3] | |
| check_code | SYSERR_CHECK_CONTROLLER_VERSION_ROLLBACK |
| description | 'Checking and inform from-and-to versions prior to rollback operations.' |
| details[1] | The current version on (cluster-0-1/cluster-uuid |
| | ) is (22.1.4-9196-20230623.082030) and the previous version is (22.1.3-9096-2023 |
| | 0131.213854). |