"The requested operation could not be executed on vApp" when deleting standalone VMs in Cloud Director 10.2.2
search cancel

"The requested operation could not be executed on vApp" when deleting standalone VMs in Cloud Director 10.2.2

book

Article ID: 325506

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

This article provides steps on how to delete standalone VM's in Cloud Director 10.2.2 that are facing the above issue.

Symptoms:
  • Attempting to delete a standalone VM in Cloud Director 10.2.2 fails with an error of the form:
The requested operation could not be executed on vApp <VM Name>. Stop the vApp and try again.
  • The standalone VM is already in a Powered Off state.
  • The standalone VM is connected to a network.


Environment

VMware Cloud Director 10.x

Cause

When a standalone VM is undeployed during a Power Off operation its network is not undeployed in Cloud Director 10.2.2.
The standalone VMs hidden vApp cannot be deleted until this network is undeployed.

Resolution

This issue will be resolved in the next major release of Cloud Director.

Workaround:
To workaround this issue the affected standalone VM can be converted to a vApp so that it can be completely undeployed and deleted.
Example steps would be as follows:
  1. From the Tenant UI of Cloud Director navigate to the Datacenters > Compute > Virtual Machines view and locate the affected standalone VM.
  2. Click Actions menu for the affected VM and select Convert to vApp.
  3. Complete the instructions to save the standalone VM as a vApp.
  4. Locate the newly created vApp in the Datacenters > Compute > vApps view.
  5. Power Off the vApp to completely undeploy it and then Delete the vApp to remove both it and the VM within.