-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Spicify the runc path when we use the containerd container engine and change the bin_dir path. #10154
Conversation
Hi @qlijin. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
@@ -35,7 +35,11 @@ oom_score = {{ containerd_oom_score }} | |||
|
|||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ runtime.name }}.options] | |||
{% for key, value in runtime.options.items() %} | |||
{% if value|bool %} |
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.
Here you wanted to check if it's a boolean to not add quote right?
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 systemdCgroup is boolean, it cannot be quoted. And the binaryName var is string type.
They need to be treated separatorly. Otherwise it will raise error
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.
I am pretty sure this doesn't work then, what if the value is supposed to be false for instance? It will be converted to a boolean and will go into the else...
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. I'll check the var is boolean type or not. Thank you~
and change the bin_dir path. Signed-off-by: Jin Li <[email protected]>
Co-authored-by: Arthur Outhenin-Chalandre <[email protected]>
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.
Thanks for your contribution and bearing with me! :D
/lgtm
/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.
@qlijin Thank you 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, MrFreezeex, qlijin 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 |
… change the bin_dir path. (kubernetes-sigs#10154) * Specify the runc path when we use the containerd container engine and change the bin_dir path. Signed-off-by: Jin Li <[email protected]> * Update roles/container-engine/containerd/templates/config.toml.j2 Co-authored-by: Arthur Outhenin-Chalandre <[email protected]> --------- Signed-off-by: Jin Li <[email protected]> Co-authored-by: Arthur Outhenin-Chalandre <[email protected]>
… change the bin_dir path. (kubernetes-sigs#10154) * Specify the runc path when we use the containerd container engine and change the bin_dir path. Signed-off-by: Jin Li <[email protected]> * Update roles/container-engine/containerd/templates/config.toml.j2 Co-authored-by: Arthur Outhenin-Chalandre <[email protected]> --------- Signed-off-by: Jin Li <[email protected]> Co-authored-by: Arthur Outhenin-Chalandre <[email protected]>
What type of PR is this?
/kind bug
What this PR does / why we need it:
when we use the containerd container engine and change the bin_dir path, the installation will stop and with kubelet error:
May 26 02:19:44 localhost containerd: time="2023-05-26T02:19:44.252978056-04:00" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:kube-scheduler-node1,Uid:bd557bf0bab279ad21231c6c93dfdecb,Namespace:kube-system,Attempt:0,} failed, error" error="failed to create containerd task: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/k8s.io/5d728ef6fd58040d715c1f60923185eee7645e0fbc5d9b7feb27760bc1ba329d/log.json: no such file or directory): exec: \"runc\": executable file not found in $PATH: unknown
bugfix:
we need import the binaryName param metioned in the document:
https://github.com/kubernetes-sigs/kubespray/blob/master/docs/containerd.md?plain=1#L58
Does this PR introduce a user-facing change?: