Failed to create workload domain with vCenter FQDN of length greater than 50 characters
search cancel

Failed to create workload domain with vCenter FQDN of length greater than 50 characters

book

Article ID: 368047

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

Failed to deploy workload domain in VCF 5.1.0.0-22688368 with error:

Message: Hosts cannot be added to the cluster domain-c0000
Remediation Message:
Reference Token: 366VGF
Cause: Retriable operation 'Adding host host000.xxxxx.xxxxxx.xxxxx.xxxxx to cluster domain-c0000' failed to complete after 6 retries. Unexpected status code: 503

  • In /var/log/vmware/vcf/domainmanager/domainmanager.log, the below is seen:
    2024-02-22T20:00:14.088+0000 ERROR [vcf_dm,4097b82353e252848,e007] [c.v.e.s.c.c.v.vsphere.VcManagerBase,dm-exec-14]  Unable to retrieve task Task: (MOR:task-1111) (Name:unknown) info: com.vmware.vim.vmomi.client.common.UnexpectedStatusCodeException: Unexpected status code: 503
    java.util.concurrent.ExecutionException: com.vmware.vim.vmomi.client.common.UnexpectedStatusCodeException: Unexpected status code: 503
            at com.vmware.vim.vmomi.core.impl.BlockingFuture.get(BlockingFuture.java:110)
    Caused by: com.vmware.vim.binding.vim.fault.NotAuthenticated: The session is not authenticated.
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
            at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

2024-02-22T20:33:14.770+0000 ERROR [vcf_dm,4097b82353e3423528,55ee] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-9]  [G7A1gS] VSPHERE_HOSTS_CANNOT_BE_ADDED_TO_CLUSTER Hosts  cannot be added to the cluster domain-c0000
com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Hosts  cannot be added to the cluster domain-c0000
        at com.vmware.vcf.common.fsm.plugins.action.impl.BaseHostsInClusterAction.addHostsToClusterAction(BaseHostsInClusterAction.java:329)

 

  • In /var/log/vmware/vpxd/vpxd.log, the below is seen:

//vpxd log:
2024-02-22T20:00:11.606Z error vpxd[22093] [Originator@6876 sub=Default opID=26c7ed76] [VdbStatement] [19]datatype: 7, size: 52, arraySize: 0
2024-02-22T20:00:11.606Z error vpxd[22093] [Originator@6876 sub=Default opID=26c7ed76] [VdbStatement] value = "Vcenter000.xxxxx-xxxx-xxx-xxxx-xxxxxxx-xxxxxx
2024-02-22T20:00:11.631Z error vpxd[22093] [Originator@6876 sub=Default opID=26c7ed76] An unrecoverable problem has occurred, stopping the VMware VirtualCenter service. Error: Error[VdbODBCError] (-1) "ODBC error: (22001) - ERROR: value too long for type character varying(50);
--> Error while executing the query" is returned when executing SQL statement "UPDATE VPX_HOST SET DATACENTER_ID=?,DNS_NAME=?,HOST_KEY=?,IP_ADDRESS=?,EXPECTED_SSL_THUMBPRINT=?,HOST_SSL_THUMBPRINT=?,HOST_SSL_CERTIFICATE=?,USER_NAME=?,PASSWORD=?,PASSWORD_LAST_UPD_DT=?,SOAP_PORT=?,AUTHD_PORT=?,ENABLED=?,VPXA_ID=?,VMOTION_ENABLED=?,FAULTTOLERANCE_ENABLED_FLG=?,LICENSED_EDITION=?,LOCAL_IP_ADDRESS=?,ADMIN_DISABLED_FLG=?,MANAGEMENT_IP=?,AGENT_VM_DATASTORE_ID=?,AGENT_VM_NETWORK_ID=?,GATEWAY_TYPE=?,GATEWAY_ID=?,GATEWAY_TRUST_TOKEN=? WHERE ID=?"
2024-02-22T20:00:11.639Z panic vpxd[22093] [Originator@6876 sub=Default opID=26c7ed76]
-->
--> Panic: Unrecoverable VmRootError. Panic!

//related codes:
private TaskInfo getTaskInfo(final Task task) {
        BlockingFuture<TaskInfo> p = new BlockingFuture<>();
        task.getInfo(p);
        try {
            return p.get(10, TimeUnit.MINUTES);
        } catch (ExecutionException | InterruptedException | TimeoutException ex) {
            log.error(
                    "Unable to retrieve task {} info: {}",
                    getTaskLoggingInfo(task._getRef()),
                    ex.getMessage(),
                    ex);
            return null;
        }
    }

Environment

VCF 5.1.0.0-22688368

Cause

Failed to create workload domain with vCenter FQDN of length greater than 50 Characters 

 

Resolution

Change the vCenter FQDN/DNS name length to shorter then 50 Characters and redeploy the workload domain.