TKG - Management Cluster creation failed due to "Error: configuration validation failed: cluster name CLUSTER_NAME matches another management cluster"
search cancel

TKG - Management Cluster creation failed due to "Error: configuration validation failed: cluster name CLUSTER_NAME matches another management cluster"

book

Article ID: 381728

calendar_today

Updated On:

Products

Tanzu Kubernetes Grid

Issue/Introduction

After performing Management Cluster creation, the following error message appears.
# tanzu mc create -f ${MANAGEMENT_CLUSTER}.yaml -v9
....
Error: configuration validation failed: cluster name MANAGEMENT_CLUSTER_NAME matches another management cluster

Environment

Tanzu Kubernetes Grid 2.x

Cause

The previous Management Cluster deletion process was incomplete (tanzu mc delete).

Actually, the Management Cluster VMs were deleted from vCenter; however, the context data remains.

Resolution

Delete the context of the previous Management Cluster via Tanzu CLI.

tanzu context list
tanzu context delete ${TARGET_MANAGEMENT_CLUSTER_NAME}

After that, retry to deploy a new Management Cluster.