VMHA Stuck in "Waiting"

Problem

VMHA remains stuck in the "waiting" state during enablement.

Environment

  • Private Cloud Director Virtualization – v2025.4 and Higher

  • Self-Hosted Private Cloud Director Virtualization – v2025.4 and Higher

Cause

A decommissioned host was still listed in Nova's service records. Because of this, VMHA tried to use that host during setup, which caused an error and left the VMHA stuck in the "waiting" state.

Diagnostics

circle-info

For SAAS customers contact Platform9 Support Team to validate if you are hitting the issue mentioned in this article.

  1. Check VMHA logs:

$ kubectl exec deploy/hamgr -n <REGION_NAMESPACE> -- cat/var/log/pf9/hamgr/hamgr.log |  grep -A1 'Enabling HA'
Look for log entries like the following:
Enabling HA on some of the hosts [...] including host '[HOST-ID]'
WARNING Role status of host [HOST-ID] is not ok
  1. List compute services and validate if any of the hypervisors are showing the "Status" as disabled and "State" down

circle-info

Identify services that are down, disabled, or associated with non-existent or decommissioned hosts. In the sample output the HOST2.EXAMPLE.COM is the decommissioned node.

  1. List hypervisors and validate host mapping. In the sample output, we see that the node [HOST2.EXAMPLE.COM] is in a downstate. we can check its associated service ID to validate the host mapping

Resolution

  1. Identify the stale compute service entry from the output of the below command. In the sample output we see the node HOST2.EXAMPLE.COM is down.

  1. Delete the stale service using below command, post deletion of the stale entry we will still have minimum two working hypervisors as per the requirement of enabling VMHA

  1. Wait for the VMHA to retry the operation automatically, or disable and re-enable VMHA to trigger a fresh attempt.

Validation:

  1. Ensure VMHA state transitions from waiting to enabled.

  2. Confirm no additional stale hosts remain.

Additional Information:

At minimum two working hypervisors are needed for enabling VMHAarrow-up-right

Last updated