Adding a cluster fails with error CLUSTER_NAME_ALREADY_ALLOCATED_FOR_DOMAIN - VMware Cloud Foundation
search cancel

Adding a cluster fails with error CLUSTER_NAME_ALREADY_ALLOCATED_FOR_DOMAIN - VMware Cloud Foundation

book

Article ID: 438008

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware Cloud Foundation

Issue/Introduction

  • Adding a new cluster to an existing workload domain in VMware Cloud Foundation (VCF) fails during the validation phase.

  • This error often occurs when attempting to create a new cluster using a name that was previously used by another cluster, particularly after renaming an existing VCF cluster (e.g., renaming cluster A to B, then attempting to create a new cluster A).

  • The SDDC Manager UI displays the following error: Failed to submit new add cluster configuration: Failed to validate cluster spec for [CLUSTER_NAME] with errors [CLUSTER_NAME_ALREADY_ALLOCATED_FOR_DOMAIN] : Cluster name '[CLUSTER_NAME]' is already allocated for domain with ID '[DOMAIN_ID]'.

  • In /var/log/vmware/vcf/domainmanager/domainmanager.log in the sddc manager, the following entries are observed:

    ERROR [vcf_dm] [c.v.v.c.c.v1.ClusterController] ClusterCreationSpec validation failed with errors [CLUSTER_NAME_ALREADY_ALLOCATED_FOR_DOMAIN]
    ERROR [vcf_dm] [c.v.v.c.c.v1.ClusterController] Failed to create cluster
    com.vmware.evo.sddc.common.core.error.CompositeInvalidInputException: Failed to validate cluster spec for [CLUSTER_NAME] with errors [CLUSTER_NAME_ALREADY_ALLOCATED_FOR_DOMAIN]

Environment

  • VMware Cloud Foundation 9.x

Cause

  • This issue occurs due to a stale entry in the Domain Manager's in-memory cache. Even if a previous cluster creation attempt was cancelled or failed, the Domain Manager may still "reserve" the cluster name, preventing subsequent attempts using the same name.

Resolution

Note: Ensure there are no active workflows (such as password rotations, host commissioning, or other domain operations) running in the Domain Manager before proceeding.

To resolve this issue, you must restart the Domain Manager service to clear the stale cache.

  1. Log in to the SDDC Manager appliance via SSH using the vcf user credentials.

  2. Switch to the root user:

    su -

  3. Restart the Domain Manager service by running the following command:

    • systemctl restart domainmanager.service

  4. Retry the "Add Cluster" operation from the SDDC Manager UI.