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
...
VMware Cloud Director 10.6.x
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.
Engineering is aware of the issue and working on a fix to be included in an upcoming release of VCD.
Log in to the VCD Service Provider Admin Portal.
Navigate to Resources > Cloud Resources > Organization VDCs.
Select the affected Org VDC > Storage > Storage Policies.
Select the target Storage Policy and click Edit.
Change the storage limit setting from a specific value to Unlimited.
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