Vcenter Cloud is down with error "OBJECT REFERENCE IS EMPTY"
search cancel

Vcenter Cloud is down with error "OBJECT REFERENCE IS EMPTY"

book

Article ID: 380398

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

  • Vcenter Cloud is down with error "OBJECT REFERENCE IS EMPTY"

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:

     
    {'object_uuid': ['This field cannot be blank.']}





 

Cause

  • In vCenter, the Data Center is named datacenter.

 

  • In Avi, the Data Center is also shown as Datacenter.

 

This issue occurs because Avi Controller 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

Resolution:

  • Restart the Cloud Connector

    • If the issue persists after ensuring name consistency, restart the cloud connector to clear any residual issues. Use the following command in the CLI
      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.