Additionally, the cloud status may randomly change to red, and the error "OBJECT REFERENCE IS EMPTY" appears. The issue is related to discrepancies between the data center name in VMware vCenter and Avi.
When attempting to edit or save the cloud in VMware vCenter/vSphere, you may encounter the following error message:
This issue occurs because NSX ALB does not support the renaming of the data center in vCenter. If the name of the data center in vCenter and Avi are not identical, it can lead to synchronization issues, which causes the cloud status to show as down and triggers errors like "OBJECT REFERENCE IS EMPTY."
Resolution:
Verify Data Center Name Consistency:
Check for Avi Version Compatibility:
Restart the Cloud Connector
systemctl restart cloudconnectorgo.service
Conclusion: To resolve the "OBJECT REFERENCE IS EMPTY" error, ensure that the Data Center name in vCenter and Avi are the same. If changes to the Data Center name in vCenter are unavoidable, ensure both systems are synchronized to prevent cloud status errors and other related issues.