-
Notifications
You must be signed in to change notification settings - Fork 229
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: Use containerd binary from path in Flatcar #3040
Fix: Use containerd binary from path in Flatcar #3040
Conversation
Hi @4ch3los. Thanks for your PR. I'm waiting for a kubermatic 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. |
…t release and the binary path has changed Signed-off-by: Kai Fink <kai.fink@yahoo.de>
e04e269
to
a8db51d
Compare
Thank you @4ch3los! You will need to update fixtures too. Please run @ahmedwaleedmalik I think we need same change for the OSM, don't we? |
/test pull-kubeone-test |
Signed-off-by: Kai Fink <kai.fink@yahoo.de>
I wonder if we can make it compatible with the previous flatcar versions (some people run outdated images). Since containerd already is in the diff --git pkg/scripts/render.go pkg/scripts/render.go
index c1d3f76c..3576bb9f 100644
--- pkg/scripts/render.go
+++ pkg/scripts/render.go
@@ -122,7 +122,7 @@ var containerRuntimeTemplates = map[string]string{
Restart=always
Environment=CONTAINERD_CONFIG=/etc/containerd/config.toml
ExecStart=
- ExecStart=/usr/bin/env PATH=\${TORCX_BINDIR}:\${PATH} \${TORCX_BINDIR}/containerd --config \${CONTAINERD_CONFIG}
+ ExecStart=/usr/bin/env PATH=\${TORCX_BINDIR}:\${PATH} containerd --config \${CONTAINERD_CONFIG}
EOF
`),
} |
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.
small suggestion
/cherry-pick release/v1.7 |
@kron4eg: once the present PR merges, I will cherry-pick it on top of release/v1.7 in a new PR and assign it to you. In response to this:
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. |
/cherry-pick release/v1.6 |
@kron4eg: once the present PR merges, I will cherry-pick it on top of release/v1.6 in a new PR and assign it to you. In response to this:
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. |
Signed-off-by: Kai Fink <kai.fink@yahoo.de>
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
LGTM label has been added. Git tree hash: 107fc7724136dca21299dc53cd4bbd3dce538c4f
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kron4eg 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 |
@kron4eg: #3040 failed to apply on top of branch "release/v1.7":
In response to this:
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. |
@kron4eg: #3040 failed to apply on top of branch "release/v1.6":
In response to this:
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. |
Okey, I'll create manual cherrypicks |
* Use containerd binary from path, as flat removed torcx in their newest release and the binary path has changed Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Secured more backwards compatibility and updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> --------- Signed-off-by: Kai Fink <kai.fink@yahoo.de>
* Use containerd binary from path, as flat removed torcx in their newest release and the binary path has changed Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Secured more backwards compatibility and updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> --------- Signed-off-by: Kai Fink <kai.fink@yahoo.de>
* Fix: Use containerd binary from path in Flatcar (#3040) * Use containerd binary from path, as flat removed torcx in their newest release and the binary path has changed Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Secured more backwards compatibility and updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> --------- Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Update OSM to v1.3.4 Signed-off-by: Artiom Diomin <artiom@kubermatic.com> * Fix flatcar containerd version detection Signed-off-by: Artiom Diomin <artiom@kubermatic.com> --------- Signed-off-by: Kai Fink <kai.fink@yahoo.de> Signed-off-by: Artiom Diomin <artiom@kubermatic.com> Co-authored-by: Kai Fink <kai.fink@yahoo.de>
* Fix: Use containerd binary from path in Flatcar (#3040) * Use containerd binary from path, as flat removed torcx in their newest release and the binary path has changed Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Secured more backwards compatibility and updated fixtures Signed-off-by: Kai Fink <kai.fink@yahoo.de> --------- Signed-off-by: Kai Fink <kai.fink@yahoo.de> * Update OSM to v1.2.4 Signed-off-by: Artiom Diomin <artiom@kubermatic.com> * Fix flatcar containerd version detection Signed-off-by: Artiom Diomin <artiom@kubermatic.com> --------- Signed-off-by: Kai Fink <kai.fink@yahoo.de> Signed-off-by: Artiom Diomin <artiom@kubermatic.com> Co-authored-by: Kai Fink <kai.fink@yahoo.de>
What this PR does / why we need it:
With the latest stable release of flatcar(https://www.flatcar.org/releases#release-3815.2.0), they removed the old containerd installation with torcx and moved to the upstream gentoo builds. This results in a broken containerd.service, because the kubeone dropin refers to the torcx path. Both old(LTS) and new versions PATH var contains the binary, so we are safe to just use the binary from PATH.
Which issue(s) this PR fixes:
NONE
What type of PR is this?
/kind bug
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: