Bug 1966409 - [OSP16.2][Validation] nova-status not working in FFWD 13 to 16.1: [Errno 2] No such file or directory
Summary: [OSP16.2][Validation] nova-status not working in FFWD 13 to 16.1: [Errno 2] N...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 16.2 (Train on RHEL 8.4)
Assignee: Martin Schuppert
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On: 1963879
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-01 06:04 UTC by Martin Schuppert
Modified: 2021-09-15 07:15 UTC (History)
10 users (show)

Fixed In Version: openstack-tripleo-validations-11.5.1-2.20210601024819.105de76.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1963879
Environment:
Last Closed: 2021-09-15 07:15:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 792995 0 None MERGED [train-only] Set container_client for checks during ffu 2021-06-01 06:04:30 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:15:40 UTC

Description Martin Schuppert 2021-06-01 06:04:31 UTC
+++ This bug was initially created as a clone of Bug #1963879 +++

Description of problem:

The nova-status validation was initially created for deployed environments and as such, it relies on the container_cli parameter. However, during FFWD wokflow, the validation gets triggered as part of the pre-upgrade group. The moment in which it gets triggered, the environment is in a unusual state where the Undercloud has been upgrade to OSP16.1 (container engine is podman) but the Overcloud nodes are still on OSP13 (container engine is still docker).

As the validation relies on container_cli parameter, and the Undercloud has been upgraded, the container_cli parameter indicates to use podman. But the Overcloud nodes do not know anything about Podman yet, so the validation fails in all controller nodes with:

{
    "hosts": {
        "controller-2": {
            "_ansible_no_log": false,
            "action": "command",
            "changed": false,
            "cmd": "exec -u root nova_api nova-status upgrade check",
            "failed": true,
            "invocation": {
                "module_args": {
                    "_raw_params": " exec -u root nova_api nova-status upgrade check",
                    "_uses_shell": false,
                    "argv": null,
                    "chdir": null,
                    "creates": null,
                    "executable": null,
                    "removes": null,
                    "stdin": null,
                    "stdin_add_newline": true,
                    "strip_empty_ends": true,
                    "warn": true
                }
            },
            "msg": "[Errno 2] No such file or directory",
            "rc": 2
        }
    },
    "name": "Check nova upgrade status",
    "status": "FAILED"
}

One solution is doing something similar to what is being performed in the ceph validation (ceph-health):
https://github.com/openstack/tripleo-validations/blob/master/roles/ceph/tasks/ceph-health.yaml#L13-L26

    - name: Check for docker cli
      stat:
        path: "/var/run/docker.sock"
      register: check_docker_cli
      check_mode: false

    - name: Set container_client fact
      set_fact:
        container_client: |-
          {% set container_client = 'podman' %}
          {%   if check_docker_cli.stat.exists|bool %}
          {%     set container_client = 'docker' %}
          {%   endif %}
          {{ container_client }}

Instead of relying on container_cli.

If required, a reproducer can be deployed.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Run FFWD 13 to 16.1. Upgrade first the Undercloud
2. Once upgraded, run the pre-upgrade group to check the Overcloud's status
3. See the container-status validation fail.

Actual results:


Expected results:


Additional info:

Comment 7 errata-xmlrpc 2021-09-15 07:15:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:3483


Note You need to log in before you can comment on or make changes to this bug.