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

vcjob should not set deleted state before all it's tasks still exists #743

Closed
silenceli opened this issue Mar 23, 2020 · 4 comments
Closed

Comments

@silenceli
Copy link

Hi, this maybe a bug.

problem

I list-and-watch vcjob url to monitor vcjob status changes, when I delete vcjob, I got the DELETED action message quickly. At the same time, the pods belong to this vcjob is still exist(in terminating status). The pods will still use the CPU/GPU/MEM resources, but volcano is already release the used resources.

I think this is a serious problem because it leads to a mess of used resources, and you must determine the status of the pods to know if the vcjob is really over.

how to solve

When vc-controller get delete cmd, It should delete all the pods belong to and set status to terminating. After all pods is deleted, then set vcjob deleted.

@hzxuzhonghu
Copy link
Collaborator

This aligns with k8s resource delete behavior like deployment. I think one way is to do “Foreground” deletion.

@silenceli
Copy link
Author

This aligns with k8s resource delete behavior like deployment. I think one way is to do “Foreground” deletion.

Thank you! I will try “Foreground” deletion.

@silenceli
Copy link
Author

params =  {
                "kind":"DeleteOptions",
                "apiVersion":"v1",
                "propagationPolicy":"Foreground"
            }

Add these params when delete can solve my problem, thanks!

@silenceli
Copy link
Author

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

No branches or pull requests

3 participants