Quantcast
Channel: VMware Communities : Blog List - All Communities
Viewing all articles
Browse latest Browse all 3805

Troubleshooting vApps in "pending delete" state

$
0
0

When trying to delete a vApp with Partially Powered Off VMs inside the vApp, both the vApp and VM end up into a Pending state in vCloud Director. When trying to run the delete again it says that you need to stop the VM first. The VM in vCenter Server appears powered off. In this case, you can follow the instructions provided in this post: http://vsential.com/2012/10/remove-vapp-vcd-pending-state/

 

  1. Shutdown ALL vCD Cells
  2. Backup vCD Database
  3. Find the VM in the vCD database, inside the vCD VM table. It can be found using the UUID from the error in the vCD interface
  4. The status of the VM should be DELETING_CONTENTS, so change it to RESOLVED
  5. Find the vApp in the vCD database, inside the VM_CONTAINER table. it can also be found using the UUID from the error in the vCD interface
  6. Change the status from DELETING_CONTENTS to RESOLVED
  7. Start the vCD Cells
  8. Enter the vCD interface; the vApp should not be in pending state anymore, so go into the vApp and power off the VM. Then, power off the vApp and delete it.
  9. In case it does not work, shutdown the vCD Cells again, find the VM in the vCD DEPLOYED_VM table, and remove the VM entries using the UUID from the error in the vCD interface

vcd1.png

10 . Start the vCD cells again and remove the vApp using VMware PowerCLi, with the following command:

 

Get-CIVApp -Name <vApp_Name> | Remove-CIVApp


Viewing all articles
Browse latest Browse all 3805

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>