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

Bug 2074769

Summary: validation didn't generate inventory during pre-introspection
Product: Red Hat OpenStack Reporter: Ravi Singh <ravsingh>
Component: openstack-tripleo-validationsAssignee: mathieu bultel <mbultel>
Status: CLOSED DUPLICATE QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: jjoyce, jpodivin, jschluet, slinaber, tvignaud
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-13 09:34:03 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 Ravi Singh 2022-04-13 04:31:54 UTC
Description of problem:


Tried to run pre-introspection before overcloud has been deployed & it looks like command didn't generate inventory & validation failed.

+++
[stack@undercloud ~]$ openstack tripleo validator run --group pre-introspection
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+
| UUID                                 | Validations                     | Status | Host_Group | Status_by_Host  | Unreachable_Hosts | Duration    |
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+
| 382ddc26-f249-462d-b441-8c5752fd635d | check-cpu                       | PASSED | localhost  | localhost       |                   | 0:00:00.888 |
| ce845a07-8dfc-4078-a07e-cb2eb1106022 | check-disk-space                | PASSED | localhost  | localhost       |                   | 0:00:03.092 |
| f49c23e8-dc52-42d7-8dc4-f0d621da5d91 | check-ram                       | PASSED | localhost  | localhost       |                   | 0:00:00.903 |
| 438bbfe9-dfc8-40f1-a49f-5d7c5721eedd | check-selinux-mode              | PASSED | localhost  | localhost       |                   | 0:00:01.215 |
| be73ac1d-7808-4c74-b9f6-9876ad9645e5 | check-network-gateway           | FAILED | undercloud | No host matched |                   |             |
| 8c7a61f5-3954-4577-be52-19bc733b0757 | undercloud-disk-space           | FAILED | undercloud | No host matched |                   |             |
| 02f92b9f-7858-4ba1-a605-ad4803d9cef4 | undercloud-neutron-sanity-check | FAILED | undercloud | No host matched |                   |             |
| b3244b3d-274f-4db5-9d30-c6d42189b4a8 | ctlplane-ip-range               | FAILED | undercloud | No host matched |                   |             |
| 3b78a53e-7696-49aa-93a0-e68b9c03dcb9 | undercloud-tokenflush           | FAILED | undercloud | No host matched |                   |             |
| e5f3e9ef-7fdd-4b92-9dfa-3679cb8b55e2 | dhcp-introspection              | FAILED | undercloud | No host matched |                   |             |
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+
+++

But if we generate inventory manually,passed in command then it works fine.

+++
tripleo-ansible-inventory --static-yaml-inventory inventory.yaml
[stack@undercloud ~]$ openstack tripleo validator run --group pre-introspection --inventory inventory.yaml 
+--------------------------------------+---------------------------------+--------+------------+----------------+-------------------+-------------+
| UUID                                 | Validations                     | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration    |
+--------------------------------------+---------------------------------+--------+------------+----------------+-------------------+-------------+
| 5ea9fd86-74ea-45a3-b0af-bb28922c5bcb | check-cpu                       | PASSED | localhost  | localhost      |                   | 0:00:00.894 |
| 9d40df9d-8c1f-4197-bd34-0b099c2fe9f4 | check-disk-space                | PASSED | localhost  | localhost      |                   | 0:00:02.888 |
| da452c63-934a-4891-9fb4-b2b0159c52d6 | check-ram                       | PASSED | localhost  | localhost      |                   | 0:00:00.838 |
| 729fd9b0-8fc5-4a8b-9450-5dd4b8ba1f8a | check-selinux-mode              | PASSED | localhost  | localhost      |                   | 0:00:01.108 |
| 110a882d-fee0-4d9d-9bc5-82330dc4a1bc | check-network-gateway           | PASSED | undercloud | undercloud     |                   | 0:00:01.878 |
| 6a04a9f0-bc62-4314-801c-5acc6ca08464 | undercloud-disk-space           | PASSED | undercloud | undercloud     |                   | 0:00:02.777 |
| 29de6aa1-99d6-4f8f-82b5-402f256a12eb | undercloud-neutron-sanity-check | PASSED | undercloud | undercloud     |                   | 0:00:06.228 |
| 1db1836f-38c1-4abf-af95-565905fbaaa6 | ctlplane-ip-range               | PASSED | undercloud | undercloud     |                   | 0:00:01.614 |
| 4889e8d3-653a-4d20-8b5c-626f5b4440df | undercloud-tokenflush           | PASSED | undercloud | undercloud     |                   | 0:00:00.879 |
| 7438667c-0e0f-4046-8eb6-5565d4ae706d | dhcp-introspection              | PASSED | undercloud | undercloud     |                   | 0:00:06.036 |
+--------------------------------------+--------------------
+++

Problem is not seen during deployed env. So it seems tripleo-ansible-inventory looks for a plan name to generate inventory on fly.

We either need to update doc to how to use this command or fix in code itslef

[1]https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html-single/director_installation_and_usage/index#proc_running-the-pre-introspection-validation_basic

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

How reproducible:
100%

Steps to Reproduce:
1. deploy undercloud
2. run validation related to pre-introspection
3. validation fails since it can't find hosts.

Actual results:
Validation fails

Expected results:
should pass

Additional info:

Comment 2 Jiri Podivin 2022-04-13 09:34:03 UTC

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