Error: '[ ########-####-####-####-########7b81 ] No value present' while trying to delete an Organization VDC
search cancel

Error: '[ ########-####-####-####-########7b81 ] No value present' while trying to delete an Organization VDC

book

Article ID: 385932

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Unable to delete an Organization VDC(OrgVDC) from VMware Cloud Director (VCD) UI. You receive the below error:

    java.util.NoSuchElementException: No value present
        at java.base/java.util.Optional.get(Optional.java:148)
        at com.vmware.vcloud.valc.impl.VdcImpl.getDefaultVdcComputePolicy(VdcImpl.java:871)
        at com.vmware.vcloud.valc.impl.VdcImpl.getConfig(VdcImpl.java:267)
        at com.vmware.vcloud.valc.impl.VdcImpl.delete(VdcImpl.java:558)
        at com.vmware.vcloud.api.presentation.service.impl.VdcServiceAdapterImpl.deleteVdcTask(VdcServiceAdapterImpl.java:2093)
        at com.vmware.vcloud.api.presentation.service.impl.VdcServiceAdapterImpl.executeTask(VdcServiceAdapterImpl.java:3279)
        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:846)
        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:841)
        at com.vmware.vcloud.backendbase.management.system.SecurityContextTemplate.executeForOrgAndUser(SecurityContextTemplate.java:49)
        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.execute(TaskActivity.java:848)
        at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.invokeInner(TaskActivity.java:744)
        at com.vmware.vcloud.backendbase.management.system.TaskActivity$TaskActivityBasePhase.invoke(TaskActivity.java:361)
        at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)
        at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

Environment

VMware Cloud Director 10.5.1

Cause

The issue occurs when the resource pool has been deleted from vCenter without deleting the OrgVDC from the VMware Cloud Director (VCD) UI.
When deleting the objects from vCenter, VCD is not informed of the deletion and the object information are still stored on the VCD database. 

Resolution

The workaround for this issue requires modification of the Cloud Director database.
For assistance, contact Broadcom Support and note this Article ID (385932) in the problem description. For more information, see Creating and managing Broadcom support cases.