On upgrade from version 20.1.7 onwards to patch versions 22.1.2-2px, the SE upgrade on Azure cloud fails because certain set of instance types are not supported by Azure anymore.
Additionally, the SE upgrade fails with the error "Error while performing SE startup" and issues arise during the calculation of SE Flavor Bandwidth. The following errors are observed in the se_supervisor.log
:
[2023-01-11 05:37:05,335] ERROR [se_supervisor.run:2342] ^[[31mError while performing SE startup^[[0m
Traceback (most recent call last):
File "/opt/avi/scripts/se_supervisor.py", line 2339, in run
se_startup(cluster_state.leader, cluster_state.local_ip)
File "/opt/avi/scripts/se_supervisor.py", line 1711, in se_startup
init_hw_properties(g_se_group.connection_memory_percentage,
File "/opt/avi/scripts/se_supervisor.py", line 1609, in init_hw_properties
myfile.write('SE Flavor Bandwidth: %d\n' %(2**math.ceil(math.log2(nw_bandwidth_mbps/1000.0))))
ValueError: math domain error
[2023-01-11 05:37:05,336] INFO [se_supervisor.safe_exit:2382]
[2023-01-11 05:37:05,336] INFO [se_supervisor.safe_exit:2384] Sigkill self, forcibly terminating
[2023-01-11 05:37:06,855] INFO [se_supervisor.<module>:2729]
Azure Cloud.
Temporary Workaround:
To address the issue, the instance_type: bandwidth entry must be manually added to the cloud_instances.json file on the controller. This action should be performed with support assistance to ensure proper configuration and avoid any potential misconfigurations
Permanent Fix:
Perform the upgrade to the following versions where the fix has been applied: