Nutanix | CVM | Host Upgrade | Kill Stuck Task
Hello Mates,
Sharing the knowledge regarding an issue which I faced during ESXi/Hypervisor upgrade via Nutanix Prism Elements
Description:
While upgrading ESXi/Hypervisor from Nutanix Upgrade Software console, the prism elements was running pre-upgrade checks.
PS: This can work on any stuck task on Nutanix, just apply the flags/entities as per your need!!
Issue Occured:
Running task stuck at 10% or 30% or at any certain number for long duration.
There was no option to abort the task or cancel it via console
Resolution worked:
1. Login into any CVM and run progress monitor
progress_monitor_cli --fetchall
or
progress_monitor_cli -fetchall| egrep "entity_id|entity_type|operation"
2. Take note of the "Entity ID", "Entity Type" & "Operation"
3. You have the above information now, please run below command to delete the active stuck task
progress_monitor_cli --entity_id="entity_id" --entity_type="entity_type" --operation="operation" -delete
Make sure you use replace the fields from the information received from step 1
Your actual command might look like this:
progress_monitor_cli --entity_id="<id>" --entity_type=cluster --operation=upgrade_hypervisor -delete
You will get a confirmation line at the end that task deleted successfully!
Enjoy!
Thanks,
Arvind Kr.
Very helpful. Thanks
ReplyDeleteexcellent information, it worked for me! Thanks.
ReplyDelete