Server error: com.vmware.vapi.std.errors.InvalidArgument
Error message: Invalid DNS name present in master DNS name list (test2.locallabs.local,test.locallabs.local)
Master_DNS_names: - test2.locallabs.local
root@vcsa01 [ ~ ]#
vSphere with Tanzu 7.x
vSphere with Tanzu 8.x
This is because all the elements in the list are being passed as a single DNS name. When a list of DNS names is passed while enabling WCP, all names in the list are parsed as a single DNS name which leads to failure during DNS name validation and WCP enablement.
The fix is to pass each DNS name as a separate argument instead of a list. Use the following DCLI command to update an additional FQDNs for the Supervisor control plane on top of the existing one.
dcli com vmware vcenter namespacemanagement clusters update --cluster <cluster_ID> --master-dns-name <FQDN 1> --master-dns-name <FQDN_2>
For example, if the first dns-name is test2.locallabs.local and the second dns-name you're trying to add is test.locallabs.local, then the command would be as below.
root@vcsa01 [ ~ ]# dcli com vmware vcenter namespacemanagement clusters update --cluster domain-c# --master-dns-names test2.locallabs.local --master-dns-names test.locallabs.local
To confirm run the below command and you should see the expected output as below.
root@vcsa01 [ ~ ]# dcli com vmware vcenter namespacemanagement clusters get --cluster domain-c# | grep -A 2 Master_DNS_names Master_DNS_names: - test2.locallabs.local - test.locallabs.local
root@vcsa01 [ ~ ]#
Modify the List of Supervisor Control Plane DNS Names- https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere-supervisor/8-0/installing-and-configuring-vsphere-supervisor/configuring-and-managing-a-supervisor-cluster/modify-the-list-of-supervisor-fqdns.html