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:
parent
4c9233d07c
commit
b9694f360e
|
@ -128,7 +128,7 @@ the healthcheck is periodically running and healthy:
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
"Healthcheck": {
|
||||
"Health": {
|
||||
"Status": "healthy",
|
||||
"FailingStreak": 0,
|
||||
"Log": [
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
- name: Check if tripleo_fedora healthcheck is active and healthy
|
||||
assert:
|
||||
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'
|
||||
success_msg: 'fedora container healthcheck is healthy'
|
||||
- name: Verify that Fedora systemd healthcheck container was removed correctly
|
||||
|
@ -240,7 +240,7 @@
|
|||
- name: Check if tripleo_fedora healthcheck is active and healthy
|
||||
assert:
|
||||
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'
|
||||
success_msg: 'fedora container healthcheck is healthy'
|
||||
- name: Check for fedora_bis container
|
||||
|
@ -283,7 +283,7 @@
|
|||
- name: Check if tripleo_fedora healthcheck is active and healthy
|
||||
assert:
|
||||
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'
|
||||
success_msg: 'fedora container healthcheck is healthy'
|
||||
- name: Check for fedora_bis container
|
||||
|
|
|
@ -28,11 +28,13 @@
|
|||
path: '/tmp/container-configs'
|
||||
state: directory
|
||||
- name: Create a configuration file for a fedora container
|
||||
# ipc mode added as WA for podman 4.1.x
|
||||
copy:
|
||||
content: |
|
||||
{
|
||||
"image": "fedora:latest",
|
||||
"net": "host",
|
||||
"ipc": "shareable",
|
||||
"command": "sleep 3600",
|
||||
"restart": "always",
|
||||
"check_interval": "500s",
|
||||
|
@ -45,6 +47,7 @@
|
|||
{
|
||||
"image": "fedora:latest",
|
||||
"net": "host",
|
||||
"ipc": "shareable",
|
||||
"command": "sleep 5"
|
||||
}
|
||||
dest: '/tmp/container-configs/fedora_bis.json'
|
||||
|
@ -54,6 +57,7 @@
|
|||
{
|
||||
"image": "fedora:latest",
|
||||
"net": "host",
|
||||
"ipc": "shareable",
|
||||
"command": "sleep 5"
|
||||
}
|
||||
dest: '/tmp/container-configs/fedora_three.json'
|
||||
|
|
|
@ -373,9 +373,6 @@
|
|||
- ^tripleo_ansible/ansible_plugins/modules/container_startup_config.py$
|
||||
name: tripleo-ansible-centos-stream-molecule-tripleo_container_manage
|
||||
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:
|
||||
tripleo_role_name: tripleo_container_manage
|
||||
- job:
|
||||
|
|
Loading…
Reference in New Issue