VCF Download Tool Error: Failed to create token. API status code 0. API response null
search cancel

VCF Download Tool Error: Failed to create token. API status code 0. API response null

book

Article ID: 404849

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • VCF Download Tool fails to upload binaries, reporting the below error:

     
    $> /opt/vmware/vcf/lcm/vcf-download/bin/vcf-download-tool binaries upload --depot-store /nfs/vmware/vcf/nfs-mount/download/ --sddc-manager-fqdn <IP ADDRESS/FQDN> --sddc-manager-user admin@local
    
    Error: Failed to create token. API status code 0. API response null
  • Logs report the below error. Log File: /opt/vmware/vcf/lcm/vcf-download/log/vdt.log

    YYYY-MM-DDT03:06:49.252+0000 [main] ERROR [com.vmware.evo.sddc.lcm.tools.bundletransferv2.exceptionhandler.ExecutionExceptionHandler] Application failed. com.vmware.evo.sddc.lcm.tools.bundletransfer.exception.BundleTransferUtilityException: Failed to create token. API status code 0. API response null
    ...
    Caused by: com.vmware.cloud.foundation.rest.commonsvcs.runtime.ApiException: javax.net.ssl.SSLPeerUnverifiedException: Hostname <IP ADDRESS/FQDN> not verified:
    ...
    Caused by: javax.net.ssl.SSLPeerUnverifiedException: Hostname <IPADDRESS/FQDN> not verified:
        certificate: sha256/#########################################=
        DN: CN=sddc-manager, OU=vmware, O=vmware, L=Palo Alto, ST=CA, C=US
        subjectAltNames: [sddc-manager]

Environment

VMware Cloud Foundation 9.0

Cause

The vcf installer was deployed using the short name. 
The certificate that was created as part of installation contains the short name CN

Resolution

Use the short name instead of IP Address/FQDN for the --sddc-manager-fqdn parameter when using the vcf-download-tool to upload binaries.

For e.g.

$> /opt/vmware/vcf/lcm/vcf-download/bin/vcf-download-tool binaries upload --depot-store /nfs/vmware/vcf/nfs-mount/download/ --sddc-manager-fqdn sddc-manager --sddc-manager-user admin@local