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
Upgrade etcd to 3.5.1 #105706
Upgrade etcd to 3.5.1 #105706
Conversation
@uthark: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @uthark. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@uthark: GitHub didn't allow me to assign the following users: sttt. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/retest-required
/lgtm |
@@ -28,7 +28,7 @@ import ( | |||
) | |||
|
|||
var ( | |||
supportedEtcdVersions = []string{"3.0.17", "3.1.12", "3.2.24", "3.3.17", "3.4.13", "3.5.0"} | |||
supportedEtcdVersions = []string{"3.0.17", "3.1.12", "3.2.24", "3.3.17", "3.4.13", "3.5.1"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
append instead of replace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for replacing.
In https://github.com/etcd-io/etcd/blob/main/CHANGELOG-3.5.md, the recommended is 3.5.1+.
The minimum recommended etcd versions to run in production are 3.2.28+, 3.3.18+, 3.4.2+, and 3.5.1+.
In https://github.com/kubernetes/kubernetes/pull/105706/files#diff-afb644eceb2c0d53027d3e3815f43f489b31b34d18f5402a626f2fbfd4b6eb52R291, kubeadm mark 3.2.18
as the min external etcd version.
Should we remove "3.0.17", "3.1.12"
here as well? Or the bundled/supported versions should maintain the old versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The list of old etcd vesions in kubeadm is stale. So cleaning them here or separate PR is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, this list isn't related to kubeadm, right? cc @mborsz for feedback on whether append or replace is correct here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doing blame on this line:
https://github.com/kubernetes/kubernetes/blame/e7c3138d94ed4f85073d6d3de543a668c9d60d11/cluster/images/etcd/migrate/options.go#L31
reveals that we always replaced a certain etcd MAJOR.MINOR version with the latest revision or PATCH that we have for the same MINOR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list is used to decide on which etcd binary to run. Image has multiple binaries to allow handling data on disk from any 3.X version to latest version in image. As Etcd only supports compatibility +/- 1 minor versions we have one version per minor. This means that we should replace "3.5.0" with "3.5.1" as we just need the latest "3.5" binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
For kubeadm
/assign @mborsz for the append-or-replace question in cluster/images/etcd/migrate/options.go lgtm otherwise |
/assign @mm4tt |
we seem to be bundling the wrong etcd version (3.4.x) in the prior (3.5.0) image: i can't seem to figure out if this is a image promotion problem or something that can be fixed in this PR. |
(EDIT: that seems to be a problem for the !amd64 image(s)) |
this increment seems fine for 1.23 and the 3.5.0 !amd64 image problems are not present in the new 3.5.1 image. looks like there is one pending question here: |
Hope I clarified the append vs replace discussion. I think we should be able to merge this PR. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BinacsLee, chirangaalwis, dims, justaugustus, liggitt, neolit123, uthark The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Upgrade to new etcd to fix issue with v2 storage.
Issue: etcd-io/etcd#13196
PR: etcd-io/etcd#13348
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: