/opt/vmware/vcloud-director/logs/vcloud-container-debug.log displays the following error:yyyy-mm-dd hh:mm:ss| ERROR | Backend-activity-pool-<REDACTED_SECRETS> | CopyContentsActivity | [Activity Execution] Uncaught Exception during Activity execution. Recent phase: com.vmware.vcloud.vdc.impl.CopyContentsActivity$CopyContentsPhase...java.util.concurrent.ExecutionException: org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:136) ...Caused by: org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:844) at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328) ... at com.vmware.vcloud.fabric.storage.storedVm.impl.HibernateStoredVmDao.findByValRef(HibernateStoredVmDao.java:79) at com.vmware.vcloud.fabric.storage.placement.impl.LinkedClonePlacementUtil.findAllLinkedCloneSourceVms(LinkedClonePlacementUtil.java:90) at com.vmware.vcloud.fabric.storage.placement.impl.FPVirtualMachineStorageSelectorImpl.getPlacementParams(FPVirtualMachineStorageSelectorImpl.java:191) at com.vmware.vcloud.fabric.storage.placement.impl.FPVirtualMachineStorageSelectorImpl.selectStorageContainer(FPVirtualMachineStorageSelectorImpl.java:106)VMware Cloud Director 10.6
The issue is specifically tied to environments where Fast Provisioning is enabled. When VCD attempts to locate source VMs for linked clones, duplicate entries cause the task to crash or behave incorrectly during cleanup, leading to the deletion of the wrong entity.
Broadcom is aware of this issue and a fix is planned for an upcoming release of VMware Cloud Director.
Please subscribe to this KB by following the steps in the article: Subscribe an article for future updates on the resolution.