Bug 1965242 - nova-status validaton fails during FFU (pre-upgrade group)
Summary: nova-status validaton fails during FFU (pre-upgrade group)
Keywords:
Status: CLOSED DUPLICATE of bug 1963879
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: ---
: ---
Assignee: RHOS Maint
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-27 09:15 UTC by Michele Valsecchi
Modified: 2022-08-17 15:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-31 09:30:58 UTC
Target Upstream Version: Train
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-4208 0 None None None 2022-08-17 15:16:24 UTC

Description Michele Valsecchi 2021-05-27 09:15:39 UTC
Description of problem:
nova-status command is malformed and Ansible fails to execute the correct command (docker).

As the command appears to have an empty space followed by the rest of the docker command.
I have not digged into the playbooks in details, I'd lean saying there might be some substitution error in the Ansible book (The same group of tasks does indeed check for the existence/lack of podman).

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 xxx
{
    "hosts": {
        "overcloud-controller-X": {
            "_ansible_no_log": false,
            "action": "command",
            "changed": false,
            "cmd": "exec -u root nova_api nova-status upgrade check", <=== note how no docker nor podman are present before "exec"
            "failed": true,
            "invocation": {
                "module_args": {
                    "_raw_params": " exec -u root nova_api nova-status upgrade check", <=== note how there is an empty space before "exec"
                    "_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"
}

Expected results:

Ansible should succeed and use docker for said check

Additional info:

Running manually the task completes successfully
~~~
(overcloud) [root@overcloud-controller-X ~]# sudo docker exec -it nova_api nova-status upgrade check
Option "os_interface" from group "placement" is deprecated. Use option "valid-interfaces" from group "placement".
Option "os_region_name" from group "placement" is deprecated. Use option "region-name" from group "placement".
+--------------------------------+
| Upgrade Check Results          |
+--------------------------------+
| Check: Cells v2                |
| Result: Success                |
| Details: None                  |
+--------------------------------+
| Check: Placement API           |
| Result: Success                |
| Details: None                  |
+--------------------------------+
| Check: Resource Providers      |
| Result: Success                |
| Details: None                  |
+--------------------------------+
| Check: Ironic Flavor Migration |
| Result: Success                |
| Details: None                  |
+--------------------------------+
| Check: API Service Version     |
| Result: Success                |
| Details: None                  |
+--------------------------------+
~~~

Comment 1 Gaël Chamoulaud 2021-05-31 09:30:58 UTC

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


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