-
Notifications
You must be signed in to change notification settings - Fork 658
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
wants tmpfs to be dict, not list #4140
Comments
We had the same issue last week. While digging into this, it turned out that the Podman module that is a requirement for Molecule, is requiring the tmpfs parameter to be a dictionary. 1 Footnotes
|
There's another solution. Note that podman has a --systemd switch platforms:
- name: instance
image: registry.access.redhat.com/ubi8/ubi-init
systemd: always
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
... |
Search for --systemd in the manpage |
So if I want to work
But it didn't work. |
This is related to: ansible-community/molecule-plugins#242 The only workaround Ive found so far is to pin to |
This solution worked for me with the addition that the image you are testing needs to use systemd as the command to run platforms:
- name: instance
image: docker.io/fedora:40
# Make some changes to the base image and install systemd
dockerfile: Dockerfile.j2
# use systemd as init system and mount required directories
# https://docs.podman.io/en/latest/markdown/podman-run.1.html#systemd-true-false-always
systemd: true
# explicitly run systemd as Pid 1
command: /sbin/init
To test if its working you could try running a task like this - become: true
ansible.builtin.systemd_service:
daemon_reload: true |
It depends how the container was built. [1] from podman-run(1)
But neither |
Prerequisites
pip check
does not report any conflictsEnvironment
Rhel8
What happened
After the latest molecule release, we are facing an issue
wants tmpfs to be dict, not list
.You can find the error details here - https://github.com/jboss-set/zeus/actions/runs/7929838122/job/21650874109?pr=240#step:6:90
Reproducing example
The text was updated successfully, but these errors were encountered: