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

Changes to the uidmap parameter do not result in actions #652

Open
betelgeuse opened this issue Oct 12, 2023 · 2 comments
Open

Changes to the uidmap parameter do not result in actions #652

betelgeuse opened this issue Oct 12, 2023 · 2 comments

Comments

@betelgeuse
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Steps to reproduce the issue:

  1. change uidmap in podman_container parameters

  2. run task on running container

Describe the results you received:

"changed": false

Describe the results you expected:

"changed": true

Additional information you deem important (e.g. issue happens only occasionally):

Version of the containers.podman collection:
Either git commit if installed from git: git show --summary
Or version from ansible-galaxy if installed from galaxy: ansible-galaxy collection list | grep containers.podman

containers.podman             1.10.3 

Output of ansible --version:

ansible [core 2.15.4]

Output of podman version:

Version:      3.4.4
API Version:  3.4.4
Go Version:   go1.18.1
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64

Package info (e.g. output of rpm -q podman or apt list podman):

podman/jammy-updates,jammy-security,now 3.4.4+ds1-1ubuntu1.22.04.2 amd64 [installed]
@sshnaidm
Copy link
Member

Please provide a playbook for reproducing, it's not clear from the description what is the problem.

@betelgeuse
Copy link
Author

    - name: Example Ubuntu
      containers.podman.podman_container:
        name: example_ubuntu
        image: "docker.io/ubuntu:22.04"
        command: "tail -f"
        network:
          - host
        uidmap:
          - "0:100000:100000"

If you change to this:

    - name: Example Ubuntu
      containers.podman.podman_container:
        name: example_ubuntu
        image: "docker.io/ubuntu:22.04"
        command: "tail -f"
        network:
          - host
        uidmap:
          - "0:200000:200000"

The container is not recreated

TASK [Example Ubuntu] **********************************************************************************************************************************************************************************************************************

ok: [host] => {"actions": [], "changed": false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants