New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container is recreated when it should just be started #532
Comments
Can you please write exact commands you run on this playbook and what is the actual result? I can't reproduce it. |
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 I run the playbook with |
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 |
Sorry, I can't understand what is going on here. Can you please reduce the playbook to what essential for this bug? |
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`. |
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 |
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 |
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 https://dpaste.org/RqNph At this point the command I then run Following that, I run the command https://dpaste.org/hu5MK 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 |
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/user@1000.service/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"
]
}
} |
Did you run the playbook with |
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/user@1000.service/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/user@1000.service/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. |
If you mean this:
then yes, it's |
It seems that the "podman_container" thinks that the container is changed, in case it is already running, and thus it tries to recreate it; this might be an already reported issue [1]. To avoid problems on this, force the creation of the container to a new one, in case it is running already. This also gives back a new clean Candlepin. [1] containers/ansible-podman-collections#532
It seems that the "podman_container" thinks that the container is changed, in case it is already running, and thus it tries to recreate it; this might be an already reported issue [1]. To avoid problems on this, force the creation of the container to a new one, in case it is running already. This also gives back a new clean Candlepin. [1] containers/ansible-podman-collections#532
@millerthegorilla are we good here or you still see the issue or bug? |
/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
Output of
ansible --version
:Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Playbok you run with ansible (e.g. content of
playbook.yaml
):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
Additional environment details (AWS, VirtualBox, physical, etc.):
running inside a virt-manager kvm silverblue fedora 37.
The text was updated successfully, but these errors were encountered: