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

Buildah/Podman/CRI-O Virtualization Driver #1572

Closed
ekultails opened this issue Nov 8, 2018 · 11 comments

Comments

Projects
None yet
8 participants
@ekultails
Copy link

commented Nov 8, 2018

Issue Type

  • Feature request

Molecule and Ansible details

Ansible 2.7
Molecule 2.19

Molecule installation method (one of):

  • pip

Ansible installation method (one of):

  • OS package

Desired Behavior

Similar to how the docker driver is setup for creating the virtualized environment using containers, Buildah (or even possibly Podman) support could provide the same functionality without the need of root privileges or the docker daemon via the use of CRI-O.

$ molecule init role --role-name example --driver-name buildah

https://docs.ansible.com/ansible/2.7/plugins/connection/buildah.html

@webknjaz

This comment has been minimized.

Copy link
Member

commented Nov 8, 2018

@webknjaz

This comment has been minimized.

Copy link
Member

commented Nov 8, 2018

@TomasTomecek

This comment has been minimized.

Copy link

commented Nov 9, 2018

Related: ansible/ansible#47519

@qinqon

This comment has been minimized.

Copy link

commented Feb 14, 2019

Hello I am looking to work into this, is someone already doing it ?

@webknjaz

This comment has been minimized.

Copy link
Member

commented Feb 15, 2019

@qinqon probably not. Feel free to take a crack on it :)

@6sossomons

This comment has been minimized.

Copy link

commented Jun 5, 2019

Anyone started working on this?

@S1SYPHOS

This comment has been minimized.

Copy link

commented Jun 10, 2019

This would be highly appreciated!

@ekultails

This comment has been minimized.

Copy link
Author

commented Jun 10, 2019

Based on some talks in the TripleO community, the CRI-O virtualization driver would actually probably use podman instead of buildah. Both utilize CRI-O instead of docker. The current road block is a wait on a few more Ansible modules to be finished/polished to better support management operations for podman containers.

@ssbarnea ssbarnea changed the title Buildah Virtualization Driver Buildah/Podman/CRI-O Virtualization Driver Jun 11, 2019

@ssbarnea

This comment has been minimized.

Copy link
Collaborator

commented Jun 11, 2019

When implementing this we may want to consider a fallback mecanisms regarding which container virtualization engine to be used. It would be very useful to be able to tell molecule to "use podman if available but fallback to docker if not", especially as availability varies a lot across various platforms.

As far as I know, nobody is working in adding this now which means that we would welcome any help towards this direction.

@sshnaidm

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2019

I created POC for podman support in #2098 and it even works: https://paste.fedoraproject.org/paste/xmcf-jA99t6alKQTQ2S49Q
This patch still requires polish like removing docker-leftovers.
Also you may have problem with ansible podman plugin connection, it may fail because of "permission denied" so you can use my patch to ansible to fix it: ansible/ansible#57741
The question is - do we want to wait until ansible has podman fully supported, or at least the main functionality? Or it's fine to go with this POC path and then to change podman CLI commands step by step as they are introduced in ansible?
Please comment, thanks.

P.S. for using podman you need to specify

driver:
  name: podman

in your molecule playbook.

@ssbarnea ssbarnea assigned ssbarnea and unassigned ssbarnea Jun 12, 2019

@ssbarnea

This comment has been minimized.

Copy link
Collaborator

commented Jun 12, 2019

I tested the above change and seems to be working.

@helpr helpr bot added pr-merged and removed pr-available labels Jun 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.