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 channel sync bug racy symptom #579

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

frelon
Copy link
Contributor

@frelon frelon commented Dec 11, 2023

During upgrades we have a race-condition for the ManagedOSVersionChannels.

This commit checks to see if a ManagedOSVersionChannel syncer pod was created with another image than the provided elemental-operator and if true, will delete the old pod and recreate the syncer pod.

During upgrades we have a race-condition for the
ManagedOSVersionChannels.

This commit checks to see if a ManagedOSVersionChannel syncer pod was
created with another image than the provided elemental-operator and if
true, will delete the old pod and recreate the syncer pod.

Signed-off-by: Fredrik Lönnegren <[email protected]>
@frelon frelon requested a review from a team as a code owner December 11, 2023 16:17
@frelon frelon mentioned this pull request Dec 11, 2023
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (80eb846) 54.11% compared to head (35f13ec) 54.07%.

Files Patch % Lines
controllers/managedosversionchannel_controller.go 0.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #579      +/-   ##
==========================================
- Coverage   54.11%   54.07%   -0.04%     
==========================================
  Files          39       39              
  Lines        6008     6012       +4     
==========================================
  Hits         3251     3251              
- Misses       2474     2477       +3     
- Partials      283      284       +1     

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

Copy link
Contributor

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

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

Looks good to me.

If this alone solves the issue I prefer this change over #578

@frelon frelon merged commit cfdcb4a into rancher:main Dec 11, 2023
25 checks passed
@frelon frelon linked an issue Dec 12, 2023 that may be closed by this pull request
@frelon frelon deleted the channel-sync-bug2 branch December 20, 2023 13:57
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.

ManagedOSVersionChannels unavailable after upgrade
2 participants