VCF deployment using Cloud Builder failed at Uploading vSAN HCL to SDDC Manager
search cancel

VCF deployment using Cloud Builder failed at Uploading vSAN HCL to SDDC Manager

book

Article ID: 375826

calendar_today

Updated On:

Products

VMware SDDC Manager VMware Cloud Foundation

Issue/Introduction

  • VCF deployment using Cloud Builder failed at Uploading vSAN HCL to SDDC Manager
  • /var/log/vmware/vcf/bringup/vcf-bringup.log shows the below error
    YYYY-MM-DDTHH:MM:SS.414+0000 [bringup,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,d2d4] ERROR [c.v.e.s.s.UploadVsanHclToSddcManagerAction,pool-2-thread-13] Failed to upload HCL on SDDC Manager.
    YYYY-MM-DDTHH:MM:SS.414+0000 [bringup,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,d2d4] ERROR [c.v.e.s.o.model.error.ErrorFactory,pool-2-thread-13] [IQEAE1] UPLOADING_HCL_TO_SDDC_MANAGER_FAILED Uploading vSAN HCL to SDDC Manager Failed
    com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Uploading vSAN HCL to SDDC Manager Failed
    					at com.vmware.evo.sddc.sddcmanager.UploadVsanHclToSddcManagerAction.execute(UploadVsanHclToSddcManagerAction.java:105)
    					at com.vmware.evo.sddc.sddcmanager.UploadVsanHclToSddcManagerAction.execute(UploadVsanHclToSddcManagerAction.java:48)
    					at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionState.invoke(FsmActionState.java:62)
    					at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionPlugin.invoke(FsmActionPlugin.java:159)
    					at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionPlugin.invoke(FsmActionPlugin.java:144)
    					at com.vmware.evo.sddc.orchestrator.core.ProcessingTaskSubscriber.invokeMethod(ProcessingTaskSubscriber.java:400)
    					at com.vmware.evo.sddc.orchestrator.core.ProcessingTaskSubscriber.processTask(ProcessingTaskSubscriber.java:520)
    					at com.vmware.evo.sddc.orchestrator.core.ProcessingTaskSubscriber.accept(ProcessingTaskSubscriber.java:124)
    					at jdk.internal.reflect.GeneratedMethodAccessor253.invoke(Unknown Source)
    					at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    					at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    					at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)
    					at com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)
    					at com.vmware.vcf.common.tracing.TraceRunnable.run(TraceRunnable.java:59)
    					at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    					at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    					at java.base/java.lang.Thread.run(Thread.java:840)
    Caused by: org.springframework.web.client.HttpClientErrorException: 413 Request Entity Too Large: "<html><EOL><EOL><head><title>413 Request Entity Too Large</title></head><EOL><EOL><body><EOL><EOL><center><h1>413 Request Entity Too Large</h1></center><EOL><EOL><hr><center>nginx</center><EOL><EOL></body><EOL><EOL></html><EOL><EOL>"
    

 

Environment

VMware Cloud Foundation

Cause

The all.json file is too large than the allowed upload limit of 40MB

Resolution

Re-download the all.json file by following the steps below, upload to the SDDC Manager and proceed further.

  1. Open the below link in your HTML browser:
  2. Copy the latest all.json file from your local machine to /home/vcf folder onto your sddc manager via tools like WinSCP.
  3. Update the deployment Parameters with the below mentioned path under Path to HCL JSON File.
      1. Use the below command to grab the access token
        curl --location 'https://<sddcmanager_fqdn>/v1/tokens' --header 'Content-Type: application/json' --data-raw '{"username":"<SSO_USERNAME>","password":"<SSO_PASSWORD>"}'
      2. cd to /home/vcf (where the latest local copy of all.json is placed)
      3. Upload the HCL file using the HCL upload API using the below command
        curl -X PUT --location 'http://<sddcmanager_fqdn>/v1/vsan-hcl/content' --header 'Authorization: Bearer <put the token grabbed from step 3>' --header 'Content-Type: text/plain' [email protected]
  4. Retry the Cloud Builder deployment.