containers / ansible-podman-collections

Repository for Ansible content that can include playbooks, roles, modules, and plugins for use with the Podman tool
GNU General Public License v3.0
270 stars 148 forks source link

"healtcheck" parameter does not behave in an idempotent manner #657

Closed idelsink closed 5 months ago

idelsink commented 1 year ago

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

/kind bug

Description

When the healtcheck is of a container is set to the value none, the container keeps being recreated instead of it being created only once.

Steps to reproduce the issue:

  1. Run the provided podman-demo.yml playbook (contents pasted below).

Describe the results you received:

A new container will be created (changed) by the first task. The second task will recreate the container (changed) despite having the exact same configuration. If the --diff option is provided Ansible will show that the healtcheck was empty instead of "none", hence the reason the container keeps being recreated.

Describe the results you expected:

The first task should create the container if it doesn't exist (changed). The second task should properly compare the running container with the requested properties and do nothing (ok).

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

There is also a --no-healthcheck option for podman, but this collection does not yet seem to support that. I could potentially make a new feature request to add that.

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.10.2 
containers.podman 1.10.3

Output of ansible --version:

ansible [core 2.14.11]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/ingmar/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /home/ingmar/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.11.6 (main, Oct  3 2023, 00:00:00) [GCC 13.2.1 20230728 (Red Hat 13.2.1-1)] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True

Output of podman version:

Client:       Podman Engine
Version:      4.7.0
API Version:  4.7.0
Go Version:   go1.20.8
Built:        Wed Sep 27 20:24:38 2023
OS/Arch:      linux/amd64

Output of podman info --debug:

host:
  arch: amd64
  buildahVersion: 1.32.0
  cgroupControllers:
  - cpu
  - io
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.7-2.fc38.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.7, commit: '
  cpuUtilization:
    idlePercent: 97.39
    systemPercent: 0.7
    userPercent: 1.91
  cpus: 12
  databaseBackend: boltdb
  distribution:
    distribution: fedora
    variant: workstation
    version: "38"
  eventLogger: journald
  freeLocks: 2018
  hostname: stroopwafel
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 6.5.7-200.fc38.x86_64
  linkmode: dynamic
  logDriver: journald
  memFree: 16531881984
  memTotal: 33246187520
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns-1.8.0-1.fc38.x86_64
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.8.0
    package: netavark-1.8.0-2.fc38.x86_64
    path: /usr/libexec/podman/netavark
    version: netavark 1.8.0
  ociRuntime:
    name: crun
    package: crun-1.9.2-1.fc38.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 1.9.2
      commit: 35274d346d2e9ffeacb22cc11590b0266a23d634
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt-0^20231004.gf851084-1.fc38.x86_64
    version: |
      pasta 0^20231004.gf851084-1.fc38.x86_64
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: false
    path: /run/user/1000/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: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.1-1.fc38.x86_64
    version: |-
      slirp4netns version 1.2.1
      commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.3
  swapFree: 8589930496
  swapTotal: 8589930496
  uptime: 3h 50m 24.00s (Approximately 0.12 days)
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /home/ingmar/.config/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 0
    stopped: 1
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/ingmar/.local/share/containers/storage
  graphRootAllocated: 1022488477696
  graphRootUsed: 533124284416
  graphStatus:
    Backing Filesystem: btrfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 7
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/ingmar/.local/share/containers/storage/volumes
version:
  APIVersion: 4.7.0
  Built: 1695839078
  BuiltTime: Wed Sep 27 20:24:38 2023
  GitCommit: ""
  GoVersion: go1.20.8
  Os: linux
  OsArch: linux/amd64
  Version: 4.7.0

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

podman-4.7.0-1.fc38.x86_64

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

---
# podman-demo.yml
- name: Podman healthcheck demo
  hosts: localhost
  connection: local
  gather_facts: true

  tasks:
    - ansible.builtin.debug:
        msg: Running the container normally

    - name: Run container
      containers.podman.podman_container:
        name: filebrowser-podman-demo
        image: docker.io/filebrowser/filebrowser:v2
        state: started
    - name: Run container again
      containers.podman.podman_container:
        name: filebrowser-podman-demo
        image: docker.io/filebrowser/filebrowser:v2
        state: started
    - name: Remove container (return to original state)
      containers.podman.podman_container:
        name: filebrowser-podman-demo
        state: absent

    - ansible.builtin.debug:
        msg: Running the container with healthcheck set to 'none' # https://docs.podman.io/en/latest/markdown/podman-run.1.html#health-cmd-command-command-arg1

    - name: Run container with healthcheck set to 'none'
      containers.podman.podman_container:
        name: filebrowser-podman-demo
        image: docker.io/filebrowser/filebrowser:v2
        healthcheck: none
        state: started
    - name: Run container again (This should not trigger a recreation) #
      containers.podman.podman_container:
        name: filebrowser-podman-demo
        image: docker.io/filebrowser/filebrowser:v2
        healthcheck: none
        state: started

    - name: Remove container (return to original state)
      containers.podman.podman_container:
        name: filebrowser-podman-demo
        state: absent

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 podman-demo.yml --diff -vv

ansible-playbook [core 2.14.11]
  config file = /home/ingmar/Workspace/ansible-cfg/ansible.cfg
  configured module search path = ['/home/ingmar/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /home/ingmar/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-playbook
  python version = 3.11.6 (main, Oct  3 2023, 00:00:00) [GCC 13.2.1 20230728 (Red Hat 13.2.1-1)] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True
Using /home/ingmar/Workspace/ansible-cfg/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: podman-demo.yml ******************************************************
1 plays in podman-demo.yml

PLAY [Podman healthcheck demo] *************************************************

TASK [Gathering Facts] *********************************************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:3
ok: [localhost]

TASK [ansible.builtin.debug] ***************************************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:9
ok: [localhost] => {
    "msg": "Running the container normally"
}

TASK [Run container] ***********************************************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:12
changed: [localhost] => {"actions": ["started filebrowser-podman-demo"], "changed": true, "container": {"AppArmorProfile": "", "Args": ["/filebrowser"], "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", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": null, "CreateCommand": ["podman", "container", "run", "--name", "filebrowser-podman-demo", "--detach=True", "docker.io/filebrowser/filebrowser:v2"], "Domainname": "", "Entrypoint": "/filebrowser", "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "container=podman", "HOME=/root", "HOSTNAME=163882e5302b"], "Healthcheck": {"Interval": 5000000000, "StartPeriod": 2000000000, "Test": ["CMD-SHELL", "/healthcheck.sh || exit 1"], "Timeout": 3000000000}, "HealthcheckOnFailureAction": "none", "Hostname": "163882e5302b", "Image": "docker.io/filebrowser/filebrowser:v2", "Labels": {"org.opencontainers.image.created": "2023-09-14T22:55:21Z", "org.opencontainers.image.name": "filebrowser", "org.opencontainers.image.revision": "c1fb4004f7fbfd1ca3b5e1183a0317af2066c63e", "org.opencontainers.image.source": "https://github.com/filebrowser/filebrowser", "org.opencontainers.image.version": "2.25.0"}, "OnBuild": null, "OpenStdin": false, "Passwd": true, "StdinOnce": false, "StopSignal": 15, "StopTimeout": 10, "Timeout": 0, "Tty": false, "Umask": "0022", "User": "", "Volumes": null, "WorkingDir": "/", "sdNotifyMode": "container"}, "ConmonPidFile": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/conmon.pid", "Created": "2023-10-23T13:30:07.027542436+02: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": ["501a335a0260bfdde1650ae0a7d48a4b80bbd28bb1cdb54638eda79cf0a17bf3"], "GraphDriver": {"Data": {"LowerDir": "/home/ingmar/.local/share/containers/storage/overlay/217d2696859750e00a96fc689d1e8b298de50da59e75589217f7edc0033c4661/diff:/home/ingmar/.local/share/containers/storage/overlay/1c4f1dc7b7d742f529b35c7d42389362f727b89e87f644dbcf21dc32f8316dec/diff:/home/ingmar/.local/share/containers/storage/overlay/fdd585dddd718311c633089351a9840ac962ec67ac6c53f1d248ee13be146745/diff:/home/ingmar/.local/share/containers/storage/overlay/c26d1d4e321388b54338da1fec67d49a32f2d16e13f67c0a6a8ae36185d10d88/diff:/home/ingmar/.local/share/containers/storage/overlay/e5d83778db82c8cd09f2f1d97423eb278d407369f518a77505e351cee811a40d/diff:/home/ingmar/.local/share/containers/storage/overlay/4693057ce2364720d39e57e85a5b8e0bd9ac3573716237736d6470ec5b7b7230/diff", "MergedDir": "/home/ingmar/.local/share/containers/storage/overlay/394a83f50f6728a099a13ab1f40d7a3cb4f51c5797fc81c64903257947457b83/merged", "UpperDir": "/home/ingmar/.local/share/containers/storage/overlay/394a83f50f6728a099a13ab1f40d7a3cb4f51c5797fc81c64903257947457b83/diff", "WorkDir": "/home/ingmar/.local/share/containers/storage/overlay/394a83f50f6728a099a13ab1f40d7a3cb4f51c5797fc81c64903257947457b83/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["4a5e888a69c067678848de9ae96b0f62b8455b3a65960443a54f13829b1190a0:/srv:rprivate,rw,nodev,exec,nosuid,rbind"], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": [], "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": "shareable", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Path": "", "Size": "0B", "Tag": "", "Type": "journald"}, "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": [{"Hard": 524288, "Name": "RLIMIT_NOFILE", "Soft": 524288}, {"Hard": 126639, "Name": "RLIMIT_NPROC", "Soft": 126639}], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/hosts", "Id": "163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859", "Image": "1608288d02b0b4e637845300c3da459bb83ab81aa58341618384caadaf542788", "ImageDigest": "sha256:b06f6146754a44a492334947b0caa9ad93509ca1b04da8dacd3a76cdd4a2f471", "ImageName": "docker.io/filebrowser/filebrowser:v2", "IsInfra": false, "IsService": false, "KubeExitCodePropagation": "invalid", "MountLabel": "system_u:object_r:container_file_t:s0:c691,c921", "Mounts": [{"Destination": "/srv", "Driver": "local", "Mode": "", "Name": "4a5e888a69c067678848de9ae96b0f62b8455b3a65960443a54f13829b1190a0", "Options": ["nodev", "exec", "nosuid", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/home/ingmar/.local/share/containers/storage/volumes/4a5e888a69c067678848de9ae96b0f62b8455b3a65960443a54f13829b1190a0/_data", "Type": "volume"}], "Name": "filebrowser-podman-demo", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {"80/tcp": null}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/netns-c521be7b-bfed-7f69-d675-da37bca31d70"}, "OCIConfigPath": "/home/ingmar/.local/share/containers/storage/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/config.json", "OCIRuntime": "crun", "Path": "/filebrowser", "PidFile": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/pidfile", "Pod": "", "ProcessLabel": "system_u:system_r:container_t:s0:c691,c921", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"CgroupPath": "/user.slice/user-1000.slice/user@1000.service/user.slice/libpod-163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859.scope", "CheckpointedAt": "0001-01-01T00:00:00Z", "ConmonPid": 80273, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Health": {"FailingStreak": 0, "Log": null, "Status": "starting"}, "OOMKilled": false, "OciVersion": "1.1.0+dev", "Paused": false, "Pid": 80277, "Restarting": false, "RestoredAt": "0001-01-01T00:00:00Z", "Running": true, "StartedAt": "2023-10-23T13:30:07.152622868+02:00", "Status": "running"}, "StaticDir": "/home/ingmar/.local/share/containers/storage/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata", "lockNumber": 2}, "podman_actions": ["podman run --name filebrowser-podman-demo --detach=True docker.io/filebrowser/filebrowser:v2"], "podman_systemd": {"container-filebrowser-podman-demo": "# container-filebrowser-podman-demo.service\n# autogenerated by Podman 4.7.0\n# Mon Oct 23 13:30:07 CEST 2023\n\n[Unit]\nDescription=Podman container-filebrowser-podman-demo.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start filebrowser-podman-demo\nExecStop=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nExecStopPost=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nPIDFile=/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"}, "stderr": "", "stderr_lines": [], "stdout": "163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859\n", "stdout_lines": ["163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859"]}

TASK [Run container again] *****************************************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:17
ok: [localhost] => {"actions": [], "changed": false, "container": {"AppArmorProfile": "", "Args": ["/filebrowser"], "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", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": null, "CreateCommand": ["podman", "container", "run", "--name", "filebrowser-podman-demo", "--detach=True", "docker.io/filebrowser/filebrowser:v2"], "Domainname": "", "Entrypoint": "/filebrowser", "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "container=podman", "HOME=/root", "HOSTNAME=163882e5302b"], "Healthcheck": {"Interval": 5000000000, "StartPeriod": 2000000000, "Test": ["CMD-SHELL", "/healthcheck.sh || exit 1"], "Timeout": 3000000000}, "HealthcheckOnFailureAction": "none", "Hostname": "163882e5302b", "Image": "docker.io/filebrowser/filebrowser:v2", "Labels": {"org.opencontainers.image.created": "2023-09-14T22:55:21Z", "org.opencontainers.image.name": "filebrowser", "org.opencontainers.image.revision": "c1fb4004f7fbfd1ca3b5e1183a0317af2066c63e", "org.opencontainers.image.source": "https://github.com/filebrowser/filebrowser", "org.opencontainers.image.version": "2.25.0"}, "OnBuild": null, "OpenStdin": false, "Passwd": true, "StdinOnce": false, "StopSignal": 15, "StopTimeout": 10, "Timeout": 0, "Tty": false, "Umask": "0022", "User": "", "Volumes": null, "WorkingDir": "/", "sdNotifyMode": "container"}, "ConmonPidFile": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/conmon.pid", "Created": "2023-10-23T13:30:07.027542436+02: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": [], "GraphDriver": {"Data": {"LowerDir": "/home/ingmar/.local/share/containers/storage/overlay/217d2696859750e00a96fc689d1e8b298de50da59e75589217f7edc0033c4661/diff:/home/ingmar/.local/share/containers/storage/overlay/1c4f1dc7b7d742f529b35c7d42389362f727b89e87f644dbcf21dc32f8316dec/diff:/home/ingmar/.local/share/containers/storage/overlay/fdd585dddd718311c633089351a9840ac962ec67ac6c53f1d248ee13be146745/diff:/home/ingmar/.local/share/containers/storage/overlay/c26d1d4e321388b54338da1fec67d49a32f2d16e13f67c0a6a8ae36185d10d88/diff:/home/ingmar/.local/share/containers/storage/overlay/e5d83778db82c8cd09f2f1d97423eb278d407369f518a77505e351cee811a40d/diff:/home/ingmar/.local/share/containers/storage/overlay/4693057ce2364720d39e57e85a5b8e0bd9ac3573716237736d6470ec5b7b7230/diff", "MergedDir": "/home/ingmar/.local/share/containers/storage/overlay/394a83f50f6728a099a13ab1f40d7a3cb4f51c5797fc81c64903257947457b83/merged", "UpperDir": "/home/ingmar/.local/share/containers/storage/overlay/394a83f50f6728a099a13ab1f40d7a3cb4f51c5797fc81c64903257947457b83/diff", "WorkDir": "/home/ingmar/.local/share/containers/storage/overlay/394a83f50f6728a099a13ab1f40d7a3cb4f51c5797fc81c64903257947457b83/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["4a5e888a69c067678848de9ae96b0f62b8455b3a65960443a54f13829b1190a0:/srv:rprivate,rw,nodev,exec,nosuid,rbind"], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": [], "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": "shareable", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Path": "", "Size": "0B", "Tag": "", "Type": "journald"}, "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": [{"Hard": 524288, "Name": "RLIMIT_NOFILE", "Soft": 524288}, {"Hard": 126639, "Name": "RLIMIT_NPROC", "Soft": 126639}], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/hosts", "Id": "163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859", "Image": "1608288d02b0b4e637845300c3da459bb83ab81aa58341618384caadaf542788", "ImageDigest": "sha256:b06f6146754a44a492334947b0caa9ad93509ca1b04da8dacd3a76cdd4a2f471", "ImageName": "docker.io/filebrowser/filebrowser:v2", "IsInfra": false, "IsService": false, "KubeExitCodePropagation": "invalid", "MountLabel": "system_u:object_r:container_file_t:s0:c691,c921", "Mounts": [{"Destination": "/srv", "Driver": "local", "Mode": "", "Name": "4a5e888a69c067678848de9ae96b0f62b8455b3a65960443a54f13829b1190a0", "Options": ["nodev", "exec", "nosuid", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/home/ingmar/.local/share/containers/storage/volumes/4a5e888a69c067678848de9ae96b0f62b8455b3a65960443a54f13829b1190a0/_data", "Type": "volume"}], "Name": "filebrowser-podman-demo", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {"80/tcp": null}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/netns-c521be7b-bfed-7f69-d675-da37bca31d70"}, "OCIConfigPath": "/home/ingmar/.local/share/containers/storage/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/config.json", "OCIRuntime": "crun", "Path": "/filebrowser", "PidFile": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/pidfile", "Pod": "", "ProcessLabel": "system_u:system_r:container_t:s0:c691,c921", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"CgroupPath": "/user.slice/user-1000.slice/user@1000.service/user.slice/libpod-163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859.scope", "CheckpointedAt": "0001-01-01T00:00:00Z", "ConmonPid": 80273, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Health": {"FailingStreak": 0, "Log": [{"End": "2023-10-23T13:30:07.271710951+02:00", "ExitCode": 1, "Output": "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\ncurl: (7) Failed to connect to localhost port 80 after 0 ms: Couldn't connect to server", "Start": "2023-10-23T13:30:07.189680779+02:00"}], "Status": "starting"}, "OOMKilled": false, "OciVersion": "1.1.0+dev", "Paused": false, "Pid": 80277, "Restarting": false, "RestoredAt": "0001-01-01T00:00:00Z", "Running": true, "StartedAt": "2023-10-23T13:30:07.152622868+02:00", "Status": "running"}, "StaticDir": "/home/ingmar/.local/share/containers/storage/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata", "lockNumber": 2}, "podman_actions": [], "podman_systemd": {"container-filebrowser-podman-demo": "# container-filebrowser-podman-demo.service\n# autogenerated by Podman 4.7.0\n# Mon Oct 23 13:30:07 CEST 2023\n\n[Unit]\nDescription=Podman container-filebrowser-podman-demo.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start filebrowser-podman-demo\nExecStop=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nExecStopPost=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nPIDFile=/run/user/1000/containers/overlay-containers/163882e5302b930c3f19f1fa583b4b5db00cd1fb8fdb249caf7e3ba407d01859/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"}, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Remove container (return to original state)] *****************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:22
changed: [localhost] => {"actions": ["deleted filebrowser-podman-demo"], "changed": true, "container": {}, "podman_actions": ["podman rm -f filebrowser-podman-demo"]}

