Deployment of NSX Manager fails during the VCF bring up process using the cloud builder with an error message "Invalid parameter: Ovftool pre-verification failed"
search cancel

Deployment of NSX Manager fails during the VCF bring up process using the cloud builder with an error message "Invalid parameter: Ovftool pre-verification failed"

book

Article ID: 411241

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

  • VCF bring up process fails during deployment of the NSX manager with below error message in cloud builder: 

Invalid parameter: Ovftool pre-verification failed for deployment of VM xxx-xx-NSXM01 on VC xxx-xx-vc01.example.com with message Local command /usr/bin/ovftool -- skipManifestCheck -- powerOn -- diskMode=thin -- acceptAllEulas -- allowExtraConfig --ipProtocol=IPv4 -- ipAllocationPolicy=fixedPolicy -- targetSSLThumbprint=21:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:41 -- verifyOnly -- -- prop:nsx_role=NSX Manager --prop:nsx_ip_0=xx.xx.xx.xx -- prop:nsx_netmask_0=xx.xx.xx.xx -- prop:nsx_gateway_O=xx.xx.xx.xx -- network=dvLAN_ephemeral -- deploymentOption=medium -- X:logFile=/var/log/vmware/vcf/bringup/nsxt-manager-ovfxxxxxxxxxxxxxxxxxxxx.log -- X:logLevel=info -- prop:nsx_cli_audit_username=audit -- prop:nsx_cli_audit_passwd_O =**************** -- datastore=vsanDatastore -- name=xxxxx-NSXM01 --
prop:nsx_hostname=xxxxx-NSXM01.example.com -- prop:nsx_dns1_0=xx.xx.xx.xx -- prop:nsx_ntp_0=ntp1_servername -- prop:nsx_passwd_0 =***prop:nsx_allowSSHRootLogin=True /mnt/iso/sddc-foundation-bundle-5.2.1.0-24307856/nsxt_ova/nsx-unified-appliance-4.2.1.0.0.24302016.ova vi://[email protected] :*** datacenter _name/host/cluster_name/Resources failed with exit value 1 LocalProcess Output: YYYY-MM-DD HH:MM:SS - Opening OVA source: /mnt/iso/sddc-foundation-bundle-5.2.1.0-24307856/nsxt_ova/nsx-unified-appliance-4.2.1.0.0.24302016.ova LocalProcess Output:YYYY-MM-DD HH:MM:SS - The manifest does not validate LocalProcess Output: YYYY-MM-DD HH:MM:SS - Error: Locator does not refer to an object:
vi://administrator%[email protected]:443datacenter _name/host/cluster_name/Resources LocalProcess Output: YYYY-MM-DD HH:MM:SS - Warning: LocalProcess Output: 2YYYY-MM-DD HH:MM:SS - - The manifests present but user flag causing to skip it LocalProcess

  • Below error is observed in cloud builder appliance logs in following path: /var/log/vmware/vcf/bringup/vcf-bringup.log:

YYYY-MM-DD HH:MM:SS- Completed with errors
com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Invalid parameter: Ovftool pre-verification failed for deployment of VM xxx-xx-NSXM01 on VC xxx-xx-vc01.example.com with message Local command /usr/bin/ovftool -- skipManifestCheck -- powerOn -- diskMode=thin -- acceptAllEulas -- allowExtraConfig --ipProtocol=IPv4 -- ipAllocationPolicy=fixedPolicy -- targetSSLThumbprint=21:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:41 -- verifyOnly -- -- prop:nsx_role=NSX Manager --prop:nsx_ip_0=xx.xx.xx.xx -- prop:nsx_netmask_0=xx.xx.xx.xx -- prop:nsx_gateway_O=xx.xx.xx.xx -- network=dvLAN_ephemeral -- deploymentOption=medium -- X:logFile=/var/log/vmware/vcf/bringup/nsxt-manager-ovfxxxxxxxxxxxxxxxxxxxx.log --X:logLevel=info -- prop:nsx_cli_audit_username=audit -- prop:nsx_cli_audit_passwd_O =**************** -- datastore=vsanDatastore -- name=xxxxx-NSXM01 --
prop:nsx_hostname=xxxxx-NSXM01.example.com -- prop:nsx_dns1_0=xx.xx.xx.xx -- prop:nsx_ntp_0=ntp1_servername -- prop:nsx_passwd_0 =**************** --prop:nsx_cli_passwd_0=**************** --prop:nsx_isSSHEnabled=True --prop:nsx_allowSSHRootLogin=True /mnt/iso/sddc-foundation-bundle-5.2.1.0-24307856/nsxt_ova/nsx-unified-appliance-4.2.1.0.0.24302016.ova vi://[email protected]:**********************@vCenter_FQDN/ datacenter_name/host/cluster_name/Resources failed with exit value 1

  • Based on the log snippets above, the highlighted path is invalid.

Environment

  • VMware SDDC Manager 5.x

Cause

  • Leading or trailing spaces were present in name field that is enclosed within the double quotes in the json file.

  • The precheck determines the spaces as invalid characters and hence the deployment of the NSX manager fails.

Resolution

Follow the below steps to remove all the spaces in the naming fields ( hostname, association, clusterName, name, dvsName, datastoreName, etc) within the quotes and continue the VCF deployment: 

  1. Remove any unnecessary spaces in the JSON file.

  2. Ensure that all IP addresses and FQDNs are enclosed in double quotes.

  3. Copy the modified JSON file to the Cloud Builder appliance at the following location: /home/admin

  4. Note down the bring-up execution ID: psql -h localhost -U postgres -d bringup -c "select id from execution where name like 'Bringup%';"

  5. Execution ID can also be noted from /var/log/vmware/vcf/bringup/vcf-bringup.log

  6. Run the API to retry the workflow with the same execution ID: curl -k -u admin:<password> -X PATCH https://localhost/v1/sddcs/<execution_id> -H "Content-Type: application/json" -d@/home/admin/File_name.json

  7. This will restart the Bring-up process and progress can be tracked via the Cloud Builder UI.

Additional Information