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

kind with podman remote #3057

Open
haarchri opened this issue Jan 7, 2023 · 3 comments
Open

kind with podman remote #3057

haarchri opened this issue Jan 7, 2023 · 3 comments
Labels
area/provider/podman Issues or PRs related to podman kind/external upstream bugs kind/support Categorizes issue or PR as a support question.

Comments

@haarchri
Copy link

haarchri commented Jan 7, 2023

What happened:
we running podman as sidecar container in gitlab-ci pipelines - we configured the following:

$ export DOCKER_HOST=tcp://podman:8888
$ export DOCKER_DRIVER=fuse-overlayfs
$ export DOCKER_TLS_CERTDIR=""
$ export CONTAINER_CONNECTION=tcp://podman:8888
$ export CONTAINER_HOST=tcp://podman:8888

$ kind create cluster --config test/kind-config.yaml
enabling experimental podman provider
Creating cluster "kind" ...
 • Ensuring node image (kindest/node:v1.21.10) 🖼  ...
 ✓ Ensuring node image (kindest/node:v1.21.10) 🖼
 • Preparing nodes 📦   ...
 ✗ Preparing nodes 📦 
ERROR: failed to create cluster: command "podman run --name kind-control-plane --hostname kind-control-plane --label io.x-k8s.kind.role=control-plane --privileged --tmpfs /tmp --tmpfs /run --volume 011549994c011b0585520606d44fc241d77c97d4d4b88e3379e1b68aefec41e3:/var:suid,exec,dev --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --net kind --label io.x-k8s.kind.cluster=kind -e container=podman --publish=127.0.0.1:45791:6443/tcp -e KUBECONFIG=/etc/kubernetes/admin.conf docker.io/kindest/node:v1.21.10" failed with error: exit status [126](https://gitlab.dev.xxx.sh/aws-ops/xxx/-/jobs/8774672#L126)
Command Output: Error: crun: set xattr for `runc.sha256`: Permission denied: OCI permission denied

podman configuration:

#!/bin/bash
echo "starting podman ..."
unset CONTAINER_HOST
podman system service --time 0 unix:///var/run/docker.sock & 
podman system service --time 0 tcp://0.0.0.0:8888

and containers.conf

[containers]
netns="host"
userns="host"
ipcns="host"
utsns="host"
cgroupns="host"
cgroups="disabled"
default_sysctls = []
log_driver = "k8s-file"
[engine]
cgroup_manager = "cgroupfs"
events_logger="file"
runtime="crun"

any idea what is the problem ?

What you expected to happen:

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

Anything else we need to know?:

Environment:

  • kind version: (use kind version):
  • Runtime info: (use docker info or podman info):
  • OS (e.g. from /etc/os-release):
  • Kubernetes version: (use kubectl version):
  • Any proxies or other special environment settings?:
@haarchri haarchri added the kind/bug Categorizes issue or PR as related to a bug. label Jan 7, 2023
@aojea
Copy link
Contributor

aojea commented Jan 7, 2023

looks more like a podman configuration issue , there are some entries related like containers/podman#14284

@aojea aojea added kind/support Categorizes issue or PR as a support question. kind/external upstream bugs and removed kind/bug Categorizes issue or PR as related to a bug. labels Jan 7, 2023
@haarchri
Copy link
Author

haarchri commented Jan 7, 2023

But all other Tools running fine with this podman setup - only kind is with trouble

@BenTheElder
Copy link
Member

It's not KIND's job to make podman run work. This podman run command is used on other hosts.

Command Output: Error: crun: set xattr for runc.sha256: Permission denied: OCI permission denied

This is an issue on the podman side. For some unknown reason it's failing to set attributes on one of the image files by the looks of it.

@BenTheElder BenTheElder added the area/provider/podman Issues or PRs related to podman label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/podman Issues or PRs related to podman kind/external upstream bugs kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants