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 ingester StatefulSet reconciliation if ingester is in an unhealthy state #597

Merged

Conversation

andreasgerstmayr
Copy link
Collaborator

@andreasgerstmayr andreasgerstmayr commented Sep 11, 2023

Changes to a StatefulSet are not propagated to pods in a broken state (e.g. CrashLoopBackOff)
See kubernetes/kubernetes#67250

Related: #545 (for invalid certificates the ingester never got in a healthy state, and the pods were not updated even when a correct certificate was configured)

I also updated the upgrade test to check for a Ready condition of the TempoStack CR.

@andreasgerstmayr andreasgerstmayr marked this pull request as draft September 11, 2023 11:45
@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2023

Codecov Report

Patch coverage: 62.50% and project coverage change: -0.08% ⚠️

Comparison is base (eca5b6a) 78.20% compared to head (f9e1364) 78.12%.
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #597      +/-   ##
==========================================
- Coverage   78.20%   78.12%   -0.08%     
==========================================
  Files          64       65       +1     
  Lines        4781     4805      +24     
==========================================
+ Hits         3739     3754      +15     
- Misses        864      871       +7     
- Partials      178      180       +2     
Flag Coverage Δ
unittests 78.12% <62.50%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
internal/upgrade/v0_3_0.go 100.00% <ø> (ø)
internal/upgrade/v0_5_0.go 43.75% <43.75%> (ø)
internal/manifests/ingester/ingester.go 89.15% <100.00%> (+0.54%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andreasgerstmayr andreasgerstmayr changed the title Always reconcile ingester StatefulSet Fix ingester StatefulSet reconciliation if ingester is in an unhealthy state Sep 11, 2023
@andreasgerstmayr andreasgerstmayr force-pushed the reconcile-statefulset branch 5 times, most recently from f9e1364 to bd272e2 Compare September 13, 2023 12:29
@andreasgerstmayr andreasgerstmayr marked this pull request as ready for review September 13, 2023 12:43
Changes to a StatefulSet are not propagated to pods in a broken state (e.g. CrashLoopBackOff)
See kubernetes/kubernetes#67250

This is a workaround for the above issue.

Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
@andreasgerstmayr andreasgerstmayr merged commit 15d6e2a into grafana:main Sep 19, 2023
11 checks passed
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

3 participants