How to Kill Nutanix Prism Stuck Hanging Task via Command

How to Kill Nutanix Prism Stuck Hanging Task via Command

by Hinker

  1. login to Nutanix CVM using SSH.
  2. Enter the following to list running/failed tasks.
    ecli task.list include_completed=false
    
    Output:
    Task UUIDParent Task UUIDComponentSequence-idTypeStatus
    6e6a6b07-a885-4ba2-7d5f-9263dd8f0a7139ebb1c2-605d-45dc-ba73-494dc8bc955bPlanned Outage73Stop CVM ServiceskRunning
    39ebb1c2-605d-45dc-ba73-494dc8bc955bf4a08267-227b-471c-69cd-eab9d17832d5Planned Outage67CVM Enter MaintenancekRunning
    f4a08267-227b-471c-69cd-eab9d17832d5Planned Outage59Host Enter MaintenancekRunning
  3. Enter the following to cancel required task
    Usage of ergon_update_task:
    ergon_update_task.py --task_uuid=<task_uuid> --task_status=<task_status>
    
    task_uuid should be a properly stringified NutanixUuid
    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:
    ergon_update_task --task_uuid=6e6a6b07-a885-4ba2-7d5f-9263dd8f0a71 --task_status='failed'
    
    3.2 2nd run:
    ergon_update_task --task_uuid=39ebb1c2-605d-45dc-ba73-494dc8bc955b --task_status='failed'
    
    3.3 3rd run:
    ergon_update_task --task_uuid=f4a08267-227b-471c-69cd-eab9d17832d5 --task_status='failed'
    
  4. Enter the following to confirm task have been completed/failed
    ecli task.list include_completed=false
    
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值