Github user karuturi commented on the issue: https://github.com/apache/cloudstack/pull/1832 @marcaurele The thread which is running the job gets killed due to OperationCancelledException. But, if any command is already sent and is being executed on hypervisor, that wont be cancelled. check for the changes in AgentAttache where this new exception is thrown. For example, if a deployvm is cancelled and the command is already sent to hypervisor, the vm will continue to launch on hypervisor. but, on cloudstack side, the threads and the jobs will be cleanedup and cancelled. Eventually, vm sync will sync the states. There can be instances when the job cancellation was successful but, the vm is in running state after sometime. The cancellation should be used with caution only by admin keeping in mind that some resource cleanup on hypervisor might be required. This will only unblock the jobs in cloudstack which are waiting for a long time for a certain job to complete.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---