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

Bug 2072787

Summary: pre-introspection group fails with "No host matched"
Product: Red Hat OpenStack Reporter: David Hill <dhill>
Component: openstack-tripleo-validationsAssignee: OSP Team <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: dhill, dpeacock, jbuchta, jjoyce, jpodivin, jschluet, mbultel, slinaber, tvignaud
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-08 12:31:10 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: 2050765    
Bug Blocks:    

Description David Hill 2022-04-07 00:25:47 UTC
Description of problem:
pre-introspection group fails with "No host matched":

[stack@undercloud-0-rhosp16 cloud]$ openstack tripleo validator run  --group pre-introspection
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+
| UUID                                 | Validations                     | Status | Host_Group | Status_by_Host  | Unreachable_Hosts | Duration    |
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+
| 3d7cf395-2027-44a1-99f0-184cc0deb16d | check-cpu                       | FAILED | localhost  | localhost       |                   | 0:00:02.536 |
| 55950bad-b81a-4702-b9a5-abfa5a231503 | check-disk-space                | FAILED | localhost  | localhost       |                   | 0:00:06.631 |
| 7be98b02-6900-4508-a0ed-24961d2cdec2 | check-ram                       | FAILED | localhost  | localhost       |                   | 0:00:01.780 |
| 063b9169-c312-4962-8ab5-b8238d908931 | check-selinux-mode              | FAILED | localhost  | localhost       |                   | 0:00:02.318 |
| f446a51e-fbc2-4c5f-9389-7c7e076adcfe | undercloud-disk-space           | FAILED | undercloud | No host matched |                   |             |
| 652561a3-1e04-4c5c-bf29-93560023a69f | check-network-gateway           | FAILED | undercloud | No host matched |                   |             |
| c0951a14-5371-4004-9dba-a448c4af278f | undercloud-neutron-sanity-check | FAILED | undercloud | No host matched |                   |             |
| fb90f73d-5321-4ba9-bd1c-774c8c8a22b3 | undercloud-tokenflush           | FAILED | undercloud | No host matched |                   |             |
| fe33cd14-9fe5-4c9e-b969-056a7b3803ca | ctlplane-ip-range               | FAILED | undercloud | No host matched |                   |             |
| 6321047a-d472-4b4d-be53-95183c465e8f | dhcp-introspection              | FAILED | undercloud | No host matched |                   |             |
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+

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

How reproducible:
Always

Steps to Reproduce:
1. Install latest rhosp16.2 and run the pre-introspection group
2.
3.

Actual results:
Fails

Expected results:
Succeeds

Additional info:

Comment 1 Jiri Podivin 2022-04-07 10:25:20 UTC
Hi.
I believe that the issue in question is known to us.
The 16.2 RHOSP no longer generates usable inventory for validations, so the user has to supply it manually.[0]
More general fix is in development that should hopefully eliminate the issue entirely.


[0]https://bugzilla.redhat.com/show_bug.cgi?id=2050765

Comment 2 Jiri Podivin 2022-04-07 12:53:10 UTC
We have a workaround, proper fix is in progress. 

Customer needs to explicitly specify an ansible inventory with the '--inventory'.

For example: 
> openstack tripleo validator run --group pre-introspection --inventory ./path/to/inventory.yaml

If possible we should get it published as an article.

Comment 5 Jiri Podivin 2022-04-08 12:31:10 UTC

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