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

KUDO init --wait checks statefulset instead of pod #1637

Merged
merged 5 commits into from
Aug 21, 2020
Merged

Conversation

alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Aug 6, 2020

Signed-off-by: Alena Varkockova varkockova.a@gmail.com

What this PR does / why we need it:
Not only --wait, also the health module should read the ready property, not phase == running.

See https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/ for more context.

Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
@alenkacz
Copy link
Contributor Author

alenkacz commented Aug 6, 2020

I'll investigate the failures tomorrow

@alenkacz alenkacz changed the title Health module should also use pod conditions WIP: Health module should also use pod conditions Aug 6, 2020
Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

Checking the pod readiness is certainly an improvement. But I don't quite understand why we don't check KUDO manager StatefulSet status (and check individual Pod s)


s, err := managerContainerStatus(pod)
if err != nil {
pod, err := getFirstReadyPod(client, namespace, selector)
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that I'm looking at it again: why do we check the individual manager pods? It is a StatefulSet so why not simply check that with the healthutil?

Copy link
Contributor Author

@alenkacz alenkacz Aug 19, 2020

Choose a reason for hiding this comment

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

I thought statefulset does not have enough information about readiness but it does so ... thank you :) you're right

Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
@alenkacz alenkacz changed the title WIP: Health module should also use pod conditions Health module uses pod conditions, init --wait checks statefulset instead of pod Aug 20, 2020
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
@alenkacz alenkacz changed the title Health module uses pod conditions, init --wait checks statefulset instead of pod KUDO init --wait checks statefulset instead of pod Aug 20, 2020
Copy link
Member

@ANeumann82 ANeumann82 left a comment

Choose a reason for hiding this comment

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

Nice, this looks much easier

Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

BOOM! 🚢

@alenkacz alenkacz merged commit 6b10260 into main Aug 21, 2020
@alenkacz alenkacz deleted the av/health-ready-pod branch August 21, 2020 07:41
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.

None yet

4 participants