How to Kill Nutanix Prism Stuck Hanging Task via Command
by Hinker
- login to Nutanix CVM using SSH.
- Enter the following to list running/failed tasks.
Output:ecli task.list include_completed=false
Task UUID Parent Task UUID Component Sequence-id Type Status 6e6a6b07-a885-4ba2-7d5f-9263dd8f0a71 39ebb1c2-605d-45dc-ba73-494dc8bc955b Planned Outage 73 Stop CVM Services kRunning 39ebb1c2-605d-45dc-ba73-494dc8bc955b f4a08267-227b-471c-69cd-eab9d17832d5 Planned Outage 67 CVM Enter Maintenance kRunning f4a08267-227b-471c-69cd-eab9d17832d5 Planned Outage 59 Host Enter Maintenance kRunning - Enter the following to cancel required task
Usage of ergon_update_task:
task_uuid should be a properly stringified NutanixUuidergon_update_task.py --task_uuid=<task_uuid> --task_status=<task_status>
task_status should be one of [‘aborted’, ‘succeeded’, ‘failed’, ‘running’, ‘suspended’, ‘queued’]
Since the above task “Host Enter Maintenance” contains sub-tasks, you need to kill the subtasks first.
3.1 1st run:
3.2 2nd run:ergon_update_task --task_uuid=6e6a6b07-a885-4ba2-7d5f-9263dd8f0a71 --task_status='failed'
3.3 3rd run:ergon_update_task --task_uuid=39ebb1c2-605d-45dc-ba73-494dc8bc955b --task_status='failed'
ergon_update_task --task_uuid=f4a08267-227b-471c-69cd-eab9d17832d5 --task_status='failed'
- Enter the following to confirm task have been completed/failed
ecli task.list include_completed=false