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

podman_container rebuilds container because it erroneously thinks network has changed #252

Closed
dsedivec opened this issue May 6, 2021 · 2 comments
Labels
bug/idempotency Bug related to idempotency of modules bug Something isn't working

Comments

@dsedivec
Copy link

dsedivec commented May 6, 2021

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

/kind bug

Description

podman_container keeps wanting to recreate my container because it thinks my network has changed.

Steps to reproduce the issue:

  1. Run ansible-playbook test.yaml --diff (playbook below) two or more times.

Describe the results you received:

On the second run, container test2 is recreated.

Describe the results you expected:

Container test2 is not recreated on the second or successive runs.

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

With the playbook provided below the diff looks like:

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

$ ansible-galaxy collection list | grep containers.podman
containers.podman 1.5.0
containers.podman             1.5.0

Output of ansible --version:

$ ansible --version
ansible 2.10.9
  config file = /Users/dale/repositories/dir/ansible.cfg
  configured module search path = ['/Users/dale/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/dale/.vpy/3.9/lib/python3.9/site-packages/ansible
  executable location = /Users/dale/.vpy/3.9/bin/ansible
  python version = 3.9.4 (default, Apr  6 2021, 12:18:31) [Clang 12.0.0 (clang-1200.0.32.29)]

Output of podman version:

# podman version
Version:      3.1.2
API Version:  3.1.2
Go Version:   go1.16
Built:        Thu Apr 22 06:11:28 2021
OS/Arch:      linux/amd64

Output of podman info --debug:

host:
  arch: amd64
  buildahVersion: 1.20.1
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.0.27-2.fc34.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.27, commit: '
  cpus: 8
  distribution:
    distribution: fedora
    version: "34"
  eventLogger: journald
  hostname: host
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.11.13-300.fc34.x86_64
  linkmode: dynamic
  memFree: 586223616
  memTotal: 16676921344
  ociRuntime:
    name: runc
    package: runc-1.0.0-377.rc93.fc34.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc93
      commit: 48389904331fdebba5e2db73147c067560a51d80
      spec: 1.0.2-dev
      go: go1.16
      libseccomp: 2.5.0
  os: linux
  remoteSocket:
    path: /run/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    selinuxEnabled: true
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 17177763840
  swapTotal: 17179860992
  uptime: 103h 8m 19.43s (Approximately 4.29 days)
registries:
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - docker.io
  - quay.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 3
    paused: 0
    running: 3
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev,metacopy=on
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "true"
  imageStore:
    number: 8
  runRoot: /run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 3.1.2
  Built: 1619097088
  BuiltTime: Thu Apr 22 06:11:28 2021
  GitCommit: ""
  GoVersion: go1.16
  OsArch: linux/amd64
  Version: 3.1.2

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

# rpm -q podman
podman-3.1.2-1.fc34.x86_64

Playbok you run with ansible (e.g. content of playbook.yaml):

- hosts: all
  tasks:
    - name: Create container 1
      containers.podman.podman_container:
        name: test1
        state: started
        image: docker.io/praqma/network-multitool
        detach: yes

    - name: Create container 2
      containers.podman.podman_container:
        name: test2
        state: started
        image: docker.io/praqma/network-multitool
        detach: yes
        network: ['container:test1']

Command line and output of ansible run with high verbosity

Please NOTE: if you submit a bug about idempotency, run the playbook with --diff option, like:

ansible-playbook -i inventory --diff -vv playbook.yml

ansible-playbook 2.10.9
  config file = /Users/dale/repositories/host_v2/ansible.cfg
  configured module search path = ['/Users/dale/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/dale/.vpy/3.9/lib/python3.9/site-packages/ansible
  executable location = /Users/dale/.vpy/3.9/bin/ansible-playbook
  python version = 3.9.4 (default, Apr  6 2021, 12:18:31) [Clang 12.0.0 (clang-1200.0.32.29)]
Using /Users/dale/repositories/host_v2/ansible.cfg as config file
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.

PLAYBOOK: test.yaml ************************************************************
1 plays in test.yaml

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
task path: /Users/dale/repositories/host_v2/test.yaml:1
ok: [host]
META: ran handlers

TASK [Create container 1] ******************************************************
task path: /Users/dale/repositories/host_v2/test.yaml:3
ok: [host] => {"actions": [], "changed": false, "container": {"AppArmorProfile": "", "Args": ["/docker-entrypoint.sh", "/usr/sbin/nginx", "-g", "daemon off;"], "BoundingCaps": ["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FOWNER", "CAP_FSETID", "CAP_KILL", "CAP_NET_BIND_SERVICE", "CAP_SETFCAP", "CAP_SETGID", "CAP_SETPCAP", "CAP_SETUID", "CAP_SYS_CHROOT"], "Config": {"Annotations": {"io.container.manager": "libpod", "io.kubernetes.cri-o.Created": "2021-05-06T04:49:55.390425392-07:00", "io.kubernetes.cri-o.TTY": "false", "io.podman.annotations.autoremove": "FALSE", "io.podman.annotations.init": "FALSE", "io.podman.annotations.privileged": "FALSE", "io.podman.annotations.publish-all": "FALSE", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": ["/usr/sbin/nginx", "-g", "daemon off;"], "CreateCommand": ["podman", "container", "run", "--name", "test1", "--detach=True", "docker.io/praqma/network-multitool"], "Domainname": "", "Entrypoint": "/bin/sh /docker-entrypoint.sh", "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm", "container=podman", "HOME=/root", "HOSTNAME=42be65eec3f2"], "Hostname": "42be65eec3f2", "Image": "docker.io/praqma/network-multitool", "Labels": null, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "StopSignal": 15, "Tty": false, "Umask": "0022", "User": "", "Volumes": null, "WorkingDir": "/"}, "ConmonPidFile": "/run/user/1000/containers/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/conmon.pid", "Created": "2021-05-06T04:49:55.390425392-07:00", "Dependencies": [], "Driver": "overlay", "EffectiveCaps": ["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FOWNER", "CAP_FSETID", "CAP_KILL", "CAP_NET_BIND_SERVICE", "CAP_SETFCAP", "CAP_SETGID", "CAP_SETPCAP", "CAP_SETUID", "CAP_SYS_CHROOT"], "ExecIDs": [], "ExitCommand": ["/usr/bin/podman", "--root", "/home/dale/.local/share/containers/storage", "--runroot", "/run/user/1000/containers", "--log-level", "warning", "--cgroup-manager", "systemd", "--tmpdir", "/run/user/1000/libpod/tmp", "--runtime", "runc", "--storage-driver", "overlay", "--storage-opt", "overlay.mount_program=/usr/bin/fuse-overlayfs", "--events-backend", "journald", "container", "cleanup", "42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b"], "GraphDriver": {"Data": {"LowerDir": "/home/dale/.local/share/containers/storage/overlay/54abb0122b9c1aefcfc6462944ef4938f8cd6c23d20d528b72671bd39a2c6a0d/diff:/home/dale/.local/share/containers/storage/overlay/35aee27ba4d52e922df29ed36ec6541839dd11196a42f5cda07825bb12404252/diff:/home/dale/.local/share/containers/storage/overlay/040ad66158d8bf016a2af84f19049fd057db821864bd01e6eb72a3301d51c4f5/diff:/home/dale/.local/share/containers/storage/overlay/a8ed926952c3477f1ca479ad1536ed27cfd5f27c1cf4a218984dc63bebe3d89c/diff:/home/dale/.local/share/containers/storage/overlay/b2d5eeeaba3a22b9b8aa97261957974a6bd65274ebd43e1d81d0a7b8b752b116/diff", "MergedDir": "/home/dale/.local/share/containers/storage/overlay/bd2c7a7e38940211998933bed7bc4358191b6047a2ddb28de602a03ec6774adf/merged", "UpperDir": "/home/dale/.local/share/containers/storage/overlay/bd2c7a7e38940211998933bed7bc4358191b6047a2ddb28de602a03ec6774adf/diff", "WorkDir": "/home/dale/.local/share/containers/storage/overlay/bd2c7a7e38940211998933bed7bc4358191b6047a2ddb28de602a03ec6774adf/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": [], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": ["CAP_AUDIT_WRITE", "CAP_MKNOD", "CAP_NET_RAW"], "Cgroup": "", "CgroupConf": null, "CgroupManager": "systemd", "CgroupMode": "private", "CgroupParent": "user.slice", "Cgroups": "default", "ConsoleSize": [0, 0], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DiskQuota": 0, "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": [], "GroupAdd": [], "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Path": "/home/dale/.local/share/containers/storage/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/ctr.log", "Size": "0B", "Tag": "", "Type": "k8s-file"}, "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": 0, "NanoCpus": 0, "NetworkMode": "slirp4netns", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "private", "PidsLimit": 2048, "PortBindings": {}, "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "RestartPolicy": {"MaximumRetryCount": 0, "Name": ""}, "Runtime": "oci", "SecurityOpt": [], "ShmSize": 65536000, "Tmpfs": {}, "UTSMode": "private", "Ulimits": [], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/hosts", "Id": "42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b", "Image": "293c239dd855827d9037ee498ad57b0e09147fe3324b39e8a48f7d5547d1e7e9", "ImageName": "docker.io/praqma/network-multitool", "IsInfra": false, "MountLabel": "system_u:object_r:container_file_t:s0:c666,c943", "Mounts": [], "Name": "test1", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/cni-409b75d2-bce2-e697-ae25-312a4e26a682"}, "OCIConfigPath": "/home/dale/.local/share/containers/storage/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/config.json", "OCIRuntime": "runc", "Path": "/bin/sh", "Pod": "", "ProcessLabel": "system_u:system_r:container_t:s0:c666,c943", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"ConmonPid": 236434, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Healthcheck": {"FailingStreak": 0, "Log": null, "Status": ""}, "OOMKilled": false, "OciVersion": "1.0.2-dev", "Paused": false, "Pid": 236449, "Restarting": false, "Running": true, "StartedAt": "2021-05-06T04:49:56.020915021-07:00", "Status": "running"}, "StaticDir": "/home/dale/.local/share/containers/storage/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata"}, "podman_actions": [], "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Create container 2] ******************************************************
task path: /Users/dale/repositories/host_v2/test.yaml:10
--- before
+++ after
@@ -1 +1 @@
-network - []
+network - ['container:test1']

changed: [host] => {"actions": ["recreated test2"], "changed": true, "container": {"AppArmorProfile": "", "Args": ["/docker-entrypoint.sh", "/usr/sbin/nginx", "-g", "daemon off;"], "BoundingCaps": ["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FOWNER", "CAP_FSETID", "CAP_KILL", "CAP_NET_BIND_SERVICE", "CAP_SETFCAP", "CAP_SETGID", "CAP_SETPCAP", "CAP_SETUID", "CAP_SYS_CHROOT"], "Config": {"Annotations": {"io.container.manager": "libpod", "io.kubernetes.cri-o.Created": "2021-05-06T04:56:20.090073384-07:00", "io.kubernetes.cri-o.TTY": "false", "io.podman.annotations.autoremove": "FALSE", "io.podman.annotations.init": "FALSE", "io.podman.annotations.privileged": "FALSE", "io.podman.annotations.publish-all": "FALSE", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": ["/usr/sbin/nginx", "-g", "daemon off;"], "CreateCommand": ["podman", "container", "run", "--name", "test2", "--detach=True", "--network", "container:test1", "docker.io/praqma/network-multitool"], "Domainname": "", "Entrypoint": "/bin/sh /docker-entrypoint.sh", "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm", "container=podman", "HOME=/root", "HOSTNAME=2f0daaa101a7"], "Hostname": "2f0daaa101a7", "Image": "docker.io/praqma/network-multitool", "Labels": null, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "StopSignal": 15, "Tty": false, "Umask": "0022", "User": "", "Volumes": null, "WorkingDir": "/"}, "ConmonPidFile": "/run/user/1000/containers/overlay-containers/2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f/userdata/conmon.pid", "Created": "2021-05-06T04:56:20.090073384-07:00", "Dependencies": ["42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b"], "Driver": "overlay", "EffectiveCaps": ["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FOWNER", "CAP_FSETID", "CAP_KILL", "CAP_NET_BIND_SERVICE", "CAP_SETFCAP", "CAP_SETGID", "CAP_SETPCAP", "CAP_SETUID", "CAP_SYS_CHROOT"], "ExecIDs": [], "ExitCommand": ["/usr/bin/podman", "--root", "/home/dale/.local/share/containers/storage", "--runroot", "/run/user/1000/containers", "--log-level", "warning", "--cgroup-manager", "systemd", "--tmpdir", "/run/user/1000/libpod/tmp", "--runtime", "runc", "--storage-driver", "overlay", "--storage-opt", "overlay.mount_program=/usr/bin/fuse-overlayfs", "--events-backend", "journald", "container", "cleanup", "2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f"], "GraphDriver": {"Data": {"LowerDir": "/home/dale/.local/share/containers/storage/overlay/54abb0122b9c1aefcfc6462944ef4938f8cd6c23d20d528b72671bd39a2c6a0d/diff:/home/dale/.local/share/containers/storage/overlay/35aee27ba4d52e922df29ed36ec6541839dd11196a42f5cda07825bb12404252/diff:/home/dale/.local/share/containers/storage/overlay/040ad66158d8bf016a2af84f19049fd057db821864bd01e6eb72a3301d51c4f5/diff:/home/dale/.local/share/containers/storage/overlay/a8ed926952c3477f1ca479ad1536ed27cfd5f27c1cf4a218984dc63bebe3d89c/diff:/home/dale/.local/share/containers/storage/overlay/b2d5eeeaba3a22b9b8aa97261957974a6bd65274ebd43e1d81d0a7b8b752b116/diff", "MergedDir": "/home/dale/.local/share/containers/storage/overlay/ea35fa004b688dce0fff80c30eb319d82f48d25ed2e2ccacee79735f560b684e/merged", "UpperDir": "/home/dale/.local/share/containers/storage/overlay/ea35fa004b688dce0fff80c30eb319d82f48d25ed2e2ccacee79735f560b684e/diff", "WorkDir": "/home/dale/.local/share/containers/storage/overlay/ea35fa004b688dce0fff80c30eb319d82f48d25ed2e2ccacee79735f560b684e/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": [], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": ["CAP_AUDIT_WRITE", "CAP_MKNOD", "CAP_NET_RAW"], "Cgroup": "", "CgroupConf": null, "CgroupManager": "systemd", "CgroupMode": "private", "CgroupParent": "user.slice", "Cgroups": "default", "ConsoleSize": [0, 0], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DiskQuota": 0, "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": [], "GroupAdd": [], "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Path": "/home/dale/.local/share/containers/storage/overlay-containers/2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f/userdata/ctr.log", "Size": "0B", "Tag": "", "Type": "k8s-file"}, "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": 0, "NanoCpus": 0, "NetworkMode": "container:42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "private", "PidsLimit": 2048, "PortBindings": {}, "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "RestartPolicy": {"MaximumRetryCount": 0, "Name": ""}, "Runtime": "oci", "SecurityOpt": [], "ShmSize": 65536000, "Tmpfs": {}, "UTSMode": "private", "Ulimits": [], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/hosts", "Id": "2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f", "Image": "293c239dd855827d9037ee498ad57b0e09147fe3324b39e8a48f7d5547d1e7e9", "ImageName": "docker.io/praqma/network-multitool", "IsInfra": false, "MountLabel": "system_u:object_r:container_file_t:s0:c91,c248", "Mounts": [], "Name": "test2", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/cni-409b75d2-bce2-e697-ae25-312a4e26a682"}, "OCIConfigPath": "/home/dale/.local/share/containers/storage/overlay-containers/2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f/userdata/config.json", "OCIRuntime": "runc", "Path": "/bin/sh", "Pod": "", "ProcessLabel": "system_u:system_r:container_t:s0:c91,c248", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/42be65eec3f2fdad98b22bb646e305c36952e6a14561cc5b6b57d4baec88613b/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"ConmonPid": 238595, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Healthcheck": {"FailingStreak": 0, "Log": null, "Status": ""}, "OOMKilled": false, "OciVersion": "1.0.2-dev", "Paused": false, "Pid": 238610, "Restarting": false, "Running": true, "StartedAt": "2021-05-06T04:56:20.479963487-07:00", "Status": "running"}, "StaticDir": "/home/dale/.local/share/containers/storage/overlay-containers/2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f/userdata"}, "podman_actions": ["podman rm -f test2", "podman run --name test2 --detach=True --network container:test1 docker.io/praqma/network-multitool"], "stderr": "", "stderr_lines": [], "stdout": "2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f\n", "stdout_lines": ["2f0daaa101a780eaf7ccbde5956c6301742dd1887de490b14b846abefc0e0e3f"]}
META: ran handlers
META: ran handlers

PLAY RECAP *********************************************************************
host                      : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

Additional environment details (AWS, VirtualBox, physical, etc.):

Running on FC 34 on bare metal.

@sshnaidm sshnaidm added bug Something isn't working bug/idempotency Bug related to idempotency of modules labels May 6, 2021
@wbh1
Copy link

wbh1 commented May 11, 2021

Same issue here. Same versions. podman inspect <container> doesn't show what network(s) the container is joined to, so I would guess that's why it gets flagged as not applied. However, the correct network settings are applied, so I know that it did, in fact, join the network.

TASK [logstash : spin up Logstash containers] ******************************************************************************************************************************************************
task path: /home/wbhegedus/bitbucket/oe/ansible_elasticsearch/roles/logstash/tasks/main.yml:78
--- before
+++ after
@@ -1 +1 @@
-network - []
+network - ['podman_logstash']

@d-rupp
Copy link

d-rupp commented Jun 9, 2021

Same here

sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 2, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 16, 2021
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/idempotency Bug related to idempotency of modules bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants