Update for new podman output

With podman 4.1.1 (as shipped in Stream 9), the "Healthcheck" key is
now called "Health" in `podman inspect <container>'.

This patch therefor affects the doc, molecule testing and modules in
order to make it aware of the new naming.

This patch also switches back the container_manage molecule job to
voting.

Change-Id: Iad3054bd384f7875f111dc0a72830c9e0e9fda9a
Closes-Bug: #1979810
This commit is contained in:
Cédric Jeanneret 2022-06-27 14:07:53 +02:00 committed by Cedric Jeanneret
parent 4c9233d07c
commit b9694f360e
4 changed files with 8 additions and 7 deletions

View File

@ -128,7 +128,7 @@ the healthcheck is periodically running and healthy:
.. code-block:: bash .. code-block:: bash
"Healthcheck": { "Health": {
"Status": "healthy", "Status": "healthy",
"FailingStreak": 0, "FailingStreak": 0,
"Log": [ "Log": [

View File

@ -94,7 +94,7 @@
- name: Check if tripleo_fedora healthcheck is active and healthy - name: Check if tripleo_fedora healthcheck is active and healthy
assert: assert:
that: that:
- "'healthy' in fedora_infos.containers.0.State.Healthcheck.Status" - "'healthy' in fedora_infos.containers.0.State.Health.Status"
fail_msg: 'fedora container healthcheck is not healthy' fail_msg: 'fedora container healthcheck is not healthy'
success_msg: 'fedora container healthcheck is healthy' success_msg: 'fedora container healthcheck is healthy'
- name: Verify that Fedora systemd healthcheck container was removed correctly - name: Verify that Fedora systemd healthcheck container was removed correctly
@ -240,7 +240,7 @@
- name: Check if tripleo_fedora healthcheck is active and healthy - name: Check if tripleo_fedora healthcheck is active and healthy
assert: assert:
that: that:
- "'healthy' in fedora_infos.containers.0.State.Healthcheck.Status" - "'healthy' in fedora_infos.containers.0.State.Health.Status"
fail_msg: 'fedora container healthcheck is not healthy' fail_msg: 'fedora container healthcheck is not healthy'
success_msg: 'fedora container healthcheck is healthy' success_msg: 'fedora container healthcheck is healthy'
- name: Check for fedora_bis container - name: Check for fedora_bis container
@ -283,7 +283,7 @@
- name: Check if tripleo_fedora healthcheck is active and healthy - name: Check if tripleo_fedora healthcheck is active and healthy
assert: assert:
that: that:
- "'healthy' in fedora_infos.containers.0.State.Healthcheck.Status" - "'healthy' in fedora_infos.containers.0.State.Health.Status"
fail_msg: 'fedora container healthcheck is not healthy' fail_msg: 'fedora container healthcheck is not healthy'
success_msg: 'fedora container healthcheck is healthy' success_msg: 'fedora container healthcheck is healthy'
- name: Check for fedora_bis container - name: Check for fedora_bis container

View File

@ -28,11 +28,13 @@
path: '/tmp/container-configs' path: '/tmp/container-configs'
state: directory state: directory
- name: Create a configuration file for a fedora container - name: Create a configuration file for a fedora container
# ipc mode added as WA for podman 4.1.x
copy: copy:
content: | content: |
{ {
"image": "fedora:latest", "image": "fedora:latest",
"net": "host", "net": "host",
"ipc": "shareable",
"command": "sleep 3600", "command": "sleep 3600",
"restart": "always", "restart": "always",
"check_interval": "500s", "check_interval": "500s",
@ -45,6 +47,7 @@
{ {
"image": "fedora:latest", "image": "fedora:latest",
"net": "host", "net": "host",
"ipc": "shareable",
"command": "sleep 5" "command": "sleep 5"
} }
dest: '/tmp/container-configs/fedora_bis.json' dest: '/tmp/container-configs/fedora_bis.json'
@ -54,6 +57,7 @@
{ {
"image": "fedora:latest", "image": "fedora:latest",
"net": "host", "net": "host",
"ipc": "shareable",
"command": "sleep 5" "command": "sleep 5"
} }
dest: '/tmp/container-configs/fedora_three.json' dest: '/tmp/container-configs/fedora_three.json'

View File

@ -373,9 +373,6 @@
- ^tripleo_ansible/ansible_plugins/modules/container_startup_config.py$ - ^tripleo_ansible/ansible_plugins/modules/container_startup_config.py$
name: tripleo-ansible-centos-stream-molecule-tripleo_container_manage name: tripleo-ansible-centos-stream-molecule-tripleo_container_manage
parent: tripleo-ansible-centos-stream-base parent: tripleo-ansible-centos-stream-base
# Note(ChandanKumar): Marking this job to non-voting
# due to https://bugs.launchpad.net/tripleo/+bug/1979810
voting: false
vars: vars:
tripleo_role_name: tripleo_container_manage tripleo_role_name: tripleo_container_manage
- job: - job: