Error: "Internal Server Error" and/or "Admission control failed for VRP" when editing the amount of memory or powering on a VM or vApp in a Flex Organization VDC
search cancel

Error: "Internal Server Error" and/or "Admission control failed for VRP" when editing the amount of memory or powering on a VM or vApp in a Flex Organization VDC

book

Article ID: 320419

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When trying to edit the amount of memory or power on any VM or vApp in a Flex Allocation Model Organization VDC, one or more of the following errors is seen in the Cloud Director (VCD) UI:

    Internal Server Error - ValidationException OUT_OF_VRP_CONFIGURED_MEMORY_RESOURCES Admission control failed for VRP

    [ ########-####-####-####-############ ] class java.lang.NullPointerException
  • The Debug Information in the failed Task Details in the VCD UI may show the following error:

    java.lang.NullPointerException
     at com.vmware.ssdc.backend.util.ComputeFabricUtil.getValidationMessageId(ComputeFabricUtil.java:156)
     at com.vmware.ssdc.backend.util.ComputeFabricUtil.translateException(ComputeFabricUtil.java:200)
     at com.vmware.ssdc.backend.VAppVmImpl.validateVmUpdate(VAppVmImpl.java:2060)
     at com.vmware.ssdc.backend.VAppVmImpl.updateVm(VAppVmImpl.java:1641)
     at com.vmware.ssdc.backend.services.impl.VmManagerImpl.updateVmInternal(VmManagerImpl.java:2177)
    ...

  • In the /opt/vmware/vcloud-director/logs/vcloud-container-debug.log on the VCD Cells, one or more of the following errors is seen:

    Total Memory required for all VMs in the VRP including current VM being deployed [{#}MB] is greater than VRP maxResourceValue {#}MB

    Admission control failed for VRP:[name: <org_vdc_name> (########-####-####-####-############), id: ########-####-####-####-############] during deployment of VMs:[[[vcId=########-####-####-####-############, moref=vm-####]]]. Total memory required for all VMs in the VRP including current VM being deployed [{#}MB] is greater than VRP maxResourceValue {#}MB.
  • The amount of Memory allocated to the Organization VDC is in MB or GB.

Environment

VMware Cloud Director 10.6.1.x

Cause

This issue occurs when virtual machines deployed overcommits CPU or Memory resources allocated in the Flex Organization VDC.

Resolution

The Resource allocation of a VDC defines the capacity of the respective resource for the particular VDC. The total units of the resource used by all VMs running in the Organization VDC cannot exceed this value.

The Memory allocation of a VDC defines the capacity of Memory for the particular VDC. The total units of the Memory used by all VMs running in the Organization VDC cannot exceed this value (Memory Overcommitted).

Set the Memory limit for all virtual machines combined to be equal or less than Memory Allocated in the Flex Organization VDC.

Workaround:

  1. Log into Provider portal.
  2. From left, select “Organization VDCs”.
  3. Find our Flex Organization VDC by name.
  4. From Allocation, under Memory section, note the Memory limit value.
  5. Open the Flex Organization VDC portal in Tenant portal.
  6. Total values of Memory limit for all virtual machines combined in the Flex Organization VDC must less than or equal the Memory limit in step no. 4. 
  7. Either increase the Allocation value at the VDC level, or power off VMs and reduce the Memory assigned to reflect the limit.