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

Fix: "invalid pod status" when running scrips with the kubernetes executor. #1242

Merged

Conversation

olifly
Copy link
Contributor

@olifly olifly commented Jul 22, 2019

Fix for issue: #1223

Signed-off-by: Ólafur Haukur Flygenring olafurh@wuxinextcode.com

…kubernetes api.

Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
…hrown.

Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
}
// undetermined status -- return an empty response
return Collections.emptyMap()
}

throw new K8sResponseException("K8s invalid pod status (missing container status)", resp)
throw new K8sResponseException("K8s Can't determine pod state from status returned by K8s API ", resp)
}
Copy link
Member

Choose a reason for hiding this comment

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

Frankly, I think the previous err message was a bit more informative.

Copy link
Contributor Author

@olifly olifly Jul 23, 2019

Choose a reason for hiding this comment

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

@pditommaso The previous message did not reflect why the Exception was being thrown anymore. The problem is not missing container status, but rather that K8s returned a set of phase and conditions that the code can not determine the pod state (end of function without any resolvement).

I can revert the change to the message, or insert a more informative message of your choice 😄 (I'm really bad at constructing error message btw 🙈)

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough, what about K8s undermined status conditions for pod $podName ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough, what about K8s undermined status conditions for pod $podName ?

Sounds good to me. Will update pull request.

Ólafur Haukur Flygenring added 2 commits July 23, 2019 15:48
Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
@pditommaso pditommaso merged commit 11caac6 into nextflow-io:master Jul 23, 2019
@pditommaso
Copy link
Member

Thanks for this contribution.

@olifly olifly deleted the k8s-missing-container-conditions branch July 26, 2019 10:55
@pditommaso pditommaso added this to the v19.07.0 milestone Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants