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

Try to make the podman driver less "experimental", for podman version 3.0 #10237

Closed
afbjorklund opened this issue Jan 23, 2021 · 8 comments · Fixed by #10458
Closed

Try to make the podman driver less "experimental", for podman version 3.0 #10237

afbjorklund opened this issue Jan 23, 2021 · 8 comments · Fixed by #10458
Assignees
Labels
co/podman-driver podman driver issues help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. os/linux priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone

Comments

@afbjorklund
Copy link
Collaborator

afbjorklund commented Jan 23, 2021

There is a new version of podman being prepared: v3.0.0

This is the release track that will go into next RHEL (previously based on first 1.6.4 and then 2.0.5)

Hopefully this means that the podman driver is finally stable enough to be made non-experimental.


The main features are support for the docker socket and for docker compose, so nothing breaking ?

Support for podman has already been merged, and both KIC and ISO are currently running v2.2.1

From the "Podman v3.0.0-rc1 is now available for testing" post:

We are anticipating a final release in several weeks. We will publish
a second release candidate next Monday, and if no major bugs are
identified, the 3.0.0 final release will be the subsequent Monday,
February 1.

@afbjorklund afbjorklund added co/podman-driver podman driver issues os/linux kind/feature Categorizes issue or PR as related to a new feature. labels Jan 23, 2021
@afbjorklund afbjorklund added this to the v1.18.0-candidate milestone Jan 23, 2021
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Jan 23, 2021

Preferrably this should be tested on Fedora, and by using the container runtime CRI-O...

Note that it has some other quirks, like using selinux + cgroups v2 and running on "btrfs":

The CentOS Linux distribution has now been deprecated (ends 2021-12-31, no version 9)

So this means Fedora is the primary testing target, before Red Hat Enterprise Linux (RHEL).


See this workaround for btrfs: #10182 (comment)

It is also possible to use ext4, or xfs, during install.

@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Jan 24, 2021

Note: You can also run Fedora with cgroups v1, ext4 and "moby-engine" (19.03).

"But where is the fun in that"

The main reason for supporting podman and cri-o is for RHEL

@priyawadhwa priyawadhwa added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Jan 25, 2021
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Feb 9, 2021

Minikube seemed to be working more or less OK with podman 3.0.0-rc2.

But needless to say there were bugs, and we now have a RC3 instead...

https://github.com/containers/podman/releases/tag/v3.0.0-rc3

More testing with minikube is needed, especially on Fedora (or on RHEL)

@afbjorklund afbjorklund added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Feb 10, 2021
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Feb 12, 2021

Podman 3.0 has been released: https://github.com/containers/podman/releases/tag/v3.0.0

Should be compatible with Podman 2.1 and 2.2 as well, but not with the earlier 1.9 and 2.0.

@afbjorklund
Copy link
Collaborator Author

@medya said:

how about we add Funcitonal Test on Github Action for Podman before we bump up the priority?

@efussi
Copy link

efussi commented Feb 15, 2021

FWIW, I upgraded to podman version 3.0 and tried to start minikube, but it failed:

$ minikube start --driver podman
😄  minikube v1.17.1 on Ubuntu 20.04 (vbox/amd64)
✨  Using the podman (experimental) driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🔥  Creating podman container (CPUs=2, Memory=6144MB) ...
✋  Stopping node "minikube"  ...
🔥  Deleting "minikube" in podman ...
🤦  StartHost failed, but will try again: creating host: create: creating: create kic node: container name "minikube": log: 2021-02-15T10:50:15.670134241+01:00 + dmesg
2021-02-15T10:50:15.670216253+01:00 + tail
2021-02-15T10:50:15.675879557+01:00 + sleep 1
2021-02-15T10:50:16.676836568+01:00 + exit 30: container exited unexpectedly
🔥  Creating podman container (CPUs=2, Memory=6144MB) ...
😿  Failed to start podman container. Running "minikube delete" may fix it: creating host: create: creating: setting up container node: creating volume for minikube container: sudo -n podman volume create minikube --label name.minikube.sigs.k8s.io=minikube --label created_by.minikube.sigs.k8s.io=true: exit status 125
stdout:

stderr:
Error: volume with name minikube already exists: volume already exists


❌  Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: creating: setting up container node: creating volume for minikube container: sudo -n podman volume create minikube --label name.minikube.sigs.k8s.io=minikube --label created_by.minikube.sigs.k8s.io=true: exit status 125

Seems the restart tries to create a volume that still exists from the earlier attempt (I ran podman system reset and minikube delete --all before minikube start --driver podman).

@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Feb 15, 2021

You need to run a version that includes PR #10435 (i.e. latest/greatest)

Or just sudo podman volume rm minikube to clean up after the old one

@afbjorklund
Copy link
Collaborator Author

Works OK with Podman 3.0.1 now

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 help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. os/linux 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

Successfully merging a pull request may close this issue.

4 participants