Virtual Instances stuck in the Deleting state from the SCO UI.
In the "Virtual Systems Instances" section of the UI, some instances are stuck in deleting state. These were deployed to VMware, and they are gone from VMware, also gone from nova list, but still showing in SCO UI. I have restarted Workload Deployer and they did not disappear.
An active task in the task list associated with this virtual instance may be blocking the delete task.
Diagnosing the problem
First, with the SCO UI, go to Administration -> Task Queue. Look for tasks that are associated with the deletion of the specific VM. The task is probably still in the "Active" state, but is hung.
Resolving the problem
If you find any tasks listed with the virtual system name in them, delete them if possible.
After that, you can try the delete button again from the Virtual Instances panel and the removed tasks will now allow the next deletion to complete instead of just queuing up. There is often a task that is "blocking" your delete and causing it to queue up.
If that does not help, then you can use REST API to clear the task.
Note: You can install REST clients as add-ons into your browser (RESTClient is an add-on that can be used for Firefox).
After the RESTClient is installed in Firefox and you have restarted Firefox, log into SCO, and go to Administration -> Task Queue. Look for tasks associated with the deletion of the VM. Those tasks are probably in the Active state.
Next in the RESTClient, using the "GET" method, use the following URL:
https://<SCO IP address>/resources/tasks
The response header should be "200 OK". Next look in the Response body. It will contain a list of tasks. You need to find the same task associated with the deletion, and find its "id" attribute, for example:
The id field is "3593".
Then using the RESTClient, you need to delete the task. In the method field, select DELETE, and the URL field contains:
https://<SCO IP address>/resources/tasks/<task id>
This should delete the task.