ansible-podman-collections
ansible-podman-collections copied to clipboard
Container is recreated when it should just be started
/kind bug
Description
Steps to reproduce the issue:
-
define an ansible playbook in which a pod is created, followed by the creation of a custom image (state: present), followed by the creation of a container based on that custom image connected to the created pod (state: started). Install files into the container using pip.
-
stop the pod
-
run the ansible playbook again
Describe the results you received: the container's pip files no longer exist
Describe the results you expected: the container's pip files should still exist
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.9.4
containers.podman 1.9.4
Output of ansible --version:
ansible [core 2.13.6]
config file = None
configured module search path = ['/var/home/xxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /var/home/xxxxx/src/ceramic_isles_tests/django_forum/venv_django_forum/lib64/python3.11/site-packages/ansible
ansible collection location = /var/home/xxxxx/.ansible/collections:/usr/share/ansible/collections
executable location = /var/home/xxxxx/src/ceramic_isles_tests/django_forum/venv_django_forum/bin/ansible
python version = 3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]
jinja version = 3.1.2
libyaml = True
Output of podman version:
Client: Podman Engine
Version: 4.3.0
API Version: 4.3.0
Go Version: go1.19.2
Built: Fri Oct 21 09:09:51 2022
OS/Arch: linux/amd64
Output of podman info --debug:
host:
arch: amd64
buildahVersion: 1.28.0
cgroupControllers:
- cpu
- io
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.4-3.fc37.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.4, commit: '
cpuUtilization:
idlePercent: 93.35
systemPercent: 1.44
userPercent: 5.21
cpus: 6
distribution:
distribution: fedora
variant: silverblue
version: "37"
eventLogger: journald
hostname: fedora
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.0.8-300.fc37.x86_64
linkmode: dynamic
logDriver: journald
memFree: 1229611008
memTotal: 4107083776
networkBackend: netavark
ociRuntime:
name: crun
package: crun-1.7-1.fc37.x86_64
path: /usr/bin/crun
version: |-
crun version 1.7
commit: 40d996ea8a827981895ce22886a9bac367f87264
rundir: /run/user/1000/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
os: linux
remoteSocket:
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.0-8.fc37.x86_64
version: |-
slirp4netns version 1.2.0
commit: 656041d45cfca7a4176f6b7eed9e4fe6c11e8383
libslirp: 4.7.0
SLIRP_CONFIG_VERSION_MAX: 4
libseccomp: 2.5.3
swapFree: 3318738944
swapTotal: 4106219520
uptime: 0h 53m 7.00s
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
volume:
- local
registries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- docker.io
- quay.io
store:
configFile: /var/home/xxxxx/.config/containers/storage.conf
containerStore:
number: 5
paused: 0
running: 3
stopped: 2
graphDriverName: overlay
graphOptions: {}
graphRoot: /var/home/xxxx/.local/share/containers/storage
graphRootAllocated: 52610203648
graphRootUsed: 13243846656
graphStatus:
Backing Filesystem: btrfs
Native Overlay Diff: "true"
Supports d_type: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 16
runRoot: /run/user/1000/containers
volumePath: /var/home/xxxxx/.local/share/containers/storage/volumes
version:
APIVersion: 4.3.0
Built: 1666339791
BuiltTime: Fri Oct 21 09:09:51 2022
GitCommit: ""
GoVersion: go1.19.2
Os: linux
OsArch: linux/amd64
Version: 4.3.0
Package info (e.g. output of rpm -q podman or apt list podman):
podman-4.3.0-2.fc37.x86_64 (rpm-ostree)
Playbok you run with ansible (e.g. content of playbook.yaml):
---
- name: provisioning django_messages testapp
hosts: localhost
vars:
pip_run: "{{ lookup('ansible.builtin.env', 'PIP_INSTALLED', default='False') }}"
tasks:
- name: Create Pod
containers.podman.podman_pod:
name: django_forum_test_pod
publish: 8000:8000
- name: Create Redis Container
containers.podman.podman_container:
name: redis_cont
image: docker.io/library/redis
command: redis-server --appendonly yes
state: started
pod: django_forum_test_pod
- name: Pull Python Image
containers.podman.podman_image:
name: docker.io/library/python
state: present
- name: Build Custom Python Image
containers.podman.podman_image:
name: python
tag: django_forum_test_image
path: ./dockerfile_python
build:
cache: false
extra_args: "-f './dockerfile_python/Dockerfile_Test'"
state: present
register: build_output
- debug: var=build_output
- name: output image info
shell: exec {{ build_output['podman_actions'][0] }}
register: image_output
- debug: var=image_output.stdout_lines
- name: Create custom container
containers.podman.podman_container:
name: django_forum_test_cont
image: localhost/python:django_forum_test_image
state: started
detach: true
volume:
- "{{ playbook_dir }}/../../../django_forum:/opt/ceramic_isles_test:Z"
- "certvol:/etc/certs"
pod: django_forum_test_pod
register: output
- debug: var=output.stdout_lines
- name: podman exec pip install
shell: podman exec -it django_forum_test_cont bash -c '! pip show django &>/dev/null &&
pip install -r /opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/pip_requirements'
register: pip_output
# when: build_output.changed # 'pip_run|bool != True'
tags: pip_install
- debug: var=pip_output # .stdout_lines
- name: test pytest output
shell: echo '{{ output.stdout }}'
register: test_output
- debug: var=test_output.stdout_lines
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 [core 2.13.6]
config file = None
configured module search path = ['/var/home/xxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /var/home/xxxx/src/ceramic_isles_tests/django_forum/venv_django_forum/lib64/python3.11/site-packages/ansible
ansible collection location = /var/home/xxxx/.ansible/collections:/usr/share/ansible/collections
executable location = /var/home/xxxx/src/ceramic_isles_tests/django_forum/venv_django_forum/bin/ansible-playbook
python version = 3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]
jinja version = 3.1.2
libyaml = True
No config file found; using defaults
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: ansible_setup_test.yml ***********************************************
1 plays in django_forum/testapp/ansible_setup_test.yml
PLAY [provisioning django_messages testapp] ************************************
TASK [Gathering Facts] *********************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:2
ok: [localhost]
META: ran handlers
TASK [Create Pod] **************************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:7
ok: [localhost] => {"actions": [], "changed": false, "pod": {"CgroupParent": "user.slice", "CgroupPath": "user.slice/user-libpod_pod_133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e.slice", "Containers": [{"Id": "27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53", "Name": "redis_cont", "State": "running"}, {"Id": "7276cbf7120734f8e1a71af8c7eb6da368094496b2959292938e7f457aeaa6ac", "Name": "django_forum_test_cont", "State": "stopping"}, {"Id": "a837974935b749796ce16d829c1bf049fdfd6c47053de6ee2494f09e3b509cbb", "Name": "elastic_cont", "State": "exited"}, {"Id": "c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "Name": "133426103bbb-infra", "State": "running"}], "CreateCgroup": true, "CreateCommand": ["podman", "pod", "create", "--name", "django_forum_test_pod", "--publish", "8000:8000"], "CreateInfra": true, "Created": "2022-12-01T17:57:56.644327877Z", "ExitPolicy": "continue", "Hostname": "", "Id": "133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e", "InfraConfig": {"DNSOption": null, "DNSSearch": null, "DNSServer": null, "HostAdd": null, "HostNetwork": false, "NetworkOptions": null, "Networks": null, "NoManageHosts": false, "NoManageResolvConf": false, "PortBindings": {"8000/tcp": [{"HostIp": "", "HostPort": "8000"}]}, "StaticIP": "", "StaticMAC": "", "pid_ns": "private", "userns": "host", "uts_ns": "private"}, "InfraContainerID": "c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "Name": "django_forum_test_pod", "NumContainers": 4, "SharedNamespaces": ["net", "uts", "ipc"], "State": "Degraded"}, "podman_actions": [], "podman_systemd": {"container-django_forum_test_cont": "# container-django_forum_test_cont.service\n# autogenerated by Podman 4.3.0\n# Sun Dec 4 11:31:29 GMT 2022\n\n[Unit]\nDescription=Podman container-django_forum_test_cont.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\nBindsTo=pod-django_forum_test_pod.service\nAfter=pod-django_forum_test_pod.service\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start django_forum_test_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nPIDFile=/run/user/1000/containers/overlay-containers/7276cbf7120734f8e1a71af8c7eb6da368094496b2959292938e7f457aeaa6ac/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n", "container-elastic_cont": "# container-elastic_cont.service\n# autogenerated by Podman 4.3.0\n# Sun Dec 4 11:31:29 GMT 2022\n\n[Unit]\nDescription=Podman container-elastic_cont.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\nBindsTo=pod-django_forum_test_pod.service\nAfter=pod-django_forum_test_pod.service\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start elastic_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 elastic_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 elastic_cont\nPIDFile=/run/user/1000/containers/overlay-containers/a837974935b749796ce16d829c1bf049fdfd6c47053de6ee2494f09e3b509cbb/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n", "container-redis_cont": "# container-redis_cont.service\n# autogenerated by Podman 4.3.0\n# Sun Dec 4 11:31:29 GMT 2022\n\n[Unit]\nDescription=Podman container-redis_cont.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\nBindsTo=pod-django_forum_test_pod.service\nAfter=pod-django_forum_test_pod.service\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start redis_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 redis_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 redis_cont\nPIDFile=/run/user/1000/containers/overlay-containers/27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n", "pod-django_forum_test_pod": "# pod-django_forum_test_pod.service\n# autogenerated by Podman 4.3.0\n# Sun Dec 4 11:31:29 GMT 2022\n\n[Unit]\nDescription=Podman pod-django_forum_test_pod.service\nDocumentation=man:podman-generate-systemd(1)\nWants=network-online.target\nAfter=network-online.target\nRequiresMountsFor=/run/user/1000/containers\nWants=container-django_forum_test_cont.service container-elastic_cont.service container-redis_cont.service\nBefore=container-django_forum_test_cont.service container-elastic_cont.service container-redis_cont.service\n\n[Service]\nEnvironment=PODMAN_SYSTEMD_UNIT=%n\nRestart=on-failure\nTimeoutStopSec=70\nExecStart=/usr/bin/podman start 133426103bbb-infra\nExecStop=/usr/bin/podman stop \\\n\t-t 10 133426103bbb-infra\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 133426103bbb-infra\nPIDFile=/run/user/1000/containers/overlay-containers/c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"}, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
TASK [Create Redis Container] **************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:11
ok: [localhost] => {"actions": [], "changed": false, "container": {"AppArmorProfile": "", "Args": ["redis-server", "--appendonly", "yes"], "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.ContainerType": "container", "io.kubernetes.cri-o.Created": "2022-12-01T17:57:57.109149501Z", "io.kubernetes.cri-o.SandboxID": "c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "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": ["redis-server", "--appendonly", "yes"], "CreateCommand": ["podman", "container", "run", "--name", "redis_cont", "--pod", "django_forum_test_pod", "--detach=True", "docker.io/library/redis", "redis-server", "--appendonly", "yes"], "Domainname": "", "Entrypoint": "docker-entrypoint.sh", "Env": ["REDIS_DOWNLOAD_SHA=67054cc37b58c125df93bd78000261ec0ef4436a26b40f38262c780e56315cc3", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm", "container=podman", "GOSU_VERSION=1.14", "REDIS_VERSION=7.0.5", "REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.0.5.tar.gz", "HOME=/root", "HOSTNAME=django_forum_test_pod"], "HealthcheckOnFailureAction": "none", "Hostname": "django_forum_test_pod", "Image": "docker.io/library/redis:latest", "Labels": null, "OnBuild": null, "OpenStdin": false, "Passwd": true, "StdinOnce": false, "StopSignal": 15, "StopTimeout": 10, "Timeout": 0, "Tty": false, "Umask": "0022", "User": "", "Volumes": null, "WorkingDir": "/data", "sdNotifyMode": "container"}, "ConmonPidFile": "/run/user/1000/containers/overlay-containers/27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53/userdata/conmon.pid", "Created": "2022-12-01T17:57:57.109149501Z", "Dependencies": ["c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd"], "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": "/var/home/xxxx/.local/share/containers/storage/overlay/8558dcae199357f820ea111e8c44b1d6c6e27b24ba4ef92d0a40a3991d643d74/diff:/var/home/xxxx/.local/share/containers/storage/overlay/c0a560c23ef742c0a530f2e71a29069403759aa1eb576483cad2897e2cdae4b5/diff:/var/home/xxxx/.local/share/containers/storage/overlay/49fcc5ae1d31725a8cca9b7e97dba5a7c6d7b2fbcd134e0e0492129bbf263748/diff:/var/home/xxxx/.local/share/containers/storage/overlay/8a07789500a32dcfc629a8cecbc85794c6cb18725a9483434d99440a458f03e8/diff:/var/home/xxxx/.local/share/containers/storage/overlay/9760a905e24065fe8419b55f7cdd399e2406cf40f9223d824f95aaec88caa50b/diff:/var/home/xxxx/.local/share/containers/storage/overlay/ec4a38999118b78eab6899b913a548cb0b2c9b68fd05aff846a56b628b597f38/diff", "MergedDir": "/var/home/xxxx/.local/share/containers/storage/overlay/7a24087036ea5df644b39747237722ee1ebad67b28f57cbfb9910a80e7fff356/merged", "UpperDir": "/var/home/xxxx/.local/share/containers/storage/overlay/7a24087036ea5df644b39747237722ee1ebad67b28f57cbfb9910a80e7fff356/diff", "WorkDir": "/var/home/xxxx/.local/share/containers/storage/overlay/7a24087036ea5df644b39747237722ee1ebad67b28f57cbfb9910a80e7fff356/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["cf09f09938b75fb852774f03d76bf959333d9300ef65d11a41ad18e6fe3903a6:/data:rprivate,rw,nodev,exec,nosuid,rbind"], "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/user-libpod_pod_133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e.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": "container:c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "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": "container:c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "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": "container:c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "Ulimits": [], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd/userdata/hosts", "Id": "27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53", "Image": "3358aea34e8c871cc2ecec590dcefcf0945e76ec3f82071f30156ed1be97a5fb", "ImageDigest": "sha256:1e3207c292225b6dd21cb74d59255748a50e8f739dd983040df38fa913927cf1", "ImageName": "docker.io/library/redis:latest", "IsInfra": false, "IsService": false, "MountLabel": "system_u:object_r:container_file_t:s0:c685,c840", "Mounts": [{"Destination": "/data", "Driver": "local", "Mode": "", "Name": "cf09f09938b75fb852774f03d76bf959333d9300ef65d11a41ad18e6fe3903a6", "Options": ["nodev", "exec", "nosuid", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/var/home/xxxx/.local/share/containers/storage/volumes/cf09f09938b75fb852774f03d76bf959333d9300ef65d11a41ad18e6fe3903a6/_data", "Type": "volume"}], "Name": "redis_cont", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {"8000/tcp": [{"HostIp": "", "HostPort": "8000"}]}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/netns-26570bfa-e45a-5610-b514-d1f11e892672"}, "OCIConfigPath": "/var/home/xxxx/.local/share/containers/storage/overlay-containers/27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53/userdata/config.json", "OCIRuntime": "crun", "Path": "docker-entrypoint.sh", "PidFile": "/run/user/1000/containers/overlay-containers/27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53/userdata/pidfile", "Pod": "133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e", "ProcessLabel": "system_u:system_r:container_t:s0:c685,c840", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"CgroupPath": "/user.slice/user-1000.slice/[email protected]/user.slice/user-libpod_pod_133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e.slice/libpod-27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53.scope", "CheckpointedAt": "0001-01-01T00:00:00Z", "ConmonPid": 14910, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "2022-12-04T11:21:50.374255513Z", "Health": {"FailingStreak": 0, "Log": null, "Status": ""}, "OOMKilled": false, "OciVersion": "1.0.2-dev", "Paused": false, "Pid": 14912, "Restarting": false, "RestoredAt": "0001-01-01T00:00:00Z", "Running": true, "StartedAt": "2022-12-04T11:22:11.132226206Z", "Status": "running"}, "StaticDir": "/var/home/xxxx/.local/share/containers/storage/overlay-containers/27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53/userdata"}, "podman_actions": [], "podman_systemd": {"container-redis_cont": "# container-redis_cont.service\n# autogenerated by Podman 4.3.0\n# Sun Dec 4 11:31:29 GMT 2022\n\n[Unit]\nDescription=Podman container-redis_cont.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 redis_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 redis_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 redis_cont\nPIDFile=/run/user/1000/containers/overlay-containers/27d1e1caaa0dcf40c4cf41dbda02ff7c2269f05a81b1c02708814ac5b3f93f53/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"}, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
TASK [Pull Python Image] *******************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:18
ok: [localhost] => {"actions": [], "changed": false, "image": {}, "podman_actions": ["/usr/bin/podman image ls docker.io/library/python:latest --format json"]}
TASK [Build Custom Python Image] ***********************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:22
ok: [localhost] => {"actions": [], "changed": false, "image": {}, "podman_actions": ["/usr/bin/podman image ls python:django_forum_test_image --format json"]}
TASK [debug] *******************************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:32
ok: [localhost] => {
"build_output": {
"actions": [],
"changed": false,
"failed": false,
"image": {},
"podman_actions": [
"/usr/bin/podman image ls python:django_forum_test_image --format json"
]
}
}
TASK [output image info] *******************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:33
changed: [localhost] => {"changed": true, "cmd": "exec /usr/bin/podman image ls python:django_forum_test_image --format json", "delta": "0:00:00.027645", "end": "2022-12-04 11:31:30.229360", "msg": "", "rc": 0, "start": "2022-12-04 11:31:30.201715", "stderr": "", "stderr_lines": [], "stdout": "[\n {\n \"Id\": \"6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348\",\n \"ParentId\": \"15812363de4e74eba723a6166e305469f3b02c8ba0451d3b4e276c297ac7fbee\",\n \"RepoTags\": null,\n \"RepoDigests\": [\n \"localhost/python@sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\"\n ],\n \"Size\": 1098516710,\n \"SharedSize\": 0,\n \"VirtualSize\": 1098516710,\n \"Labels\": {\n \"io.buildah.version\": \"1.28.0\"\n },\n \"Containers\": 1,\n \"Names\": [\n \"localhost/python:django_forum_test_image\"\n ],\n \"Digest\": \"sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\",\n \"History\": [\n \"localhost/python:django_forum_test_image\"\n ],\n \"Created\": 1669894480,\n \"CreatedAt\": \"2022-12-01T11:34:40Z\"\n }\n]", "stdout_lines": ["[", " {", " \"Id\": \"6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348\",", " \"ParentId\": \"15812363de4e74eba723a6166e305469f3b02c8ba0451d3b4e276c297ac7fbee\",", " \"RepoTags\": null,", " \"RepoDigests\": [", " \"localhost/python@sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\"", " ],", " \"Size\": 1098516710,", " \"SharedSize\": 0,", " \"VirtualSize\": 1098516710,", " \"Labels\": {", " \"io.buildah.version\": \"1.28.0\"", " },", " \"Containers\": 1,", " \"Names\": [", " \"localhost/python:django_forum_test_image\"", " ],", " \"Digest\": \"sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\",", " \"History\": [", " \"localhost/python:django_forum_test_image\"", " ],", " \"Created\": 1669894480,", " \"CreatedAt\": \"2022-12-01T11:34:40Z\"", " }", "]"]}
TASK [debug] *******************************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:36
ok: [localhost] => {
"image_output.stdout_lines": [
"[",
" {",
" \"Id\": \"6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348\",",
" \"ParentId\": \"15812363de4e74eba723a6166e305469f3b02c8ba0451d3b4e276c297ac7fbee\",",
" \"RepoTags\": null,",
" \"RepoDigests\": [",
" \"localhost/python@sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\"",
" ],",
" \"Size\": 1098516710,",
" \"SharedSize\": 0,",
" \"VirtualSize\": 1098516710,",
" \"Labels\": {",
" \"io.buildah.version\": \"1.28.0\"",
" },",
" \"Containers\": 1,",
" \"Names\": [",
" \"localhost/python:django_forum_test_image\"",
" ],",
" \"Digest\": \"sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\",",
" \"History\": [",
" \"localhost/python:django_forum_test_image\"",
" ],",
" \"Created\": 1669894480,",
" \"CreatedAt\": \"2022-12-01T11:34:40Z\"",
" }",
"]"
]
}
TASK [Create custom container] *************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:37
changed: [localhost] => {"actions": ["recreated django_forum_test_cont"], "changed": true, "container": {"AppArmorProfile": "", "Args": ["/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh"], "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.ContainerType": "container", "io.kubernetes.cri-o.Created": "2022-12-04T11:31:30.619542804Z", "io.kubernetes.cri-o.SandboxID": "c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "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.base.digest": "sha256:11e9f7cac5df6eefdb80168e417a30d527ddc068811cc7e14df8d35c61f6ae7e", "org.opencontainers.image.base.name": "docker.io/library/python:latest", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": null, "CreateCommand": ["podman", "container", "run", "--name", "django_forum_test_cont", "--detach=True", "--volume", "/var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z", "--volume", "certvol:/etc/certs", "--pod", "django_forum_test_pod", "localhost/python:django_forum_test_image"], "Domainname": "", "Entrypoint": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh", "Env": ["PYTHON_VERSION=3.11.0", "PYTHON_SETUPTOOLS_VERSION=65.5.0", "TERM=xterm", "container=podman", "GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D", "PYTHONPATH=/opt/ceramic_isles_test/", "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py", "PYTHON_GET_PIP_SHA256=1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6", "PYTHON_PIP_VERSION=22.3", "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=C.UTF-8", "HOME=/root", "HOSTNAME=django_forum_test_pod"], "HealthcheckOnFailureAction": "none", "Hostname": "django_forum_test_pod", "Image": "localhost/python:django_forum_test_image", "Labels": {"io.buildah.version": "1.28.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/edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d/userdata/conmon.pid", "Created": "2022-12-04T11:31:30.619542804Z", "Dependencies": ["c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd"], "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": "/var/home/xxxx/.local/share/containers/storage/overlay/a07142582efb5801ae4480b2eaa00b393c81a89e60b17cc63b2ffb47dbeade1e/diff:/var/home/xxxx/.local/share/containers/storage/overlay/05e497753aad6c544463f58cd8b80c3cbe6cc9440ff336fd468e3a9435a951be/diff:/var/home/xxxx/.local/share/containers/storage/overlay/ce886fdd03dd42d9ddc4bcf3d4f66e7b6f99ad3771e59c7065458dd9c0343c3f/diff:/var/home/xxxx/.local/share/containers/storage/overlay/b0389287364173c65794467efb6b77a7b0d88c87177ee2e9175927556b37e854/diff:/var/home/xxxx/.local/share/containers/storage/overlay/bd3a2bf6230cc029a4521a39b175315c5bc2d9e083d28abc63adfa16d2cf86fb/diff:/var/home/xxxx/.local/share/containers/storage/overlay/3f3fb8d4a409ea024d9308332a69c482fffe4cae43804ea41d0c1e96bd0f254c/diff:/var/home/xxxx/.local/share/containers/storage/overlay/aa4c7efb571f272785bad83d615b5e2077f4231e8d92f8f413b592d9c0b8f24e/diff:/var/home/xxxx/.local/share/containers/storage/overlay/7a62028415a23aa88d2ebf3548053e877940420e3947f798657cd6885b0cedaa/diff:/var/home/xxxx/.local/share/containers/storage/overlay/86e1e5f93ce17374d0b6256ea42c3033d8bed87215800a760daad7f82054b25d/diff:/var/home/xxxx/.local/share/containers/storage/overlay/a59fb4e2116b759fd6374bee5917f867d97c2a177ac312f0a0d4085e1758af4b/diff:/var/home/xxxx/.local/share/containers/storage/overlay/5fb59e31a6f4b877aad283ef0b6fdcd2b34668561d5f0dbe899e18f310a6bdf6/diff:/var/home/xxxx/.local/share/containers/storage/overlay/4331181aa8cb32b7f67f87e58272995eb6438c76e4525bc9f04002a5c56f60e8/diff:/var/home/xxxx/.local/share/containers/storage/overlay/79553cf5602742d49063dc41a623d0bed293aaa768c4583a68ac417bd875715a/diff:/var/home/xxxx/.local/share/containers/storage/overlay/82d7ce63de23f6e0effdf65e4af730d71846a5f5cbde5ac7d09ce6579705ad69/diff:/var/home/xxxx/.local/share/containers/storage/overlay/ccba29d6937047c719a6c048a7038d3907590fbb8556418d119469b2ad4f95bc/diff", "MergedDir": "/var/home/xxxx/.local/share/containers/storage/overlay/cb60e46b2d2a588fdac738e2bfbbbbc8fdb6fe8481ac53d3b1f7523c3e0bfdae/merged", "UpperDir": "/var/home/xxxx/.local/share/containers/storage/overlay/cb60e46b2d2a588fdac738e2bfbbbbc8fdb6fe8481ac53d3b1f7523c3e0bfdae/diff", "WorkDir": "/var/home/xxxx/.local/share/containers/storage/overlay/cb60e46b2d2a588fdac738e2bfbbbbc8fdb6fe8481ac53d3b1f7523c3e0bfdae/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["certvol:/etc/certs:rw,rprivate,nosuid,nodev,rbind", "/var/home/xxxx/src/ceramic_isles_tests/django_forum:/opt/ceramic_isles_test:rw,rprivate,rbind"], "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/user-libpod_pod_133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e.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": "container:c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "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": "container:c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "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": "container:c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd", "Ulimits": [], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/run/user/1000/containers/overlay-containers/edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d/userdata/hostname", "HostsPath": "/run/user/1000/containers/overlay-containers/c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd/userdata/hosts", "Id": "edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d", "Image": "6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348", "ImageDigest": "sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1", "ImageName": "localhost/python:django_forum_test_image", "IsInfra": false, "IsService": false, "MountLabel": "system_u:object_r:container_file_t:s0:c685,c840", "Mounts": [{"Destination": "/etc/certs", "Driver": "local", "Mode": "", "Name": "certvol", "Options": ["nosuid", "nodev", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/var/home/xxxx/.local/share/containers/storage/volumes/certvol/_data", "Type": "volume"}, {"Destination": "/opt/ceramic_isles_test", "Driver": "", "Mode": "", "Options": ["rbind"], "Propagation": "rprivate", "RW": true, "Source": "/var/home/xxxx/src/ceramic_isles_tests/django_forum", "Type": "bind"}], "Name": "django_forum_test_cont", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Ports": {"8000/tcp": [{"HostIp": "", "HostPort": "8000"}]}, "SandboxID": "", "SandboxKey": "/run/user/1000/netns/netns-26570bfa-e45a-5610-b514-d1f11e892672"}, "OCIConfigPath": "/var/home/xxxx/.local/share/containers/storage/overlay-containers/edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d/userdata/config.json", "OCIRuntime": "crun", "Path": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh", "PidFile": "/run/user/1000/containers/overlay-containers/edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d/userdata/pidfile", "Pod": "133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e", "ProcessLabel": "system_u:system_r:container_t:s0:c685,c840", "ResolvConfPath": "/run/user/1000/containers/overlay-containers/c82e420b6d0c3becf60dd9c76e894a304a5dfb9ebb6d625ecee28b087c7a18bd/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"CgroupPath": "/user.slice/user-1000.slice/[email protected]/user.slice/user-libpod_pod_133426103bbb3f9a6488710d825ad7932f04c8a8a7af30c8342f4d6d29a0796e.slice/libpod-edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d.scope", "CheckpointedAt": "0001-01-01T00:00:00Z", "ConmonPid": 16351, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Health": {"FailingStreak": 0, "Log": null, "Status": ""}, "OOMKilled": false, "OciVersion": "1.0.2-dev", "Paused": false, "Pid": 16353, "Restarting": false, "RestoredAt": "0001-01-01T00:00:00Z", "Running": true, "StartedAt": "2022-12-04T11:31:30.786996541Z", "Status": "running"}, "StaticDir": "/var/home/xxxx/.local/share/containers/storage/overlay-containers/edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d/userdata"}, "podman_actions": ["podman rm -f django_forum_test_cont", "podman run --name django_forum_test_cont --detach=True --volume /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z --volume certvol:/etc/certs --pod django_forum_test_pod localhost/python:django_forum_test_image"], "podman_systemd": {"container-django_forum_test_cont": "# container-django_forum_test_cont.service\n# autogenerated by Podman 4.3.0\n# Sun Dec 4 11:31:30 GMT 2022\n\n[Unit]\nDescription=Podman container-django_forum_test_cont.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 django_forum_test_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nPIDFile=/run/user/1000/containers/overlay-containers/edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"}, "stderr": "", "stderr_lines": [], "stdout": "edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d\n", "stdout_lines": ["edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d"]}
TASK [debug] *******************************************************************
task path: /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:48
ok: [localhost] => {
"output.stdout_lines": [
"edf15726d1967c8331a9c6a11f686cb05eaa39b5b94416ec0f6409b866f2185d"
]
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************
localhost : ok=10 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Additional environment details (AWS, VirtualBox, physical, etc.): running inside a virt-manager kvm silverblue fedora 37.
Can you please write exact commands you run on this playbook and what is the actual result? I can't reproduce it. When I run the second time, the pod is started and container is started. I don't see something recreated. Thanks
When you run the second time, are the pip packages still installed?
When I run it, the pip packages installed before stopping the pod (with either a teardown playbook or podman pod stop django_forum_test_pod) are no longer present. This is the behaviour I would expect from the command if the recreate setting were defined as true in the playbook. According to the docs, the recreate defaults to false, so the container should not be recreated, and thus the pip packages should still be present.
I run the playbook with ansible-playbook theplaybook.yaml.
Mine is not recreated. Can you please post results of the second run here?
second run? as in you want me to run the ansible-playbook command again?
Did you comment out the podman exec pip install task? If you don't comment that out the pip pkgs will be installed. The aim is to get that task to test for the existence of a package and only run if that package is not installed.
Sorry, I can't understand what is going on here. Can you please reduce the playbook to what essential for this bug?
And write explicitly what you see and what you expect.
Did you run with --diff? I'm trying to understand why container is recreated..
There are a number of named tasks inside the playbook. The last one uses the podman command in an ansible shell to check for the existence of a pip package (django) and if it doesn't exist, then it installs the packages using 'pip install -r requirements.txt`. But that shell command runs every time, as each time the container is created, the pip packages are no longer present, when they should be. If I run the playbook as above, and then stop the pod, and then start it again, when I exec into the custom python container, the pip packages are still present as expected. But if I stop the pod and then rerun the ansible playbook, then the container is recreated when it should only be restarted.
So simply run the ansible playbook once, and then stop the pod, comment out the last task in the playbook and rerun the playbook, and then run podman exec -it django_forum_test_cont bash and run the command pip show django. This then reports that django is not installed.
This is the playbook with the last task commented out.
---
- name: provisioning django_messages testapp
hosts: localhost
vars:
pip_run: "{{ lookup('ansible.builtin.env', 'PIP_INSTALLED', default='False') }}"
tasks:
- name: Create Pod
containers.podman.podman_pod:
name: django_forum_test_pod
publish: 8000:8000
- name: Create Redis Container
containers.podman.podman_container:
name: redis_cont
image: docker.io/library/redis
command: redis-server --appendonly yes
state: started
pod: django_forum_test_pod
- name: Pull Python Image
containers.podman.podman_image:
name: docker.io/library/python
state: present
- name: Build Custom Python Image
containers.podman.podman_image:
name: python
tag: django_forum_test_image
path: ./dockerfile_python
build:
cache: false
extra_args: "-f './dockerfile_python/Dockerfile_Test'"
state: present
register: build_output
- debug: var=build_output
- name: output image info
shell: exec {{ build_output['podman_actions'][0] }}
register: image_output
- debug: var=image_output.stdout_lines
- name: Create custom container
containers.podman.podman_container:
name: django_forum_test_cont
image: localhost/python:django_forum_test_image
state: started
detach: true
volume:
- "{{ playbook_dir }}/../../../django_forum:/opt/ceramic_isles_test:Z"
- "certvol:/etc/certs"
pod: django_forum_test_pod
register: output
- debug: var=output.stdout_lines
# - name: podman exec pip install
# shell: podman exec -it django_forum_test_cont bash -c '! pip show django &>/dev/null &&
# pip install -r /opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/pip_requirements'
# register: pip_output
# when: build_output.changed # 'pip_run|bool != True'
# tags: pip_install
# - debug: var=pip_output # .stdout_lines
# - name: test pytest output
# shell: echo '{{ output.stdout }}'
# register: test_output
# - debug: var=test_output.stdout_lines
@sshnaidm Does that make sense?
Thanks, it's more clear now. More or less it's what I do when try to reproduce. Can you run it with --diff when container is recreated? I'm trying to understand if it's an idempotency bug or not.
For me it's still not reproducible..
Thanks. Will look at it first thing tomorrow. And will run the diff command to check for idempotency.
The link below is the output of the command ansible-playbook --diff -vv ansible_setup_test.yml.
https://dpaste.org/RqNph ~~https://pastebin.com/2ZCKjK6q~~ (pastebin deleted for unknown reason)
At this point the command podman exec -it django_forum_test_cont bash -c "pip show django" lists the django package - ie it is installed.
I then run podman pod stop django_forum_test_pod followed by podman pod start django_forum_test_pod and then run the above exec command, which once again shows that the python package 'django' is installed.
Following that, I run the command podman pod stop django_forum_test_pod and then comment out the pip install task in the yaml playbook and run the ansible playbook once again, using the command I listed above. This gives the output linked to below:
https://dpaste.org/hu5MK ~~https://pastebin.com/Qd2Lhuje~~
At this point, I expect the pip packages to still be installed in the python container. So I run the exec command again, as above podman exec -it django_forum_test_cont bash -c "pip show django" but this time I am informed that the package is not installed.
According to the docs, if the configuration is different then the container is recreated, but I cannot see where the configuration might be different..
Here is the output from the container creation in the ansible playbook. It reports that it has changed but not why, I think.
ok: [localhost] => {
"output": {
"actions": [
"recreated django_forum_test_cont"
],
"changed": true,
"container": {
"AppArmorProfile": "",
"Args": [
"/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh"
],
"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.ContainerType": "container",
"io.kubernetes.cri-o.Created": "2022-12-16T18:48:05.018012179Z",
"io.kubernetes.cri-o.SandboxID": "4191a7f40c030fbeef6521d08b034173d07de7babe769953a1c874fd21b5f4df",
"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.base.digest": "sha256:11e9f7cac5df6eefdb80168e417a30d527ddc068811cc7e14df8d35c61f6ae7e",
"org.opencontainers.image.base.name": "docker.io/library/python:latest",
"org.opencontainers.image.stopSignal": "15"
},
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": null,
"CreateCommand": [
"podman",
"container",
"run",
"--name",
"django_forum_test_cont",
"--detach=True",
"--volume",
"/var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z",
"--volume",
"certvol:/etc/certs",
"--pod",
"django_forum_test_pod",
"localhost/python:django_forum_test_image"
],
"Domainname": "",
"Entrypoint": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh",
"Env": [
"TERM=xterm",
"container=podman",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py",
"PYTHONPATH=/opt/ceramic_isles_test/",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHON_PIP_VERSION=22.3",
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PYTHON_VERSION=3.11.0",
"PYTHON_SETUPTOOLS_VERSION=65.5.0",
"PYTHON_GET_PIP_SHA256=1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6",
"LANG=C.UTF-8",
"HOME=/root",
"HOSTNAME=django_forum_test_pod"
],
"HealthcheckOnFailureAction": "none",
"Hostname": "django_forum_test_pod",
"Image": "localhost/python:django_forum_test_image",
"Labels": {
"io.buildah.version": "1.28.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/a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96/userdata/conmon.pid",
"Created": "2022-12-16T18:48:05.018012179Z",
"Dependencies": [
"4191a7f40c030fbeef6521d08b034173d07de7babe769953a1c874fd21b5f4df"
],
"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": "/var/home/xxxx/.local/share/containers/storage/overlay/a07142582efb5801ae4480b2eaa00b393c81a89e60b17cc63b2ffb47dbeade1e/diff:/var/home/xxxx/.local/share/containers/storage/overlay/05e497753aad6c544463f58cd8b80c3cbe6cc9440ff336fd468e3a9435a951be/diff:/var/home/xxxx/.local/share/containers/storage/overlay/ce886fdd03dd42d9ddc4bcf3d4f66e7b6f99ad3771e59c7065458dd9c0343c3f/diff:/var/home/xxxx/.local/share/containers/storage/overlay/b0389287364173c65794467efb6b77a7b0d88c87177ee2e9175927556b37e854/diff:/var/home/xxxx/.local/share/containers/storage/overlay/bd3a2bf6230cc029a4521a39b175315c5bc2d9e083d28abc63adfa16d2cf86fb/diff:/var/home/xxxx/.local/share/containers/storage/overlay/3f3fb8d4a409ea024d9308332a69c482fffe4cae43804ea41d0c1e96bd0f254c/diff:/var/home/xxxx/.local/share/containers/storage/overlay/aa4c7efb571f272785bad83d615b5e2077f4231e8d92f8f413b592d9c0b8f24e/diff:/var/home/xxxx/.local/share/containers/storage/overlay/7a62028415a23aa88d2ebf3548053e877940420e3947f798657cd6885b0cedaa/diff:/var/home/xxxx/.local/share/containers/storage/overlay/86e1e5f93ce17374d0b6256ea42c3033d8bed87215800a760daad7f82054b25d/diff:/var/home/xxxx/.local/share/containers/storage/overlay/a59fb4e2116b759fd6374bee5917f867d97c2a177ac312f0a0d4085e1758af4b/diff:/var/home/xxxx/.local/share/containers/storage/overlay/5fb59e31a6f4b877aad283ef0b6fdcd2b34668561d5f0dbe899e18f310a6bdf6/diff:/var/home/xxxx/.local/share/containers/storage/overlay/4331181aa8cb32b7f67f87e58272995eb6438c76e4525bc9f04002a5c56f60e8/diff:/var/home/xxxx/.local/share/containers/storage/overlay/79553cf5602742d49063dc41a623d0bed293aaa768c4583a68ac417bd875715a/diff:/var/home/xxxx/.local/share/containers/storage/overlay/82d7ce63de23f6e0effdf65e4af730d71846a5f5cbde5ac7d09ce6579705ad69/diff:/var/home/xxxx/.local/share/containers/storage/overlay/ccba29d6937047c719a6c048a7038d3907590fbb8556418d119469b2ad4f95bc/diff",
"MergedDir": "/var/home/xxxx/.local/share/containers/storage/overlay/2812ce51b19620a801c639436bbddbd691fb785581212f6288857b386425221f/merged",
"UpperDir": "/var/home/xxxx/.local/share/containers/storage/overlay/2812ce51b19620a801c639436bbddbd691fb785581212f6288857b386425221f/diff",
"WorkDir": "/var/home/xxxx/.local/share/containers/storage/overlay/2812ce51b19620a801c639436bbddbd691fb785581212f6288857b386425221f/work"
},
"Name": "overlay"
},
"HostConfig": {
"AutoRemove": false,
"Binds": [
"certvol:/etc/certs:rw,rprivate,nosuid,nodev,rbind",
"/var/home/xxxx/src/ceramic_isles_tests/django_forum:/opt/ceramic_isles_test:rw,rprivate,rbind"
],
"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/user-libpod_pod_8528f719d091553072d3079ba2bb825c843c84472182cc97d162c2fbfdd5d3c2.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": "container:4191a7f40c030fbeef6521d08b034173d07de7babe769953a1c874fd21b5f4df",
"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": "container:4191a7f40c030fbeef6521d08b034173d07de7babe769953a1c874fd21b5f4df",
"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": "container:4191a7f40c030fbeef6521d08b034173d07de7babe769953a1c874fd21b5f4df",
"Ulimits": [],
"UsernsMode": "",
"VolumeDriver": "",
"VolumesFrom": null
},
"HostnamePath": "/run/user/1000/containers/overlay-containers/a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96/userdata/hostname",
"HostsPath": "/run/user/1000/containers/overlay-containers/4191a7f40c030fbeef6521d08b034173d07de7babe769953a1c874fd21b5f4df/userdata/hosts",
"Id": "a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96",
"Image": "6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348",
"ImageDigest": "sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1",
"ImageName": "localhost/python:django_forum_test_image",
"IsInfra": false,
"IsService": false,
"MountLabel": "system_u:object_r:container_file_t:s0:c484,c943",
"Mounts": [
{
"Destination": "/etc/certs",
"Driver": "local",
"Mode": "",
"Name": "certvol",
"Options": [
"nosuid",
"nodev",
"rbind"
],
"Propagation": "rprivate",
"RW": true,
"Source": "/var/home/xxxx/.local/share/containers/storage/volumes/certvol/_data",
"Type": "volume"
},
{
"Destination": "/opt/ceramic_isles_test",
"Driver": "",
"Mode": "",
"Options": [
"rbind"
],
"Propagation": "rprivate",
"RW": true,
"Source": "/var/home/xxxx/src/ceramic_isles_tests/django_forum",
"Type": "bind"
}
],
"Name": "django_forum_test_cont",
"Namespace": "",
"NetworkSettings": {
"Bridge": "",
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"MacAddress": "",
"Ports": {
"8000/tcp": [
{
"HostIp": "",
"HostPort": "8000"
}
]
},
"SandboxID": "",
"SandboxKey": "/run/user/1000/netns/netns-6e805a16-8c1a-9109-5a50-18504b6f9601"
},
"OCIConfigPath": "/var/home/xxxx/.local/share/containers/storage/overlay-containers/a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96/userdata/config.json",
"OCIRuntime": "crun",
"Path": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh",
"PidFile": "/run/user/1000/containers/overlay-containers/a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96/userdata/pidfile",
"Pod": "8528f719d091553072d3079ba2bb825c843c84472182cc97d162c2fbfdd5d3c2",
"ProcessLabel": "system_u:system_r:container_t:s0:c484,c943",
"ResolvConfPath": "/run/user/1000/containers/overlay-containers/4191a7f40c030fbeef6521d08b034173d07de7babe769953a1c874fd21b5f4df/userdata/resolv.conf",
"RestartCount": 0,
"Rootfs": "",
"State": {
"CgroupPath": "/user.slice/user-1000.slice/[email protected]/user.slice/user-libpod_pod_8528f719d091553072d3079ba2bb825c843c84472182cc97d162c2fbfdd5d3c2.slice/libpod-a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96.scope",
"CheckpointedAt": "0001-01-01T00:00:00Z",
"ConmonPid": 10120,
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"FailingStreak": 0,
"Log": null,
"Status": ""
},
"OOMKilled": false,
"OciVersion": "1.0.2-dev",
"Paused": false,
"Pid": 10122,
"Restarting": false,
"RestoredAt": "0001-01-01T00:00:00Z",
"Running": true,
"StartedAt": "2022-12-16T18:48:05.223169417Z",
"Status": "running"
},
"StaticDir": "/var/home/xxxx/.local/share/containers/storage/overlay-containers/a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96/userdata"
},
"failed": false,
"podman_actions": [
"podman stop django_forum_test_cont",
"podman rm -f django_forum_test_cont",
"podman run --name django_forum_test_cont --detach=True --volume /var/home/xxxx/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z --volume certvol:/etc/certs --pod django_forum_test_pod localhost/python:django_forum_test_image"
],
"podman_systemd": {
"container-django_forum_test_cont": "# container-django_forum_test_cont.service\n# autogenerated by Podman 4.3.1\n# Fri Dec 16 18:48:05 GMT 2022\n\n[Unit]\nDescription=Podman container-django_forum_test_cont.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 django_forum_test_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nPIDFile=/run/user/1000/containers/overlay-containers/a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"
},
"stderr": "",
"stderr_lines": [],
"stdout": "a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96\n",
"stdout_lines": [
"a0939491864efe4baa2a530459cdd5422da05b002e7070ac8c7a42581c8d6f96"
]
}
}
Here is the output from the container creation in the ansible playbook. It reports that it has changed but not why, I think.
Did you run the playbook with --diff and -vv options?
this is the output from the container build with --diff and -vv. I can't see anything that might have changed.
ok: [localhost] => {
"image_output.stdout_lines": [
"[",
" {",
" \"Id\": \"6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348\",",
" \"ParentId\": \"15812363de4e74eba723a6166e305469f3b02c8ba0451d3b4e276c297ac7fbee\",",
" \"RepoTags\": null,",
" \"RepoDigests\": [",
" \"localhost/python@sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\"",
" ],",
" \"Size\": 1098516710,",
" \"SharedSize\": 0,",
" \"VirtualSize\": 1098516710,",
" \"Labels\": {",
" \"io.buildah.version\": \"1.28.0\"",
" },",
" \"Containers\": 0,",
" \"Names\": [",
" \"localhost/python:django_forum_test_image\"",
" ],",
" \"Digest\": \"sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1\",",
" \"History\": [",
" \"localhost/python:django_forum_test_image\"",
" ],",
" \"Created\": 1669894480,",
" \"CreatedAt\": \"2022-12-01T11:34:40Z\"",
" }",
"]"
]
}
TASK [Create custom container] ************************************************************************************************************************************************************
task path: /var/home/dev/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:43
changed: [localhost] => {
"actions": [
"started django_forum_test_cont"
],
"changed": true,
"container": {
"AppArmorProfile": "",
"Args": [
"/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh"
],
"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.ContainerType": "container",
"io.kubernetes.cri-o.Created": "2022-12-18T15:11:49.613962702Z",
"io.kubernetes.cri-o.SandboxID": "7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"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.base.digest": "sha256:11e9f7cac5df6eefdb80168e417a30d527ddc068811cc7e14df8d35c61f6ae7e",
"org.opencontainers.image.base.name": "docker.io/library/python:latest",
"org.opencontainers.image.stopSignal": "15"
},
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": null,
"CreateCommand": [
"podman",
"container",
"run",
"--name",
"django_forum_test_cont",
"--detach=True",
"--volume",
"/var/home/dev/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z",
"--volume",
"certvol:/etc/certs",
"--pod",
"django_forum_test_pod",
"localhost/python:django_forum_test_image"
],
"Domainname": "",
"Entrypoint": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh",
"Env": [
"PYTHON_VERSION=3.11.0",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHONPATH=/opt/ceramic_isles_test/",
"TERM=xterm",
"PYTHON_SETUPTOOLS_VERSION=65.5.0",
"LANG=C.UTF-8",
"PYTHON_PIP_VERSION=22.3",
"PYTHON_GET_PIP_SHA256=1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py",
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"container=podman",
"HOME=/root",
"HOSTNAME=django_forum_test_pod"
],
"HealthcheckOnFailureAction": "none",
"Hostname": "django_forum_test_pod",
"Image": "localhost/python:django_forum_test_image",
"Labels": {
"io.buildah.version": "1.28.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/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/conmon.pid",
"Created": "2022-12-18T15:11:49.613962702Z",
"Dependencies": [
"7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab"
],
"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": "/var/home/dev/.local/share/containers/storage/overlay/a07142582efb5801ae4480b2eaa00b393c81a89e60b17cc63b2ffb47dbeade1e/diff:/var/home/dev/.local/share/containers/storage/overlay/05e497753aad6c544463f58cd8b80c3cbe6cc9440ff336fd468e3a9435a951be/diff:/var/home/dev/.local/share/containers/storage/overlay/ce886fdd03dd42d9ddc4bcf3d4f66e7b6f99ad3771e59c7065458dd9c0343c3f/diff:/var/home/dev/.local/share/containers/storage/overlay/b0389287364173c65794467efb6b77a7b0d88c87177ee2e9175927556b37e854/diff:/var/home/dev/.local/share/containers/storage/overlay/bd3a2bf6230cc029a4521a39b175315c5bc2d9e083d28abc63adfa16d2cf86fb/diff:/var/home/dev/.local/share/containers/storage/overlay/3f3fb8d4a409ea024d9308332a69c482fffe4cae43804ea41d0c1e96bd0f254c/diff:/var/home/dev/.local/share/containers/storage/overlay/aa4c7efb571f272785bad83d615b5e2077f4231e8d92f8f413b592d9c0b8f24e/diff:/var/home/dev/.local/share/containers/storage/overlay/7a62028415a23aa88d2ebf3548053e877940420e3947f798657cd6885b0cedaa/diff:/var/home/dev/.local/share/containers/storage/overlay/86e1e5f93ce17374d0b6256ea42c3033d8bed87215800a760daad7f82054b25d/diff:/var/home/dev/.local/share/containers/storage/overlay/a59fb4e2116b759fd6374bee5917f867d97c2a177ac312f0a0d4085e1758af4b/diff:/var/home/dev/.local/share/containers/storage/overlay/5fb59e31a6f4b877aad283ef0b6fdcd2b34668561d5f0dbe899e18f310a6bdf6/diff:/var/home/dev/.local/share/containers/storage/overlay/4331181aa8cb32b7f67f87e58272995eb6438c76e4525bc9f04002a5c56f60e8/diff:/var/home/dev/.local/share/containers/storage/overlay/79553cf5602742d49063dc41a623d0bed293aaa768c4583a68ac417bd875715a/diff:/var/home/dev/.local/share/containers/storage/overlay/82d7ce63de23f6e0effdf65e4af730d71846a5f5cbde5ac7d09ce6579705ad69/diff:/var/home/dev/.local/share/containers/storage/overlay/ccba29d6937047c719a6c048a7038d3907590fbb8556418d119469b2ad4f95bc/diff",
"MergedDir": "/var/home/dev/.local/share/containers/storage/overlay/0c1da2838b571d7eaae2106afa7167096dd4e57b7b819037b9ea0619fc1a56ef/merged",
"UpperDir": "/var/home/dev/.local/share/containers/storage/overlay/0c1da2838b571d7eaae2106afa7167096dd4e57b7b819037b9ea0619fc1a56ef/diff",
"WorkDir": "/var/home/dev/.local/share/containers/storage/overlay/0c1da2838b571d7eaae2106afa7167096dd4e57b7b819037b9ea0619fc1a56ef/work"
},
"Name": "overlay"
},
"HostConfig": {
"AutoRemove": false,
"Binds": [
"certvol:/etc/certs:rw,rprivate,nosuid,nodev,rbind",
"/var/home/dev/src/ceramic_isles_tests/django_forum:/opt/ceramic_isles_test:rw,rprivate,rbind"
],
"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/user-libpod_pod_0b9e18c8279331d1c595a4f291e95f25695b8742fea10aa2faa6315752ba8deb.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": "container:7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"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": "container:7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"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": "container:7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"Ulimits": [],
"UsernsMode": "",
"VolumeDriver": "",
"VolumesFrom": null
},
"HostnamePath": "/run/user/1000/containers/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/hostname",
"HostsPath": "/run/user/1000/containers/overlay-containers/7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab/userdata/hosts",
"Id": "55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07",
"Image": "6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348",
"ImageDigest": "sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1",
"ImageName": "localhost/python:django_forum_test_image",
"IsInfra": false,
"IsService": false,
"MountLabel": "system_u:object_r:container_file_t:s0:c506,c857",
"Mounts": [
{
"Destination": "/etc/certs",
"Driver": "local",
"Mode": "",
"Name": "certvol",
"Options": [
"nosuid",
"nodev",
"rbind"
],
"Propagation": "rprivate",
"RW": true,
"Source": "/var/home/dev/.local/share/containers/storage/volumes/certvol/_data",
"Type": "volume"
},
{
"Destination": "/opt/ceramic_isles_test",
"Driver": "",
"Mode": "",
"Options": [
"rbind"
],
"Propagation": "rprivate",
"RW": true,
"Source": "/var/home/dev/src/ceramic_isles_tests/django_forum",
"Type": "bind"
}
],
"Name": "django_forum_test_cont",
"Namespace": "",
"NetworkSettings": {
"Bridge": "",
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"MacAddress": "",
"Ports": {
"8000/tcp": [
{
"HostIp": "",
"HostPort": "8000"
}
]
},
"SandboxID": "",
"SandboxKey": "/run/user/1000/netns/netns-2ea4ae18-1811-4180-70b8-59fdfbaded48"
},
"OCIConfigPath": "/var/home/dev/.local/share/containers/storage/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/config.json",
"OCIRuntime": "crun",
"Path": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh",
"PidFile": "/run/user/1000/containers/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/pidfile",
"Pod": "0b9e18c8279331d1c595a4f291e95f25695b8742fea10aa2faa6315752ba8deb",
"ProcessLabel": "system_u:system_r:container_t:s0:c506,c857",
"ResolvConfPath": "/run/user/1000/containers/overlay-containers/7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab/userdata/resolv.conf",
"RestartCount": 0,
"Rootfs": "",
"State": {
"CgroupPath": "/user.slice/user-1000.slice/[email protected]/user.slice/user-libpod_pod_0b9e18c8279331d1c595a4f291e95f25695b8742fea10aa2faa6315752ba8deb.slice/libpod-55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07.scope",
"CheckpointedAt": "0001-01-01T00:00:00Z",
"ConmonPid": 8082,
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"FailingStreak": 0,
"Log": null,
"Status": ""
},
"OOMKilled": false,
"OciVersion": "1.0.2-dev",
"Paused": false,
"Pid": 8084,
"Restarting": false,
"RestoredAt": "0001-01-01T00:00:00Z",
"Running": true,
"StartedAt": "2022-12-18T15:11:50.539684254Z",
"Status": "running"
},
"StaticDir": "/var/home/dev/.local/share/containers/storage/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata"
},
"podman_actions": [
"podman run --name django_forum_test_cont --detach=True --volume /var/home/dev/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z --volume certvol:/etc/certs --pod django_forum_test_pod localhost/python:django_forum_test_image"
],
"podman_systemd": {
"container-django_forum_test_cont": "# container-django_forum_test_cont.service\n# autogenerated by Podman 4.3.1\n# Sun Dec 18 15:11:50 GMT 2022\n\n[Unit]\nDescription=Podman container-django_forum_test_cont.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 django_forum_test_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nPIDFile=/run/user/1000/containers/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"
},
"stderr": "",
"stderr_lines": [],
"stdout": "55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07\n",
"stdout_lines": [
"55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07"
]
}
TASK [debug] ******************************************************************************************************************************************************************************
task path: /var/home/dev/src/ceramic_isles_tests/django_forum/django_forum/testapp/ansible_setup_test.yml:55
ok: [localhost] => {
"output": {
"actions": [
"started django_forum_test_cont"
],
"changed": true,
"container": {
"AppArmorProfile": "",
"Args": [
"/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh"
],
"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.ContainerType": "container",
"io.kubernetes.cri-o.Created": "2022-12-18T15:11:49.613962702Z",
"io.kubernetes.cri-o.SandboxID": "7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"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.base.digest": "sha256:11e9f7cac5df6eefdb80168e417a30d527ddc068811cc7e14df8d35c61f6ae7e",
"org.opencontainers.image.base.name": "docker.io/library/python:latest",
"org.opencontainers.image.stopSignal": "15"
},
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": null,
"CreateCommand": [
"podman",
"container",
"run",
"--name",
"django_forum_test_cont",
"--detach=True",
"--volume",
"/var/home/dev/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z",
"--volume",
"certvol:/etc/certs",
"--pod",
"django_forum_test_pod",
"localhost/python:django_forum_test_image"
],
"Domainname": "",
"Entrypoint": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh",
"Env": [
"PYTHON_VERSION=3.11.0",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHONPATH=/opt/ceramic_isles_test/",
"TERM=xterm",
"PYTHON_SETUPTOOLS_VERSION=65.5.0",
"LANG=C.UTF-8",
"PYTHON_PIP_VERSION=22.3",
"PYTHON_GET_PIP_SHA256=1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py",
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"container=podman",
"HOME=/root",
"HOSTNAME=django_forum_test_pod"
],
"HealthcheckOnFailureAction": "none",
"Hostname": "django_forum_test_pod",
"Image": "localhost/python:django_forum_test_image",
"Labels": {
"io.buildah.version": "1.28.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/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/conmon.pid",
"Created": "2022-12-18T15:11:49.613962702Z",
"Dependencies": [
"7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab"
],
"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": "/var/home/dev/.local/share/containers/storage/overlay/a07142582efb5801ae4480b2eaa00b393c81a89e60b17cc63b2ffb47dbeade1e/diff:/var/home/dev/.local/share/containers/storage/overlay/05e497753aad6c544463f58cd8b80c3cbe6cc9440ff336fd468e3a9435a951be/diff:/var/home/dev/.local/share/containers/storage/overlay/ce886fdd03dd42d9ddc4bcf3d4f66e7b6f99ad3771e59c7065458dd9c0343c3f/diff:/var/home/dev/.local/share/containers/storage/overlay/b0389287364173c65794467efb6b77a7b0d88c87177ee2e9175927556b37e854/diff:/var/home/dev/.local/share/containers/storage/overlay/bd3a2bf6230cc029a4521a39b175315c5bc2d9e083d28abc63adfa16d2cf86fb/diff:/var/home/dev/.local/share/containers/storage/overlay/3f3fb8d4a409ea024d9308332a69c482fffe4cae43804ea41d0c1e96bd0f254c/diff:/var/home/dev/.local/share/containers/storage/overlay/aa4c7efb571f272785bad83d615b5e2077f4231e8d92f8f413b592d9c0b8f24e/diff:/var/home/dev/.local/share/containers/storage/overlay/7a62028415a23aa88d2ebf3548053e877940420e3947f798657cd6885b0cedaa/diff:/var/home/dev/.local/share/containers/storage/overlay/86e1e5f93ce17374d0b6256ea42c3033d8bed87215800a760daad7f82054b25d/diff:/var/home/dev/.local/share/containers/storage/overlay/a59fb4e2116b759fd6374bee5917f867d97c2a177ac312f0a0d4085e1758af4b/diff:/var/home/dev/.local/share/containers/storage/overlay/5fb59e31a6f4b877aad283ef0b6fdcd2b34668561d5f0dbe899e18f310a6bdf6/diff:/var/home/dev/.local/share/containers/storage/overlay/4331181aa8cb32b7f67f87e58272995eb6438c76e4525bc9f04002a5c56f60e8/diff:/var/home/dev/.local/share/containers/storage/overlay/79553cf5602742d49063dc41a623d0bed293aaa768c4583a68ac417bd875715a/diff:/var/home/dev/.local/share/containers/storage/overlay/82d7ce63de23f6e0effdf65e4af730d71846a5f5cbde5ac7d09ce6579705ad69/diff:/var/home/dev/.local/share/containers/storage/overlay/ccba29d6937047c719a6c048a7038d3907590fbb8556418d119469b2ad4f95bc/diff",
"MergedDir": "/var/home/dev/.local/share/containers/storage/overlay/0c1da2838b571d7eaae2106afa7167096dd4e57b7b819037b9ea0619fc1a56ef/merged",
"UpperDir": "/var/home/dev/.local/share/containers/storage/overlay/0c1da2838b571d7eaae2106afa7167096dd4e57b7b819037b9ea0619fc1a56ef/diff",
"WorkDir": "/var/home/dev/.local/share/containers/storage/overlay/0c1da2838b571d7eaae2106afa7167096dd4e57b7b819037b9ea0619fc1a56ef/work"
},
"Name": "overlay"
},
"HostConfig": {
"AutoRemove": false,
"Binds": [
"certvol:/etc/certs:rw,rprivate,nosuid,nodev,rbind",
"/var/home/dev/src/ceramic_isles_tests/django_forum:/opt/ceramic_isles_test:rw,rprivate,rbind"
],
"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/user-libpod_pod_0b9e18c8279331d1c595a4f291e95f25695b8742fea10aa2faa6315752ba8deb.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": "container:7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"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": "container:7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"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": "container:7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab",
"Ulimits": [],
"UsernsMode": "",
"VolumeDriver": "",
"VolumesFrom": null
},
"HostnamePath": "/run/user/1000/containers/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/hostname",
"HostsPath": "/run/user/1000/containers/overlay-containers/7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab/userdata/hosts",
"Id": "55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07",
"Image": "6f08974d93f5cc88e0f9247e29d39f12c5a1624d0ccf02b5c72e2f8cb3e1f348",
"ImageDigest": "sha256:02ed301c1ef7702a7e4491806f1d03b255716a2fe203aa420d4e1dab7236e1a1",
"ImageName": "localhost/python:django_forum_test_image",
"IsInfra": false,
"IsService": false,
"MountLabel": "system_u:object_r:container_file_t:s0:c506,c857",
"Mounts": [
{
"Destination": "/etc/certs",
"Driver": "local",
"Mode": "",
"Name": "certvol",
"Options": [
"nosuid",
"nodev",
"rbind"
],
"Propagation": "rprivate",
"RW": true,
"Source": "/var/home/dev/.local/share/containers/storage/volumes/certvol/_data",
"Type": "volume"
},
{
"Destination": "/opt/ceramic_isles_test",
"Driver": "",
"Mode": "",
"Options": [
"rbind"
],
"Propagation": "rprivate",
"RW": true,
"Source": "/var/home/dev/src/ceramic_isles_tests/django_forum",
"Type": "bind"
}
],
"Name": "django_forum_test_cont",
"Namespace": "",
"NetworkSettings": {
"Bridge": "",
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"MacAddress": "",
"Ports": {
"8000/tcp": [
{
"HostIp": "",
"HostPort": "8000"
}
]
},
"SandboxID": "",
"SandboxKey": "/run/user/1000/netns/netns-2ea4ae18-1811-4180-70b8-59fdfbaded48"
},
"OCIConfigPath": "/var/home/dev/.local/share/containers/storage/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/config.json",
"OCIRuntime": "crun",
"Path": "/opt/ceramic_isles_test/django_forum/testapp/dockerfile_python/docker_entrypoint_init.sh",
"PidFile": "/run/user/1000/containers/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/pidfile",
"Pod": "0b9e18c8279331d1c595a4f291e95f25695b8742fea10aa2faa6315752ba8deb",
"ProcessLabel": "system_u:system_r:container_t:s0:c506,c857",
"ResolvConfPath": "/run/user/1000/containers/overlay-containers/7687ba9548935d1424cd6470d9b22341706138af4a47f00ff7e4af5bc4e4a9ab/userdata/resolv.conf",
"RestartCount": 0,
"Rootfs": "",
"State": {
"CgroupPath": "/user.slice/user-1000.slice/[email protected]/user.slice/user-libpod_pod_0b9e18c8279331d1c595a4f291e95f25695b8742fea10aa2faa6315752ba8deb.slice/libpod-55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07.scope",
"CheckpointedAt": "0001-01-01T00:00:00Z",
"ConmonPid": 8082,
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"FailingStreak": 0,
"Log": null,
"Status": ""
},
"OOMKilled": false,
"OciVersion": "1.0.2-dev",
"Paused": false,
"Pid": 8084,
"Restarting": false,
"RestoredAt": "0001-01-01T00:00:00Z",
"Running": true,
"StartedAt": "2022-12-18T15:11:50.539684254Z",
"Status": "running"
},
"StaticDir": "/var/home/dev/.local/share/containers/storage/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata"
},
"failed": false,
"podman_actions": [
"podman run --name django_forum_test_cont --detach=True --volume /var/home/dev/src/ceramic_isles_tests/django_forum/django_forum/testapp/../../../django_forum:/opt/ceramic_isles_test:Z --volume certvol:/etc/certs --pod django_forum_test_pod localhost/python:django_forum_test_image"
],
"podman_systemd": {
"container-django_forum_test_cont": "# container-django_forum_test_cont.service\n# autogenerated by Podman 4.3.1\n# Sun Dec 18 15:11:50 GMT 2022\n\n[Unit]\nDescription=Podman container-django_forum_test_cont.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 django_forum_test_cont\nExecStop=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nExecStopPost=/usr/bin/podman stop \\\n\t-t 10 django_forum_test_cont\nPIDFile=/run/user/1000/containers/overlay-containers/55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07/userdata/conmon.pid\nType=forking\n\n[Install]\nWantedBy=default.target\n"
},
"stderr": "",
"stderr_lines": [],
"stdout": "55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07\n",
"stdout_lines": [
"55e839429f6205247884e8ee36c2984c04b5552e695d1a808f69a38e0671fe07"
]
}
}
I have changed the ansible-playbook to generate the volume for certificates, if it doesn't exist, but I don't think that it changes the volume when the playbook is run against an existing pod. I have just added the recreate=true to the generation of the volume, so perhaps that might mean that the container that binds the volume with cause the ansible task to report that the container has changed....
@millerthegorilla in this last output I don't see container being recreated.
@sshnaidm the second entry of the output dictionary has changed as true. I thought this means that the container has been recreated. Certainly if I enter the container at that point, there are no pip packages installed. So if have the pod already created with a container containing installed pip packages, I was expecting that when I run the ansible playbook that the output -> changed != True. And that the container would simply be started and thus still continue to have python packages still contained inside. It occurs to me to try one thing, which is that I am sharing my pip env prefix with the container, which is probably not a sensible idea. I will.change this and then try it again.
If you mean this:
"actions": [
"started django_forum_test_cont"
],
"changed": true,
then yes, it's changed: true because container was started. Any change of the state counts here, not always it's recreating.
@millerthegorilla are we good here or you still see the issue or bug?
Please reopen if there is a bug.