Timeout while saving large vApp templates
search cancel

Timeout while saving large vApp templates

book

Article ID: 430300

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • VMware Cloud Director (VCD) fails to save a vApp Template to a catalog.
  • The vApp Template contains more than 20 total disks.
  • Transaction Timeout errors observed in the vcloud-container-debug.logs:

    ERROR    | pool-jetty-##             | VdcService                     | Failed to schedule task to capture vApp template with name: <Template Name> in catalog: urn:uuid:<UUID>. | requestId=<UUID>,request=POST https://example.com/api/catalog/<UUID>/action/captureVApp,requestTime=########,remoteAddress=###.###.###.###:####,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+xml;version 39.0
    org.hibernate.TransactionException: transaction timeout expired
    ...

Environment

VMware Cloud Director 10.6.x

Cause

Saving a large vApp Template to a catalog backed by a storage policy with a configured limit will cause Transaction Timeout errors.

The VCD Placement Engine performs a check of storage quota usage whenever a storage policy has a specific Limit (e.g., 100GB). As the number of virtual disks in the template increases, the query required to calculate the "Total Used" becomes computationally expensive. This type of transaction has a hardcoded limit that cannot be configured.

Resolution

Engineering is aware of the issue and working on a fix to be included in an upcoming release of VCD.

Additional Information

Workaround Steps

  1. Log in to the VCD Service Provider Admin Portal.

  2. Navigate to Resources > Cloud Resources > Organization VDCs.

  3. Select the affected Org VDC > Storage > Storage Policies.

  4. Select the target Storage Policy and click Edit.

  5. Change the storage limit setting from a specific value to Unlimited.

  6. Click Save.

Note: When set to Unlimited, VCD will not prevent provisioning if the underlying datastore is full. Administrators must monitor physical capacity via vCenter or Aria Operations.

Edit the Limit of a Storage Policy on a VMware Cloud Director Organization Virtual Data Center