Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better treatment of evicted batch workflow pods #357

Open
tiborsimko opened this issue Jan 21, 2021 · 1 comment
Open

better treatment of evicted batch workflow pods #357

tiborsimko opened this issue Jan 21, 2021 · 1 comment

Comments

@tiborsimko
Copy link
Member

A workflow is reported as "running":

reana=> select created,updated,status from Workflow where id_='ef2dd704-2924-47eb-98b6-9a3d3394f9e5';
         created          |          updated           | status  
--------------------------+----------------------------+---------
 2021-01-19 15:06:41.7818 | 2021-01-19 15:37:46.201782 | running

but it was actually evicted:

$ kubectl get pods | grep -i evicted 
reana-run-batch-ef2dd704-2924-47eb-98b6-9a3d3394f9e5-9wp6h        0/2     Evicted     0          2d3h

due to:

$ kubectl describe pod reana-run-batch-ef2dd704-2924-47eb-98b6-9a3d3394f9e5-9wp6h 
...
Status:         Failed
Reason:         Evicted
Message:        The node was low on resource: ephemeral-storage. 

Current status: the workflow controller does not seem to notice, so the workflow is reported as still running to the user.

Expected behaviour: it would be useful if REANA platform notices these "evicted" situations and informs user properly back.

@tiborsimko
Copy link
Member Author

Update: seen similar cases where the workflow was reported as "failed", the run-batch pod was "Evicted", but the task remained actively visible in kubectl get jobs. So the above happens not only in the "running" context, but also when a workflow is recognised as "failed" due to eviction due to lows storage on node, the pods are not garbage-collected still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant