Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1960185

Summary: Unrelated validations showed in "openstack tripleo validator show history" during FFU
Product: Red Hat OpenStack Reporter: Jose Luis Franco <jfrancoa>
Component: validations-commonAssignee: Jiri Podivin <jpodivin>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: low Docs Contact:
Priority: low    
Version: 16.2 (Train)CC: gchamoul, gregraka, hbrock, jslagle, mburns, ramishra
Target Milestone: AlphaKeywords: Reopened, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: validations-common-1.1.2-2.20210519014822.45a5250.el8ost Doc Type: Bug Fix
Doc Text:
Before this update, Ansible redirected output to all registered non-stdout callback plug-ins by default, which resulted in VF callbacks processing information from other processes that used `ansible runtime`. This issue has been resolved and the output of other processes is no longer stored in the validations logging directory.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:15:04 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:
Bug Depends On: 1944586    
Bug Blocks:    

Description Jose Luis Franco 2021-05-13 09:26:36 UTC
Description of problem:

Executing a set of validations after the Undercloud Upgrade in FFU and then showing the history of those validations ends up displaying non-existing validations:

[stack@undercloud-0 ~]$ openstack tripleo validator  show history
+--------------------------------------+-------------------------------------+--------+-----------------------------+-------------+
| UUID                                 | Validations                         | Status | Execution at                | Duration    |
+--------------------------------------+-------------------------------------+--------+-----------------------------+-------------+
| 52540095-c2b8-8ed1-c05f-000000000007 | post_upgrade_steps_playbook         | PASSED | 2021-05-12T17:13:33.176818Z | 0:02:32.267 |
| 52540095-c2b8-8ed1-c05f-00000000000a | post_upgrade_steps_playbook         | PASSED | 2021-05-12T17:13:33.238237Z | 0:02:32.267 |
| 52540095-c2b8-8ed1-c05f-00000000000d | post_upgrade_steps_playbook         | PASSED | 2021-05-12T17:13:33.893180Z | 0:02:32.267 |
| 52540095-c2b8-8ed1-c05f-000000000010 | post_upgrade_steps_playbook         | PASSED | 2021-05-12T17:13:33.968990Z | 0:02:32.267 |
| 52540095-c2b8-8ed1-c05f-000000000013 | post_upgrade_steps_playbook         | PASSED | 2021-05-12T17:13:34.039599Z | 0:02:32.267 |
| 52540095-c2b8-8ed1-c05f-000000000016 | post_upgrade_steps_playbook         | PASSED | 2021-05-12T17:13:34.730989Z | 0:02:32.267 |
| 52540095-c2b8-8ed1-c05f-000000000019 | post_upgrade_steps_playbook         | PASSED | 2021-05-12T17:13:34.800081Z | 0:02:32.267 |
| 52540095-c2b8-a92b-5e9d-000000000007 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:06.725802Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-00000000000a | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:06.784703Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-00000000000d | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:06.789450Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-000000000010 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:06.794313Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-000000000013 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:06.869596Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-000000000016 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:07.606392Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-000000000019 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:07.683621Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-000000000118 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:08.210171Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-000000000217 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:14.030336Z | 0:00:07.574 |
| 52540095-c2b8-a92b-5e9d-000000000316 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:14.540108Z | None        |
| 52540095-c2b8-a92b-5e9d-00000000033e | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:14.551379Z | None        |
| 52540095-c2b8-a92b-5e9d-000000000366 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:14.558700Z | None        |
| 52540095-c2b8-a92b-5e9d-00000000038e | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:14.566095Z | None        |
| 52540095-c2b8-a92b-5e9d-0000000003b6 | external_upgrade_steps_playbook     | PASSED | 2021-05-12T17:16:14.608419Z | None        |
| 5182dc46-9ae9-48ff-8fcd-425bc7e8090d | check-ftype                         | PASSED | 2021-05-13T09:14:51.452862Z | 0:00:00.847 |
| eb0199bf-4f7a-4ab4-907f-4182c6bff300 | openstack-endpoints                 | PASSED | 2021-05-13T09:14:53.118917Z | 0:00:02.006 |
| 1c07c4ed-bf6d-4123-9ddc-1ab19862c1cf | check-latest-packages-version       | FAILED | 2021-05-13T09:14:55.951499Z | 0:00:00.838 |
| 520f746a-6eef-408e-8ee3-bbc6f2e7de04 | repos                               | PASSED | 2021-05-13T09:14:57.596463Z | 0:00:06.430 |
| 5a3f45a5-3ff3-4d71-b2e7-096198a1d173 | service-status                      | FAILED | 2021-05-13T09:15:04.882250Z | 0:00:11.867 |
| 0a9eb97c-c9be-4b3e-9114-d4cc08a69417 | stack-health                        | PASSED | 2021-05-13T09:15:17.801087Z | 0:00:02.786 |
| e60d7026-ca1f-40dc-a12f-13af4f381ddc | validate-selinux                    | PASSED | 2021-05-13T09:15:21.448023Z | 0:00:03.707 |
| fb2bcc65-fafa-402f-ab79-64a0860ff229 | overcloud-service-status            | FAILED | 2021-05-13T09:15:26.003789Z | 0:00:31.956 |
| 4c014e4b-7d8c-4fe9-ac5b-8b4310ddeedc | system_encoding                     | PASSED | 2021-05-13T09:15:58.822713Z | 0:00:00.518 |
| 6b852bf7-2799-4058-aa82-6be7352e8808 | undercloud-heat-purge-deleted       | PASSED | 2021-05-13T09:16:00.166178Z | 0:00:01.589 |
| 2f245e77-9d75-43a4-88fe-9847758a2bf7 | collect-flavors-and-verify-profiles | FAILED | 2021-05-13T09:16:02.658383Z | 0:00:00.624 |
| 8b73ac39-c503-4905-945d-e8a1f19be87a | container-status                    | FAILED | 2021-05-13T09:16:04.156101Z | 0:00:02.213 |
| a1721af3-7f87-4766-bc60-433a6db3d106 | containerized-undercloud-docker     | PASSED | 2021-05-13T09:16:07.279311Z | 0:00:00.888 |
| 8beeb93b-cc4f-4c95-bdd0-81bdab2b5231 | undercloud-service-status           | PASSED | 2021-05-13T09:16:09.001403Z | 0:00:01.642 |
| d0a7ea3c-7eea-4160-8bff-70b12d57641a | image-serve                         | PASSED | 2021-05-13T09:16:11.549134Z | 0:00:01.700 |
| d84034db-e2ff-4e86-b361-e3070c410c21 | undercloud-disk-space-pre-upgrade   | PASSED | 2021-05-13T09:16:14.126115Z | 0:00:02.065 |
| 419b0362-9d82-490b-947f-0ca712e6c8b2 | ironic-boot-configuration           | PASSED | 2021-05-13T09:16:17.023201Z | 0:00:01.562 |
| 41bf08e7-1453-4a70-933b-4aec7c0d0fed | node-health                         | PASSED | 2021-05-13T09:16:19.445941Z | 0:00:03.003 |
| d3155977-46f9-4bf5-8b82-c85d04d371e5 | nova-status                         | FAILED | 2021-05-13T09:16:23.302094Z | 0:00:03.687 |
| 890653f6-b526-47ed-9578-2f0b4d446519 | tripleo-latest-packages-version     | PASSED | 2021-05-13T09:16:27.844283Z | 0:00:23.543 |
+--------------------------------------+-------------------------------------+--------+-----------------------------+-------------+
[stack@undercloud-0 ~]$ openstack tripleo validator  show 52540095-c2b8-8ed1-c05f-000000000007
Validation 52540095-c2b8-8ed1-c05f-000000000007 not found in the path: /usr/share/ansible/validation-playbooks

As can be seeing in the log, a validation post_upgrade_steps_playbook and external_upgrade_steps_playbook appear in the history table. These correspond to ansible playbooks being executed in the upgrade process, not to any validation. If we try to show more information about them, the "not found in path" error will be displayed.

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


How reproducible:


Steps to Reproduce:
1. Perform the FFU upgrade for the Undercloud from 13 to 16.2
2. Execute a subset of pre-upgrade validations:

openstack tripleo validator run --validation check-ftype,openstack-endpoints,check-latest-packages-version,repos,service-status,stack-health,validate-selinux,overcloud-service-status,system_encoding,undercloud-heat-purge-deleted,collect-flavors-and-verify-profiles,container-status,containerized-undercloud-docker,undercloud-service-status,image-serve,undercloud-disk-space-pre-upgrade,ironic-boot-configuration,node-health,nova-status,tripleo-latest-packages-version --stack qe-Cloud-0   --python-interpreter /usr/libexec/platform-python 

3. Run "openstack tripleo validator  show history"

Actual results:

The history shows non-valid validations.

Expected results:

This history only displayes executed validations.


Additional info:

Comment 1 Gaƫl Chamoulaud 2021-05-14 04:20:46 UTC

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

Comment 10 errata-xmlrpc 2021-09-15 07:15:04 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