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

Fails to create a cluster using podman provider on macOS #2520

Closed
bodz1lla opened this issue Nov 2, 2021 · 2 comments
Closed

Fails to create a cluster using podman provider on macOS #2520

bodz1lla opened this issue Nov 2, 2021 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@bodz1lla
Copy link

bodz1lla commented Nov 2, 2021

What happened:

$ KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster 
using podman due to KIND_EXPERIMENTAL_PROVIDER
enabling experimental podman provider
Cgroup controller detection is not implemented for Podman. If you see cgroup-related errors, you might need to set systemd property "Delegate=yes", see https://kind.sigs.k8s.io/docs/user/rootless/
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.21.1) 🖼
 ✓ Preparing nodes 📦
 ✗ Writing configuration 📜
ERROR: failed to create cluster: failed to generate kubeadm config content: failed to get kubernetes version from node: failed to get file: command "podman exec --privileged kind-control-plane cat /kind/version" failed with error: exit status 125

$ kind export logs
using podman due to KIND_EXPERIMENTAL_PROVIDER
enabling experimental podman provider
Exporting logs for cluster "kind" to:
/private/var/folders/sx/gyc4n7617fd3xbkz9yhzgj0m0000gn/T/422846131
ERROR: [command "podman exec --privileged kind-control-plane sh -c 'tar --hard-dereference -C /var/log/ -chf - . || (r=$?; [ $r -eq 1 ] || exit $r)'" failed with error: exit status 125, [command "podman exec --privileged kind-control-plane cat /kind/version" failed with error: exit status 125, command "podman exec --privileged kind-control-plane journalctl --no-pager" failed with error: exit status 125, command "podman exec --privileged kind-control-plane journalctl --no-pager -u containerd.service" failed with error: exit status 125, command "podman exec --privileged kind-control-plane journalctl --no-pager -u kubelet.service" failed with error: exit status 125]]

How to reproduce it (as minimally and precisely as possible):

$ KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster

Anything else we need to know?:

$ podman machine list
NAME                     VM TYPE     CREATED     LAST UP            CPUS        MEMORY      DISK SIZE
podman-machine-default*  qemu        4 days ago  Currently running  1           2.147GB     10.74GB

$ podman info | grep cgroup
  cgroupControllers: []
  cgroupManager: systemd
  cgroupVersion: v2

Environment:

  • kind version: v0.11.1
  • Kubernetes version: Client v1.22.2, Server v1.21.1
  • Podman version: 3.4.1
  • macOS Big Sur 11.6
@bodz1lla bodz1lla added the kind/bug Categorizes issue or PR as related to a bug. label Nov 2, 2021
@aojea
Copy link
Contributor

aojea commented Nov 2, 2021

I'm going to close it as duplicate of #2233
You can read more in this comment #2233 (comment)
short history, podman remote is not easy to implement
Thanks for reporting
/close

@k8s-ci-robot
Copy link
Contributor

@aojea: Closing this issue.

In response to this:

I'm going to close it as duplicate of #2233
You can read more in this comment #2233 (comment)
short history, podman remote is not easy to implement
Thanks for reporting
/close

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.

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

No branches or pull requests

3 participants