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

podman 2 not working: Invalid configuration passed to podman driver #8674

Closed
avsej opened this issue Jul 8, 2020 · 3 comments
Closed

podman 2 not working: Invalid configuration passed to podman driver #8674

avsej opened this issue Jul 8, 2020 · 3 comments
Labels
co/podman-driver podman driver issues kind/feature Categorizes issue or PR as related to a new feature. kind/support Categorizes issue or PR as a support question. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@avsej
Copy link

avsej commented Jul 8, 2020

$ minikube start --driver=podman --container-runtime=cri-o
πŸ˜„  minikube v1.12.0-beta.1 on Fedora rawhide
✨  Using the podman (experimental) driver based on user configuration
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”₯  Creating podman container (CPUs=2, Memory=7900MB) ...
🀦  StartHost failed, but will try again: creating host: create: creating: create kic node: create container: sudo -n podman run --cgroup-manager cgroupfs -d -t --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume minikube:/var:exec --cpus=2 -e container=podman --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 gcr.io/k8s-minikube/kicbase:v0.0.10: exit status 125
stdout:

stderr:
Trying to pull gcr.io/k8s-minikube/kicbase:v0.0.10...
Getting image source signatures
Copying blob sha256:f2b9c43fe7e5dcfee42adb18336072154126bc052cc1c578e64d27a8aeaabc97
Copying blob sha256:781c6270286751c77c20928c68fa3edd532f0d3d11108db32020c8840f0ea6cb
Copying blob sha256:90491034717d4c1d1e0b37a4bde4f3a0e26630af7d360b7c0248660ccbef59d5
Copying blob sha256:6dec72d70e516baf9c76109b0d3d1542f7bf69fa25da21ae0ab06b589a07f582
Copying blob sha256:a9c68053c4b2379a9ad5b7306236a13f469cfd18e727dd4e76470af366445b45
Copying blob sha256:0644374a69b53a684ce96ffa959c7a9fea55c38720867fb9254ea3f709e61636
Copying blob sha256:7d9475a68c78e6403970eb1a70baf91aeaa1f36cf52a071a01f4fa51ac4f94d0
Copying blob sha256:20305e6cd9fa93f8202199abddc15d927b8ca1c5bc461ee6c7fc5a3738fb136c
Copying blob sha256:cc8aec2605cb2f1b88c414598d96f53a70cc39e093e4a982979591b53f0a0b44
Copying blob sha256:147ec0f40eb2dbb7d3906ff3b7ef62c2ca741d679c9309720d8175f13cfe9784
Copying blob sha256:a34b7e26efb0c2255534cc23d710b2d8747d6311a94ce52a41bd514abd0d3704
Copying blob sha256:53b3b0343c733500040df369296510f6dd090b515e4313646f0c52b1d815e1fc
Copying blob sha256:3a667579f3adeac7af6134efee36ffe0e1a9ef8a550d83a1541c2b4b8618fcdc
Copying blob sha256:2cc0a3a25d2da7d3c106115755f04919ae8db9c289bf72d05a058df4b841cd4f
Copying blob sha256:ba78a6e7ac6af874e43bc1d2aa935fdccdc3a79f0eb0117b45beaffeae596db0
Copying blob sha256:75bf59f819f340d65c1895937b97214ca6f4108bcc18bf935c3b6b8b03615ab5
Copying blob sha256:55b355e058e0c52c65a7ca60c69fb9bdbd4bb51851c0638a29e5f9d772f07126
Copying blob sha256:5eb2374aa82bb61abe56e52cb990dd2f8a8aa910ab4536bb063b8a1b633229be
Copying blob sha256:26675fae487d7a1041ced1602cbfb91460ee05fda7f41d19186f6f586b6f405c
Copying blob sha256:1fa85ac11c16649dff4a20d880a9e115e2ecb3dfb8ca5f83dfd8969dfb1ff9e7
Copying blob sha256:28d781b31f92d1b171cbbb6d3d682f610830b926ad79944854d42ba145ed61bb
Copying blob sha256:232ef0e74edb397e5645fb44e51ccad39b42e3b679b53df5b82498383dbf1381
Copying config sha256:e6bc41c39dc48b2b472936db36aedb28527ce0f675ed1bc20d029125c9ccf578
Writing manifest to image destination
Storing signatures
Error: invalid config provided: AppArmorProfile and privileged are mutually exclusive options
$ podman version
Version:      2.1.0-dev
API Version:  1
Go Version:   go1.14.3
Built:        Thu Jan  1 03:00:00 1970
OS/Arch:      linux/amd64

The change could be traced to release podman 1.8.1: containers/podman@d65ff6b

https://github.com/containers/podman/blob/1a93857acc4ee1e5a9213e2c22f12802d84cd277/pkg/specgen/container_validate.go#L75-L78

@medyagh
Copy link
Member

medyagh commented Jul 10, 2020

@avsej we dont support podman 2 yet ! downgrade to latest podman 1

@medyagh medyagh changed the title Invalid configuration passed to podman driver: AppArmorProfile and privileged are mutually exclusive options podman 2 not working: Invalid configuration passed to podman driver: AppArmorProfile and privileged are mutually exclusive options Jul 10, 2020
@medyagh
Copy link
Member

medyagh commented Jul 10, 2020

@avsej while we still do NOT support podman 2, we fixed this specific error in latest version of minikube v1.12.0 stable

however there are still other issues with podman2

@medyagh medyagh changed the title podman 2 not working: Invalid configuration passed to podman driver: AppArmorProfile and privileged are mutually exclusive options podman 2 not working: Invalid configuration passed to podman driver Jul 10, 2020
@priyawadhwa priyawadhwa added kind/support Categorizes issue or PR as a support question. kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Jul 13, 2020
@afbjorklund afbjorklund added the co/podman-driver podman driver issues label Jul 21, 2020
@priyawadhwa
Copy link

Hey @avsej as we explicitly don't support podman 2, I'm going to close this issue. Please open another if you have any more questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/podman-driver podman driver issues kind/feature Categorizes issue or PR as related to a new feature. kind/support Categorizes issue or PR as a support question. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

4 participants