I have a customer who called me yesterday for having a task in vCloud Director that has been stuck in the cancelling stage for over a month. The problem has started after a power outage they had in their datacenter. vCloud Director is operating just fine, just that particular task was doing nothing and in reality it was cancelled but in the vCloud GUI it kept saying “Cancelling Copy” as shown in the below screenshot.
My customer was bugged by this and wanted to get rid of this message in his vCloud Director GUI, which we were able to do successfully by following the below procedure. Please note the following procedure will take your vCloud Director Portal down for few minutes, so you probably want to schedule it during an outage. At a high level what is the below procedure will be doing is gracefully shutting down the vCD Cells then bringing them up, which should clean up any stuck cancellation tasks. Below is a step by step of how to do so:
- Log in to the target vCloud Director cells using SSH as root.
- Navigate to $VCLOUD_HOME/bin/ (typically /opt/vmware/cloud-director /bin/ ).
- Retrieve the current job status. This cell-management-tool command line supplies system administrator credentials and returns the count of running jobs (i.e.