Connect VCF instance in hub fails as URL not valid
search cancel

Connect VCF instance in hub fails as URL not valid

book

Article ID: 441581

calendar_today

Updated On:

Products

VMware Tanzu Platform Core

Issue/Introduction

When attempting to connect a VMware Cloud Foundation (VCF) instance to Tanzu Hub, the configuration fails during the setup wizard.

Specifically, in the Tanzu Hub UI navigation path: Administration -> Connect VCF instance (vCenter):

- When entering the Fully Qualified Domain Name (FQDN) into the vCenter Host name field, an error instantly pops up.

- This issue occurs specifically if the FQDN contains a hyphen (dash) in the final Top-Level Domain (TLD) segment (for example: vcenter.mycompany.ha-bi). 

The entered IP/Host URL is not valid

Environment

Tanzu Hub 10.4

Cause

The Tanzu Hub user interface utilizes a strict Regular Expression (RegEx) to validate incoming FQDNs and URLs. The validation pattern applied to the Top-Level Domain (TLD) portion of the string expects only alphabetical characters (e.g., [A-Za-z]).

Because it lacks support for a hyphen (-) within the final domain segment, any internal or customized TLD containing a dash fails the UI frontend evaluation, preventing the form from being submitted.

Resolution

There is currently no resolution or workaround available within the UI for instances utilizing a hyphenated TLD.

This validation logic is scheduled to be updated in an upcoming release of Tanzu Hub to fully support standard multi-character and hyphenated TLD structures.