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

avoid failure to delete pods that don’t exist #196

Merged
merged 1 commit into from
Jul 1, 2018

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 27, 2018

stopping could raise 404 if it doesn’t exist (e.g. already deleted). Log this as a warning instead of raising.

stopping could raise 404 if it doesn’t exist (e.g. already deleted). Log this as a warning instead of raising.
Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wieee!!!

Does this mean that if a node is deleted (because we used preemptible nodes for example), the users on the node will be able to respawn later and not get into trouble? =D

Been looking to fix that before but did not feel like a good issue for me to tackle since there was so much uncharted domains for me.

This looks good to me, as far as i can tell.

@minrk
Copy link
Member Author

minrk commented Jul 1, 2018

I'm not sure exactly what cases could cause this. An evicted pod shouldn't result in this failure, since the pod still 'exists' and delete shouldn't fail. I think this can only occur due to a bug where we are calling delete twice (or someone else called delete manually).

@minrk minrk merged commit 82e69f5 into jupyterhub:master Jul 1, 2018
@consideRatio
Copy link
Member

@minrk ah thanks for reasoning about this with me! That is probably what I've experienced rather than an unexpected node shutdown.

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

Successfully merging this pull request may close these issues.

2 participants