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: force redownload of Kubelet and kubectl binaries for Flatcar #889

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

dkoshkin
Copy link
Contributor

What problem does this PR solve?:
Force redownload the Kubelet and kubectl binaries for Flatcar.
Without this fix, upgraded Nodes ended up not actually upgrading the Kubelet version.

Which issue(s) does this PR fix?:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Without this fix, upgraded Nodes ended up not actually upgrade the Kubelet version
@dkoshkin dkoshkin requested review from faiq and a team August 31, 2023 17:18
@dkoshkin dkoshkin self-assigned this Aug 31, 2023
@github-actions github-actions bot added the fix label Aug 31, 2023
@dkoshkin
Copy link
Contributor Author

dkoshkin commented Aug 31, 2023

Tested manually by using a dev image to run a pre-provisioned Kubernetes cluster upgrade (note the changed status and the new version):

TASK [packages : Download Kubernetes binaries] *********************************
changed: [10.0.133.34] => (item=kubectl)
changed: [10.0.133.34] => (item=kubelet)
NAME                                         STATUS     ROLES           AGE   VERSION
ip-10-0-130-203.us-west-2.compute.internal   Ready                         <none>          29m     v1.25.4
ip-10-0-131-58.us-west-2.compute.internal    Ready                         <none>          28m     v1.25.4
ip-10-0-132-216.us-west-2.compute.internal   Ready                         control-plane   5m32s   v1.26.6
ip-10-0-133-203.us-west-2.compute.internal   Ready                         <none>          29m     v1.25.4
ip-10-0-133-34.us-west-2.compute.internal    Ready                         control-plane   14m     v1.26.6
ip-10-0-135-27.us-west-2.compute.internal    Ready                         <none>          29m     v1.25.4
ip-10-0-135-99.us-west-2.compute.internal    NotReady,SchedulingDisabled   control-plane   27m     v1.25.4

@@ -57,6 +57,7 @@
mode: 0755
owner: root
group: root
force: true
Copy link
Collaborator

Choose a reason for hiding this comment

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

very interesting catch for preprovisioned case. I think we have to scan the KIB code to make sure we fix similar issues with other binaries.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep I looked at that, this PR was actually a followup to https://d2iq.atlassian.net/browse/D2IQ-95908, we just missed it the first time :(

Copy link
Collaborator

@supershal supershal left a comment

Choose a reason for hiding this comment

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

Thank you.

@dkoshkin dkoshkin merged commit 8e07f9c into main Aug 31, 2023
50 of 51 checks passed
@dkoshkin dkoshkin deleted the dkoshkin/fix-flatcar-kubelet-download branch August 31, 2023 18:59
faiq pushed a commit that referenced this pull request Sep 7, 2023
Without this fix, upgraded Nodes ended up not actually upgrade the Kubelet version
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.

3 participants