Deployment fails because of the lack of sufficient resources in the cloud environment.

Problem

You might see the following error messages.

  • com.vmware.darwin.exceptions.CloudException:
    		com.vmware.darwin.cal.api.exceptions. CALOperationException: Unable to compose
    		vapp 'appd-xxx-1.0.0-admin-1028-0b37d0cf-1b0d-42a2-8212-a048e01bcb'
  • An error occurred in the cloud:
    		sendPowerOn: There are insufficient CPU or memory resources to complete the
    		operation.
  • Error in vCloud: There are
    		insufficient IP addresses to complete the operation. You need to add IP
    		addresses to the network that is associated with the object being created or
    		deployed.

Cause

The deployment error occurs because of one of the following reasons.

  • Insufficient resources, such as IP addresses or storage, in the cloud.

  • The virtual machine in vCloud Director has exceeded the available CPU or memory.

  • Insufficient IP addresses in the vCloud Director network.

Procedure

  • Designate sufficient IP addresses or storage.
    1. Check the virtual machine logs or the vFabric tc Server log in the Using Application Services appliance for more detailed error messages from the cloud.
    2. Assign additional IP addresses to the network where the application is being deployed.
    3. For vCloud Director, check if the organization vDC has enough storage.
    4. Delete unwanted deployments from Using Application Services to free some IP addresses and storage space.
  • Allocate sufficient CPU or memory.
    1. Reconfigure CPU or memory allocation in vCloud Director.
    2. Delete unwanted virtual machines that are consuming the same pool of resources in vCloud Director.