Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Fixing podman flags order sequence in create task #36

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

mrbrandao
Copy link
Contributor

These changes moves the podman flags:
--storage-opt, --storage-driver and --cgroup-manager to be called
before the run command.
This fix a execution fail when using some of those flags in the
molecule.yml file.

e.g:

this:

podman --cgroup-manager=cgroupfs
--storage-opt=overlay.mount_program=/usr/bin/fuse-overlayfs
--storage-driver=overlay run -d --name node.local
--privileged=True --volume /dev/fuse:/dev/fuse:rw --tmpfs=/run
--tmpfs=/tmp --hostname=node.local
docker.io/pycontribs/centos:8 /sbin/init

instead of this:

podman run -d --name node.local  --privileged=True
--volume /dev/fuse:/dev/fuse:rw --tmpfs=/run --tmpfs=/tmp
--hostname=node.local --cgroup-manager=cgroupfs
--storage-opt=overlay.mount_program=/usr/bin/fuse-overlayfs
--storage-driver=overlay
docker.io/pycontribs/centos:8 /sbin/init

These changes moves the podman flags:
`--storage-opt`, `--storage-driver` and `--cgroup-manager` to be called
before the `run` command.
This fix a execution fail when using some of those flags in the
`molecule.yml` file.

e.g:

this:
```bash
podman --cgroup-manager=cgroupfs
--storage-opt=overlay.mount_program=/usr/bin/fuse-overlayfs
--storage-driver=overlay run -d --name node.local
--privileged=True --volume /dev/fuse:/dev/fuse:rw --tmpfs=/run
--tmpfs=/tmp --hostname=node.local
docker.io/pycontribs/centos:8 /sbin/init
```

instead of this:
```bash
podman run -d --name node.local  --privileged=True
--volume /dev/fuse:/dev/fuse:rw --tmpfs=/run --tmpfs=/tmp
--hostname=node.local --cgroup-manager=cgroupfs
--storage-opt=overlay.mount_program=/usr/bin/fuse-overlayfs
--storage-driver=overlay
docker.io/pycontribs/centos:8 /sbin/init
```
@mrbrandao mrbrandao marked this pull request as draft June 3, 2021 13:31
@mrbrandao mrbrandao requested a review from sshnaidm June 3, 2021 13:32
@mrbrandao
Copy link
Contributor Author

I've converted back to draft by mistake, is there anything expected from me regarding the CI pending status? Or I can just wait? Please let me know, cheers

@mrbrandao mrbrandao marked this pull request as ready for review June 4, 2021 18:02
@ssbarnea ssbarnea added the bug This issue/PR relates to a bug. label Jun 16, 2021
@ssbarnea ssbarnea closed this Jun 16, 2021
@ssbarnea ssbarnea reopened this Jun 16, 2021
@ssbarnea ssbarnea merged commit 38b16b8 into ansible-community:master Jun 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants