vApp/VMs are in inconsistent state on VMware Cloud Director
search cancel

vApp/VMs are in inconsistent state on VMware Cloud Director

book

Article ID: 374025

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • VMs / vApps are in inconsistent state in VMware Cloud Director (VCD), however they are in powered on state in vCenter (VC).
  • VM that were migrated between two resource pools/clusters using the vSphere Client in VC are now showing an "Inconsistent status" in the VCD tenant portal. Moving these VMs back to the origin also does not fix the issue.

Environment

VMware Cloud Director 10.x

Cause

This issue can occur when there are discrepancies between power states in vCenter Server and Cloud Director.

  • The most common scenario is manual power change of VCD VMs in vCenter.
  • Other scenarios such as a HA Event may be responsible for the discrepancies.

In any scenario, Cloud Director would generally receive an event to state the Power State now differs and will try to align.

  • Once VCD begins this alignment, it is not expecting the state to vary i.e. if the VM was off, it expects it to remain off until vCenter processes it's ask to Power On.
  • Should vCenter Power On/Off outside of the VCD ask, it may leave the VM in a state where the VCD ask now contradicts the state.
  • VCD is asking for the VM to be Powered On, in VC it is already on.
  • If the VCD Alignment task fails, it will revert to it's previous state, which now contradicts the VC state, leading to an Inconsistent state in Cloud Director.

Resolution

To resolve this issue:

  1. Find a VM in <Inconsistent> state.
  2. Under General tab for the affected VM note the <Name in vSphere>.
  3. Log in to the vCenter Server.
  4. Find the VM with the name found in step 2.
  5. Right-click on the VM in vCenter Server and click Power > Shutdown Guest OS or Power Off.
  6. In the VCD UI, on the affected VM Click on All actions > Power >  Power On.

If issues persists after these steps are performed then contact Broadcom Support with details of the issue any troubleshooting steps already taken.

Additional Information

In cases where vCenter and VCD power state are both in sync (powered ON / DEPLOYED or OFF / UNDEPLOYED) for a VM, reconnect vCenter from VCD.