How to terminate stale tasks in Cloud Manager
Applies to
- ONTAP Cloud Manager (Service Connector)
- Amazon Web Services (AWS)
- Microsoft Azure (AZ)
Description
Certain tasks, for example, aggregate create might get stuck running (task circle spinning endlessly in Cloud Manager) because of an underlying issue and it has to be terminated manually.
Procedure
- Log in to the Service Connector:
- Check the status of the occm service:
[ec2-user@ip-xxx-xx-x-x~]$ service occm status
Redirecting to /bin/systemctl status occm.service
● occm.service - OCCM
Loaded: loaded (/usr/lib/systemd/system/occm.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2020-11-17 09:23:35 UTC; 19min ago
Process: 12539 ExecStop=/usr/lib/systemd/scripts/occm stop (code=exited, status=0/SUCCESS)
Process: 12553 ExecStart=/usr/lib/systemd/scripts/occm start (code=exited, status=0/SUCCESS)
Process: 12551 ExecStartPre=/bin/rm -f /tmp/occm-pid (code=exited, status=0/SUCCESS)- Restart the service:
[ec2-user@ip-xxx-xx-x-x ~]$ sudo service occm restart
Redirecting to /bin/systemctl restart occm.service
Broadcast message from root@ip-xxx-xx-x-x.ec2.internal (Tue Nov 17 09:45:15 2020):
'OCCM is shutting down'
- Wait until you see occm coming up again:
[ec2-user@ip-xxx-xx-x-x ~]$
Broadcast message from root@ip-xxx-xx-x-x.ec2.internal (Tue Nov 17 09:45:33 2020):
'OCCM is up and running'
- Verify its status:
[ec2-user@ip-xxx-xx-x-x ~]$ service occm status
Redirecting to /bin/systemctl status occm.service
● occm.service - OCCM
Loaded: loaded (/usr/lib/systemd/system/occm.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2020-11-17 09:45:15 UTC; 1min 20s ago
Process: 22681 ExecStop=/usr/lib/systemd/scripts/occm stop (code=exited, status=0/SUCCESS)
Process: 22795 ExecStart=/usr/lib/systemd/scripts/occm start (code=exited, status=0/SUCCESS)
Process: 22793 ExecStartPre=/bin/rm -f /tmp/occm-pid (code=exited, status=0/SUCCESS)
- Go back to the SaaS-based portal or Service Connector UI and reload the page
Additional Information
- Make sure that the underlying cause that resulted in the stuck task was already resolved before restarting the Service Connector.
- If the root cause is unknown, contact NetApp Technical Support and reference this article for further assistance.
Internal Notes
