Virtual machine deployments fail with error "Provisioning operation failed. Cannot deploy library item..."
search cancel

Virtual machine deployments fail with error "Provisioning operation failed. Cannot deploy library item..."

book

Article ID: 325808

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • Virtual machine deployments from VMware Aria Automation fail in vSphere with the following error:
  • Provisioning operation failed. Cannot deploy library item ########-####-####-####-########## (com.vmware.vdcs.cls-main.library_item_not_found Library item ########-####-####-####-########## not found.)
  • The same template can however be deployed directly in vSphere from the Content Library.
  • The template cannot be deployed from the Content Library to a different cluster where the Content Library is not stored.

Environment

Aria automation 8.x

Resolution

  1. Recreate the virtual machine template and deploy it to the Content Library.

    Or

  2. Take snapshot and  shutdown  Aria Automation on primary nodes by stopping the services, sleep for 2 minutes and clean the current deployment
     
    1. Stop the Automation services:
      /opt/scripts/deploy.sh --shutdown

    2. After the script has completed, shutdown the appliances in vCenter or by running
      shutdown -h now

    3. Power on vRA node and and restart vRA services and
      /opt/scripts/deploy.sh

    4. Verify that all pods are running:
      kubectl -n prelude get pod

 

Note: This process can take 20+ minutes. If the appliance has insufficient memory, the timeout will occur at 30 minutes. 
Check and confirm that all pods are ready for use.

Additional Information

NOTE: In Aria automation 8.12 and lower, use these steps to stop the Automation services:

  1. Stop the Automation services:
    /opt/scripts/svc-stop.sh
    sleep 120
    /opt/scripts/deploy.sh --onlyClean

  2. After the script has completed, shutdown the appliances in vCenter or by running:
    shutdown -h now