Error: "validation error on field 'networkSection.networks[3].ipSettingList[0].dnsSuffix': String value has invalid format" when adding a network to a vApp
search cancel

Error: "validation error on field 'networkSection.networks[3].ipSettingList[0].dnsSuffix': String value has invalid format" when adding a network to a vApp

book

Article ID: 435283

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When trying to add new network to a vApp, the following error is received:

     [ ########-####-####-####-############] validation error on field 'networkSection.networks[3].ipSettingList[0].dnsSuffix': String value has invalid format, value: [ <dns-suffix>]

Environment

  • VMware Cloud Director 10.6.1.x

Cause

This issue is encountered if an Organization Virtual Data Center (VDC) Network's DNS Suffix has leading or trailing whitespaces, which is not allowed.

Resolution

Edit the Org VDC Network's DNS Suffix and eliminate any leading or trailing space characters in the name field.

To find the Org VDC Network which has a leading whitespace in the DNS Suffix field:

  1. SSH to the Primary Cell as root.
  2. Run the following query by substituting the dns-suffix in the query below with dns-suffix from error above:

    sudo -u postgres /opt/vmware/vpostgres/current/bin/psql -U postgres -d vcloud -c "select name from logical_network where ip_scope_id in (select id from ip_scope where dns_suffix = ' <dns-suffix>') and scope_type in (2,4);"

Note: Any changes to the VCD Database are not supported without Broadcom Support direction.

Additional Information

Edit the DNS Settings of an Organization Virtual Data Center Network in the VMware Cloud Director Tenant Portal