TASK [ansible.builtin.debug] ***************************************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:28
ok: [localhost] => {
    "msg": "Running the container with healthcheck set to 'none'"
}

TASK [Run container with healthcheck set to 'none'] ****************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:31
changed: [localhost] => {"actions": ["started filebrowser-podman-demo"], "changed": true, "container": {"AppArmorProfile": "", "Args": ["/filebrowser"], "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", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": null, "CreateCommand": ["podman", "container", "run", "--name", "filebrowser-podman-demo", "--healthcheck-command", "none", "--detach=True", "docker.io/filebrowser/filebrowser:v2"], "Domainname": "", "Entrypoint": "/filebrowser", "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "container=podman", "HOME=/root", "HOSTNAME=5a8ced906815"], "Healthcheck": {"Interval": 30000000000, "Retries": 3, "Test": ["NONE"], "Timeout": 30000000000}, "HealthcheckOnFailureAction": "none", "Hostname": "5a8ced906815", "Image": "docker.io/filebrowser/filebrowser:v2", "Labels": {"org.opencontainers.image.created": "2023-09-14T22:55:21Z", "org.opencontainers.image.name": "filebrowser", "org.opencontainers.image.revision": "c1fb4004f7fbfd1ca3b5e1183a0317af2066c63e", "org.opencontainers.image.source": "https://github.com/filebrowser/filebrowser", "org.opencontainers.image.version": "2.25.0"}, "OnBuild": null, "OpenStdin": false, "Passwd": true, "StdinOnce": false, "StopSignal": 15, "StopTimeout": 10, "Timeout": 0, "Tty": false, "Umask": "0022", "User": "", "Volumes": null, "WorkingDir": "/", "sdNotifyMode": "container"}, "ConmonPidFile": "/run/user/1000/containers/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata/conmon.pid", "Created": "2023-10-23T13:30:08.127696385+02: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": [], "GraphDriver": {"Data": {"LowerDir": "/home/ingmar/.local/share/containers/storage/overlay/217d2696859750e00a96fc689d1e8b298de50da59e75589217f7edc0033c4661/diff:/home/ingmar/.local/share/containers/storage/overlay/1c4f1dc7b7d742f529b35c7d42389362f727b89e87f644dbcf21dc32f8316dec/diff:/home/ingmar/.local/share/containers/storage/overlay/fdd585dddd718311c633089351a9840ac962ec67ac6c53f1d248ee13be146745/diff:/home/ingmar/.local/share/containers/storage/overlay/c26d1d4e321388b54338da1fec67d49a32f2d16e13f67c0a6a8ae36185d10d88/diff:/home/ingmar/.local/share/containers/storage/overlay/e5d83778db82c8cd09f2f1d97423eb278d407369f518a77505e351cee811a40d/diff:/home/ingmar/.local/share/containers/storage/overlay/4693057ce2364720d39e57e85a5b8e0bd9ac3573716237736d6470ec5b7b7230/diff", "MergedDir": "/home/ingmar/.local/share/containers/storage/overlay/20072fb8d8c5a3486e91fb65dfffc7db5c696320d74d9fccca395dc850333800/merged", "UpperDir": "/home/ingmar/.local/share/containers/storage/overlay/20072fb8d8c5a3486e91fb65dfffc7db5c696320d74d9fccca395dc850333800/diff", "WorkDir": "/home/ingmar/.local/share/containers/storage/overlay/20072fb8d8c5a3486e91fb65dfffc7db5c696320d74d9fccca395dc850333800/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["c1bcdfb7ef7e53a40759c696468ec6904ee00bff7daf92315e89ae44a9458f24:/srv:rprivate,rw,nodev,exec,nosuid,rbind"], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": [], "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": "shareable", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Path": "", "Size": "0B", "Tag": "", "Type": "journald"}, "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": [{"Hard": 524288, "Name": "RLIMIT_NOFILE", "Soft": 524288}, {"Hard": 126639, "Name": "RLIMIT_NPROC", "Soft": 126639}], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata/hosts", "Id": "5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4", "Image": "1608288d02b0b4e637845300c3da459bb83ab81aa58341618384caadaf542788", "ImageDigest": "sha256:b06f6146754a44a492334947b0caa9ad93509ca1b04da8dacd3a76cdd4a2f471", "ImageName": "docker.io/filebrowser/filebrowser:v2", "IsInfra": false, "IsService": false, "KubeExitCodePropagation": "invalid", "MountLabel": "system_u:object_r:container_file_t:s0:c29,c830", "Mounts": [{"Destination": "/srv", "Driver": "local", "Mode": "", "Name": "c1bcdfb7ef7e53a40759c696468ec6904ee00bff7daf92315e89ae44a9458f24", "Options": ["nodev", "exec", "nosuid", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/home/ingmar/.local/share/containers/storage/volumes/c1bcdfb7ef7e53a40759c696468ec6904ee00bff7daf92315e89ae44a9458f24/_data", "Type": "volume"}], "Name": "filebrowser-podman-demo", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {"80/tcp": null}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/netns-8a461c9e-a06d-bc22-bb2d-360928b7bf52"}, "OCIConfigPath": "/home/ingmar/.local/share/containers/storage/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata/config.json", "OCIRuntime": "crun", "Path": "/filebrowser", "PidFile": "/run/user/1000/containers/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata/pidfile", "Pod": "", "ProcessLabel": "system_u:system_r:container_t:s0:c29,c830", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"CgroupPath": "/user.slice/user-1000.slice/user@1000.service/user.slice/libpod-5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4.scope", "CheckpointedAt": "0001-01-01T00:00:00Z", "ConmonPid": 80568, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Health": {"FailingStreak": 0, "Log": null, "Status": ""}, "OOMKilled": false, "OciVersion": "1.1.0+dev", "Paused": false, "Pid": 80571, "Restarting": false, "RestoredAt": "0001-01-01T00:00:00Z", "Running": true, "StartedAt": "2023-10-23T13:30:08.25702193+02:00", "Status": "running"}, "StaticDir": "/home/ingmar/.local/share/containers/storage/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata", "lockNumber": 2}, "podman_actions": ["podman run --name filebrowser-podman-demo --healthcheck-command none --detach=True docker.io/filebrowser/filebrowser:v2"], "podman_systemd": {"container-filebrowser-podman-demo": "# container-filebrowser-podman-demo.service\n# autogenerated by Podman 4.7.0\n# Mon Oct 23 13:30:08 CEST 2023\n\n[Unit]\nDescription=Podman container-filebrowser-podman-demo.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start filebrowser-podman-demo\nExecStop=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nExecStopPost=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nPIDFile=/run/user/1000/containers/overlay-containers/5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"}, "stderr": "", "stderr_lines": [], "stdout": "5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4\n", "stdout_lines": ["5a8ced906815b1fb0927bedab8b6e26dd1d589a5805d402e33d6604c0471a6b4"]}

TASK [Run container again (This should not trigger a recreation)] **************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:37
--- before
+++ after
@@ -1 +1 @@
-healthcheck - 
+healthcheck - none

changed: [localhost] => {"actions": ["recreated filebrowser-podman-demo"], "changed": true, "container": {"AppArmorProfile": "", "Args": ["/filebrowser"], "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", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": null, "CreateCommand": ["podman", "container", "run", "--name", "filebrowser-podman-demo", "--healthcheck-command", "none", "--detach=True", "docker.io/filebrowser/filebrowser:v2"], "Domainname": "", "Entrypoint": "/filebrowser", "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "container=podman", "HOME=/root", "HOSTNAME=32b1349dd7ad"], "Healthcheck": {"Interval": 30000000000, "Retries": 3, "Test": ["NONE"], "Timeout": 30000000000}, "HealthcheckOnFailureAction": "none", "Hostname": "32b1349dd7ad", "Image": "docker.io/filebrowser/filebrowser:v2", "Labels": {"org.opencontainers.image.created": "2023-09-14T22:55:21Z", "org.opencontainers.image.name": "filebrowser", "org.opencontainers.image.revision": "c1fb4004f7fbfd1ca3b5e1183a0317af2066c63e", "org.opencontainers.image.source": "https://github.com/filebrowser/filebrowser", "org.opencontainers.image.version": "2.25.0"}, "OnBuild": null, "OpenStdin": false, "Passwd": true, "StdinOnce": false, "StopSignal": 15, "StopTimeout": 10, "Timeout": 0, "Tty": false, "Umask": "0022", "User": "", "Volumes": null, "WorkingDir": "/", "sdNotifyMode": "container"}, "ConmonPidFile": "/run/user/1000/containers/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata/conmon.pid", "Created": "2023-10-23T13:30:08.735745108+02: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": [], "GraphDriver": {"Data": {"LowerDir": "/home/ingmar/.local/share/containers/storage/overlay/217d2696859750e00a96fc689d1e8b298de50da59e75589217f7edc0033c4661/diff:/home/ingmar/.local/share/containers/storage/overlay/1c4f1dc7b7d742f529b35c7d42389362f727b89e87f644dbcf21dc32f8316dec/diff:/home/ingmar/.local/share/containers/storage/overlay/fdd585dddd718311c633089351a9840ac962ec67ac6c53f1d248ee13be146745/diff:/home/ingmar/.local/share/containers/storage/overlay/c26d1d4e321388b54338da1fec67d49a32f2d16e13f67c0a6a8ae36185d10d88/diff:/home/ingmar/.local/share/containers/storage/overlay/e5d83778db82c8cd09f2f1d97423eb278d407369f518a77505e351cee811a40d/diff:/home/ingmar/.local/share/containers/storage/overlay/4693057ce2364720d39e57e85a5b8e0bd9ac3573716237736d6470ec5b7b7230/diff", "MergedDir": "/home/ingmar/.local/share/containers/storage/overlay/e29f6bd7993cf55006fa33717dee30f101d4eb60045fb4b0f61470f31d22a193/merged", "UpperDir": "/home/ingmar/.local/share/containers/storage/overlay/e29f6bd7993cf55006fa33717dee30f101d4eb60045fb4b0f61470f31d22a193/diff", "WorkDir": "/home/ingmar/.local/share/containers/storage/overlay/e29f6bd7993cf55006fa33717dee30f101d4eb60045fb4b0f61470f31d22a193/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["6822fcd9210c3cb84df534125b84653c57b7dd6eb559c19259dec68e367f800e:/srv:rprivate,rw,nodev,exec,nosuid,rbind"], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": [], "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": "shareable", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Path": "", "Size": "0B", "Tag": "", "Type": "journald"}, "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": [{"Hard": 524288, "Name": "RLIMIT_NOFILE", "Soft": 524288}, {"Hard": 126639, "Name": "RLIMIT_NPROC", "Soft": 126639}], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata/hosts", "Id": "32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310", "Image": "1608288d02b0b4e637845300c3da459bb83ab81aa58341618384caadaf542788", "ImageDigest": "sha256:b06f6146754a44a492334947b0caa9ad93509ca1b04da8dacd3a76cdd4a2f471", "ImageName": "docker.io/filebrowser/filebrowser:v2", "IsInfra": false, "IsService": false, "KubeExitCodePropagation": "invalid", "MountLabel": "system_u:object_r:container_file_t:s0:c609,c758", "Mounts": [{"Destination": "/srv", "Driver": "local", "Mode": "", "Name": "6822fcd9210c3cb84df534125b84653c57b7dd6eb559c19259dec68e367f800e", "Options": ["nodev", "exec", "nosuid", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/home/ingmar/.local/share/containers/storage/volumes/6822fcd9210c3cb84df534125b84653c57b7dd6eb559c19259dec68e367f800e/_data", "Type": "volume"}], "Name": "filebrowser-podman-demo", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {"80/tcp": null}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/netns-d3c1158b-0409-2f09-95ff-82d3ab91f33c"}, "OCIConfigPath": "/home/ingmar/.local/share/containers/storage/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata/config.json", "OCIRuntime": "crun", "Path": "/filebrowser", "PidFile": "/run/user/1000/containers/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata/pidfile", "Pod": "", "ProcessLabel": "system_u:system_r:container_t:s0:c609,c758", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"CgroupPath": "/user.slice/user-1000.slice/user@1000.service/user.slice/libpod-32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310.scope", "CheckpointedAt": "0001-01-01T00:00:00Z", "ConmonPid": 80746, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Health": {"FailingStreak": 0, "Log": null, "Status": ""}, "OOMKilled": false, "OciVersion": "1.1.0+dev", "Paused": false, "Pid": 80749, "Restarting": false, "RestoredAt": "0001-01-01T00:00:00Z", "Running": true, "StartedAt": "2023-10-23T13:30:08.851747733+02:00", "Status": "running"}, "StaticDir": "/home/ingmar/.local/share/containers/storage/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata", "lockNumber": 2}, "podman_actions": ["podman stop filebrowser-podman-demo", "podman rm -f filebrowser-podman-demo", "podman run --name filebrowser-podman-demo --healthcheck-command none --detach=True docker.io/filebrowser/filebrowser:v2"], "podman_systemd": {"container-filebrowser-podman-demo": "# container-filebrowser-podman-demo.service\n# autogenerated by Podman 4.7.0\n# Mon Oct 23 13:30:08 CEST 2023\n\n[Unit]\nDescription=Podman container-filebrowser-podman-demo.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start filebrowser-podman-demo\nExecStop=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nExecStopPost=/usr/bin/podman stop  \\\n\t-t 10 filebrowser-podman-demo\nPIDFile=/run/user/1000/containers/overlay-containers/32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"}, "stderr": "", "stderr_lines": [], "stdout": "32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310\n", "stdout_lines": ["32b1349dd7add78b7665b7fb3c2095b99a1d1006ff9d61b460bab2c6be0e5310"]}

TASK [Remove container (return to original state)] *****************************
task path: /home/ingmar/Workspace/ansible-cfg/podman-demo.yml:44
changed: [localhost] => {"actions": ["deleted filebrowser-podman-demo"], "changed": true, "container": {}, "podman_actions": ["podman rm -f filebrowser-podman-demo"]}

PLAY RECAP *********************************************************************
localhost                  : ok=9    changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

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

sshnaidm commented 1 year ago

Thanks for reporting this. Can you please elaborate - what is the use case of setting healthcheck command to none?

idelsink commented 1 year ago

Beside it being a feature of podman itself, (see here) I wanted to disable the healtcheck for one of my containers because it was causing a lot of log messages with the contents of container exec_died ... that comes from the healtcheck.

This is somewhat related to this issue where someone also asked for a log level feature: https://github.com/containers/podman/issues/17856.

An example of the amount of logging that gets aggregated is here (left before I disabled the healtcheck and right after I set it to none)

image

So for me why I'm disableing this is I don't need that healtcheck (I have my own monitoring) and to reduce disk IO. But honestly I don't think my reasoning should be entirety relevant, surly someone at some point has a better reason to use this feature and I think it's nice if that is supported (with it being an intended feature after all :smile: )

sshnaidm commented 5 months ago

@idelsink #745 should fix all for you. Please feel free to reopen if it still has an issue or you discover a new one.