VCF Automation deployments utilizing the content library fail if the deployments take longer than 15 minutes to provision in vCenter
search cancel

VCF Automation deployments utilizing the content library fail if the deployments take longer than 15 minutes to provision in vCenter

book

Article ID: 397004

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

This KB provides steps to resolve an issue that may be encountered on Content Library based deployments.

Symptoms:
When provisioning VMs using templates from vCenter content library, the requests fail in VCF Automation with the following error:

Provisioning operation failed. Error deploying from library: [java.util.concurrent.CompletionException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: [POST] [https://vcenter.server/rest/vcenter/vm-template/library-items/4ce1b73e-c39e-443b-ab64-b6400d2c958c?action=deploy] [[Lorg.apache.http.Header;@2fcca8f5]: Failed with exception: [Connection is closed]

Environment

VCF Automation 9.0

Cause

This is caused by the internal VCF Automation proxy connection timing out the vAPI connection to vCenter. The internal proxy service of VCF Automation has a default active connection timeout of 15 minutes.

If it takes more than 15 minutes for a VM to be deployed in vCenter, the proxy connection is closed resulting in the failure of the deployment request.

The provisioning-service-app.log would show the following error:

####-##-##T##:##:##.382Z WARN provisioning [host='provisioning-service-app-##########-#####' thread='xn-index-updates-17' user='' org='' trace='' parent='' span=''] c.v.a.r.c.ComputeProvisionTaskService.handleFailedStagePatch:1282 - [/provisioning/requests/compute-provision-tasks/########-####-####-####-############] Task failed with: Provisioning operation failed. Error deploying from library: [java.util.concurrent.CompletionException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: [POST] [https://vcenter.server/rest/vcenter/vm-template/library-items/4ce1b73e-c39e-443b-ab64-b6400d2c958c?action=deploy] [[Lorg.apache.http.Header;@2fcca8f5]: Failed with exception: [Connection is closed]

Resolution

Increase the connection timeout of the internal VCF Automation proxy service from the default 15 minutes to something appropriate to the longer running VM deployments in the environment.

Prerequisites:
1. Create a backup of the VCFA component
2. Prepare SSH credentials for the VCFA nodes

Remediation steps
1. SSH into one of the nodes of the VCFA appliance
2. Execute the following command replacing the <timeout-in-minutes> placeholder with the appropriate value (must be a positive integer).

base64 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