VM task state remains stuck

You might encounter issues when the task state of a virtual machine remains stuck for a longer period of time.

Problem

A task remains in the same state for more than five minutes even though the operation on a VM is completed.

Resolution

To resolve this issue, run the following command and reset the task state of the VM.
powervc-config compute reset-instance-task-state --instance_id <vm_uuid1, vm_uuid2,..>
Note: The command format for the resolution is applicable to reset the task state of multiple VMs. The list of VM UUID can be collected by using the nova list command.