SDDC Manger deployment failing using Cloud Builder with invalid hostname
search cancel

SDDC Manger deployment failing using Cloud Builder with invalid hostname

book

Article ID: 405052

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

The deployment is failing in the precheck with the following errors after uploading the configuration file : 

Bad Request: Invalid input
  • Host hostname must match '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$'.
  • Management domain name (SDDC ID) can contain only letters, numbers and the following symbols: '-'.

The following log snippet is seen in the cloud builder logs :

YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e40eb5d9ef8734547b5a87dfd4e15,c307] INFO  [c.v.v.b.c.v1.BringupPublicController,http-nio-0.0.0.0-9080-exec-5] Getting and sorting all validation statuses by creation time.
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413aa76b2c0e0cadc347b6223b57,429f] INFO  [c.v.v.b.c.v1.BringupPublicController,http-nio-0.0.0.0-9080-exec-7] Upload SDDC Spec File for Bringup: spec file il0h-vcf-deploy.json
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413aa76b2c0e0cadc347b6223b57,429f] INFO  [c.v.e.s.b.a.r.j.i.JsonGeneratorUtilImpl,http-nio-0.0.0.0-9080-exec-7] il0h-vcf-deploy.json is not Excel file
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413c9083c82f173f7c6de9bd924f,10a0] ERROR [c.v.e.s.c.v.i.LocalizableAnnotationValidationUtil,http-nio-0.0.0.0-9080-exec-8] Spec violation SDDC_HOST_HOSTNAME_PATTERN_INVALID
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413c9083c82f173f7c6de9bd924f,10a0] ERROR [c.v.e.s.c.v.i.LocalizableAnnotationValidationUtil,http-nio-0.0.0.0-9080-exec-8] Spec violation SDDC_HOST_HOSTNAME_PATTERN_INVALID
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413c9083c82f173f7c6de9bd924f,10a0] ERROR [c.v.e.s.c.v.i.LocalizableAnnotationValidationUtil,http-nio-0.0.0.0-9080-exec-8] Spec violation SDDC_HOST_HOSTNAME_PATTERN_INVALID
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413c9083c82f173f7c6de9bd924f,10a0] ERROR [c.v.e.s.c.v.i.LocalizableAnnotationValidationUtil,http-nio-0.0.0.0-9080-exec-8] Spec violation SDDC_ID_PATTERN_INVALID
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413c9083c82f173f7c6de9bd924f,10a0] ERROR [c.v.e.s.c.v.i.LocalizableAnnotationValidationUtil,http-nio-0.0.0.0-9080-exec-8] Spec violation SDDC_HOST_HOSTNAME_PATTERN_INVALID
YYYY-MM-DDTHH:MM:SS+0000 [bringup,687e413c9083c82f173f7c6de9bd924f,10a0] ERROR [c.v.e.s.e.h.LocalizableRuntimeExceptionHandler,http-nio-0.0.0.0-9080-exec-8] [QQ82O9] REST_INVALID_API_INPUT Invalid input com.vmware.evo.sddc.common.core.error.CompositeInvalidInputException: Invalid input

Environment

  • VMware SDDC Manager 4.5.x
  • VMware SDDC Manager 5.x

Cause

  • The hostname field contains spaces in the FQDN of the host after the inverted quotes( " ).
  • The precheck determines the spaces as invalid characters and hence fails with the error. 

Resolution

  • Remove all the spaces in the hostname field and check for any characters apart from the allowed list : [a-zA-Z0-9\-]
  • Post validating, upload the configuration file again and retry the deployment.

Additional Information

The following document was referred to, for the common error codes while deploying the environment using Cloud Builder : VMware Cloud Foundation API Reference Guide | VMware Cloud Foundation API