IamTHEvilONE
Immortal
Immortal

Cannot delete stranded item of an Org vDC - DELETE_VRP_CONTAINING_VMS

Is there any KB people are aware of to clean up the vCD DB or check to see what VM this is erroring out on?

The Org vCD is deleted, but left in stranded items.  Which means it passed a check to allow the deletion, since that's blocked if there is any VM in it (catalog or vapp).

Yet, on purge, it fails with the error DELETE_VRP_CONTAINING_VMS about having VMs in it during validation (priori to actually being deleted).

vCenter shows the resource pool is empty and there are no templates assigned to the pool.

I see it in the vCD Database under vrp_rp and vrp, but don't want to start deleting and miss something.

Full stack trace for the exception is below:

com.vmware.ssdc.library.exceptions.MultipleLMException: Failed to delete object "<name of resource pool / Org vDC>" and its dependencies. - Multiple Exceptions follow: [com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Failed to purge object "<name of resource pool / Org vDC>".]

        at com.vmware.vcloud.common.deletedobject.impl.DeletedObjectManagerImpl.purge(DeletedObjectManagerImpl.java:274)

        at com.vmware.vcloud.deletedobject.impl.ObjectDeletionServiceImpl.executePurge(ObjectDeletionServiceImpl.java:226)

        at com.vmware.vcloud.management.system.SystemServiceImpl.purgeDeletedObjectTask(SystemServiceImpl.java:1609)

        at com.vmware.vcloud.management.system.SystemServiceImpl.executeTask(SystemServiceImpl.java:1563)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:653)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:648)

        at com.vmware.vcloud.backendbase.management.system.SecurityContextTemplate.executeForOrgAndUser(SecurityContextTemplate.java:43)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.execute(TaskActivity.java:655)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.invokeInner(TaskActivity.java:551)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$TaskActivityBasePhase.invoke(TaskActivity.java:306)

        at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)

        at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

Subexception: com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Failed to purge object "<name of resource pool / Org vDC>".

        at com.vmware.vcloud.common.deletedobject.impl.DeletedObjectManagerImpl.purgeObject(DeletedObjectManagerImpl.java:306)

        at com.vmware.vcloud.common.deletedobject.impl.DeletedObjectManagerImpl.purge(DeletedObjectManagerImpl.java:256)

        at com.vmware.vcloud.deletedobject.impl.ObjectDeletionServiceImpl.executePurge(ObjectDeletionServiceImpl.java:226)

        at com.vmware.vcloud.management.system.SystemServiceImpl.purgeDeletedObjectTask(SystemServiceImpl.java:1609)

        at com.vmware.vcloud.management.system.SystemServiceImpl.executeTask(SystemServiceImpl.java:1563)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:653)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:648)

        at com.vmware.vcloud.backendbase.management.system.SecurityContextTemplate.executeForOrgAndUser(SecurityContextTemplate.java:43)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.execute(TaskActivity.java:655)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.invokeInner(TaskActivity.java:551)

        at com.vmware.vcloud.backendbase.management.system.TaskActivity$TaskActivityBasePhase.invoke(TaskActivity.java:306)

        at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)

        at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

Caused by: com.vmware.ssdc.util.LMException: Internal Server Error

        at com.vmware.ssdc.util.LMException.wrap(LMException.java:128)

        at com.vmware.ssdc.library.ExceptionFactory.createFromMultiple(ExceptionFactory.java:32)

        at com.vmware.vcloud.common.future.FutureUtil.waitForFutures(FutureUtil.java:85)

        at com.vmware.vcloud.common.future.FutureUtil.waitForFutures(FutureUtil.java:94)

        at com.vmware.ssdc.backend.services.impl.VdcManagerImpl.purge(VdcManagerImpl.java:336)

        at sun.reflect.GeneratedMethodAccessor3646.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)

        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)

        at com.sun.proxy.$Proxy269.purge(Unknown Source)

        at com.vmware.vcloud.common.deletedobject.impl.DeletedObjectManagerImpl.purgeObject(DeletedObjectManagerImpl.java:291)

        ... 17 more

Caused by: com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Internal Server Error

        at com.vmware.vcloud.common.future.FutureUtil.convertExecutionException(FutureUtil.java:210)

        at com.vmware.vcloud.common.future.FutureUtil.waitForFuture(FutureUtil.java:118)

        at com.vmware.vcloud.common.future.FutureUtil.waitForFutures(FutureUtil.java:76)

        ... 26 more

Caused by: com.vmware.vcloud.fabric.compute.ValidationException: ValidationException DELETE_VRP_CONTAINING_VMS

        at com.vmware.vcloud.fabric.compute.vrp.AbstractVirtualResourcePool.delete(AbstractVirtualResourcePool.java:955)

        at com.vmware.vcloud.fabric.compute.vrp.VAppAllocationVirtualResourcePool.delete(VAppAllocationVirtualResourcePool.java:33)

        at com.vmware.vcloud.fabric.compute.vrp.VirtualResourcePoolFactoryImpl.delete(VirtualResourcePoolFactoryImpl.java:319)

        at sun.reflect.GeneratedMethodAccessor9916.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

        at com.vmware.vcloud.common.diagnostics.GenericMethodDiagnosticsInterceptor.invoke(GenericMethodDiagnosticsInterceptor.java:39)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)

        at com.sun.proxy.$Proxy246.delete(Unknown Source)

        at com.vmware.vcloud.fabric.compute.impl.ComputeFabricImpl$DeleteEntityTask.execute(ComputeFabricImpl.java:82)

        at com.vmware.vcloud.fabric.compute.impl.ComputeFabricImpl$DeleteEntityTask.execute(ComputeFabricImpl.java:66)

        at com.vmware.vcloud.fabric.compute.impl.RunnableContextTaskBase$1.run(RunnableContextTaskBase.java:17)

        at com.vmware.vcloud.common.threadpool.ThreadContextExecutor.executeImpl(ThreadContextExecutor.java:59)

        at com.vmware.vcloud.common.threadpool.ThreadContextExecutor.execute(ThreadContextExecutor.java:52)

        at com.vmware.vcloud.fabric.compute.impl.RunnableContextTaskBase.call(RunnableContextTaskBase.java:21)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at com.vmware.vcloud.common.threading.NDCContextAwareThreadPoolExecutor$NDCRunnableFutureAdapter.run(NDCContextAwareThreadPoolExecutor.java:77)

        ... 3 more

0 Kudos
0 Replies