Hi,
I have a vApp, in which I am merging and deleting vms.
When I want to merge vms from another vApp into this vApp , I queue the vms to be merged. So that the vms are added into the vApp one by one, using recomposevApp().
And when I have to delete a vm, i getChildrenVms() of the vApp, look for the vm i need to delete, and undeploy(SHUTDOWN) it and then delete it.
So while merging a vm into the vApp, the operation is VAPP LEVEL. So another vm cannot be merged to it at the same time, so I have queued it.
But while deletion, the operation is VM LEVEL. I do vm.delete() right. So multiple vms from the same vApp can be deleted at the same time.
My concern is that, if I am deleting a vm, and at the same time, the vApp is adding (merging) a vm into it, would this cause any problem?
I sometimes get VCloudexception: The entity VMNAME is busy completing an operation. at Undeploy(UndeplyPowerActionType)
This happens when i try to undeploy, just before deletion.
Can this be because the vApp is busy adding another vm to it? I dont think so because its a VM level operation, and it should not worry about what the vApp is doing at that time.
Please help.
Regards,
Mansi