Bug 1965237

Summary: container-status validaton fails (pre-upgrade group)
Product: Red Hat OpenStack Reporter: Michele Valsecchi <mvalsecc>
Component: openstack-tripleo-validationsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: drosenfe, gchamoul, jjoyce, jschluet, slinaber, tvignaud
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-31 09:29:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michele Valsecchi 2021-05-27 09:08:04 UTC
Description of problem:
container-status tries to use podman to verify container status on Overcloud node and fails, as those nodes are still using docker.

Version-Release number of selected component (if applicable):
16.1 (undercloud 16.1, overcloud node still 13.X as this happens _during_ FFU)

How reproducible:


Steps to Reproduce:
1. Complete undercloud upgrade
2. run openstack tripleo validator run --group pre-upgrade --python-interpreter /usr/libexec/platform-python
3. openstack tripleo validator show run <uuid-of-container-status-validator>

Actual results:

Ansible fails with the following log

(undercloud) [stack@openstackhostundercloud ~]$ openstack tripleo validator show run XXXX
{
    "hosts": {
        "overcloud-controller-X": {
            "_ansible_no_log": false,
            "action": "command",
            "changed": false,
            "cmd": "podman ps -a --filter status=exited --format '{{ .Names }} {{ .Status }}'", <======
            "failed": true, <===
            "invocation": {
                "module_args": {
                    "_raw_params": "podman  ps -a --filter 'status=exited' --format '{{ .Names }} {{ .Status }}' \n", <====
...
                }
            },
            "msg": "[Errno 2] No such file or directory", <===
            "rc": 2
        }
    },
    "name": "Get failed containers for podman",
    "status": "FAILED"
}

Expected results:

Ansible should succeed and use docker for said check

Additional info:

This happens for all nodes

Comment 1 Gaƫl Chamoulaud 2021-05-31 09:29:09 UTC

*** This bug has been marked as a duplicate of bug 1963872 ***