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

etcdctl copy operation not work in crio #10240

Closed
yckaolalala opened this issue Jun 20, 2023 · 1 comment · Fixed by #10242
Closed

etcdctl copy operation not work in crio #10240

yckaolalala opened this issue Jun 20, 2023 · 1 comment · Fixed by #10242
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@yckaolalala
Copy link
Contributor

nerctl not support crio and not installed if container_manager is crio

Kubespray version (commit) (git rev-parse --short HEAD):

#10230

Full inventory with variables (ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"):

container_manager: crio
etcd_deployment_type: kubeadm
TASK [etcdctl : Copy etcdctl script to host] *****************************************************************************************************************
fatal: [k8s-192-168-57-17]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/nerdctl cp \"$(/usr/local/bin/crictl ps -q --image quay.io/coreos/etcd:v3.5.6)\":/usr/local/bin/etcdctl /var/lib/etcd/etcdctl", "delta": "0:00:00.038258", "end": "2023-06-20 06:44:37.852183", "msg": "non-zero return code", "rc": 127, "start": "2023-06-20 06:44:37.813925", "stderr": "/bin/sh: /usr/local/bin/nerdctl: No such file or directory", "stderr_lines": ["/bin/sh: /usr/local/bin/nerdctl: No such file or directory"], "stdout": "", "stdout_lines": []}
@yckaolalala yckaolalala added the kind/bug Categorizes issue or PR as related to a bug. label Jun 20, 2023
@MrFreezeex
Copy link
Member

MrFreezeex commented Jun 20, 2023

AFAIK nerdctl does support crio but that's true that we don't install it in crio like in containerd (we don't have the dependency to container-engine/nerdctl in crio like we would in roles/container-engine/containerd/meta/main.yml and we probably should). That being said the implementation of nerdctl seems to require tar in the container like kubernetes/kubectl does and afaics etcd does not have tar inside its image :(.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants