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

Bug 2118579

Summary: nova-svirt validation is failing for custom compute roles
Product: Red Hat OpenStack Reporter: Ravi Singh <ravsingh>
Component: openstack-tripleo-validationsAssignee: Ravi Singh <ravsingh>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: jjoyce, jpodivin, jschluet, slinaber, tkajinam, tvignaud
Target Milestone: z4Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-11.6.1-2.20220921004739.61366bc.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 19:24: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:

Description Ravi Singh 2022-08-16 07:58:13 UTC
Description of problem:

If there are no hosts lies under Compute role rather defined as custom role, nova-svirt validation will fail with no hosts matched/

+++
+--------------------------------------+---------------------------+--------+--------------------------+----------------
| UUID                                 | Validations               | Status | Host_Group               | Status_by_Host  
+--------------------------------------+---------------------------+--------+--------------------------+----------------
| 1e96b567-9852-4f89-9d3f-54e546bfa668 | nova-svirt                | FAILED | Compute                  | No host matched

As per playbook hosts: Compute is set.

https://opendev.org/openstack/tripleo-validations/src/branch/master/playbooks/nova-svirt.yaml#L2

+++

Setting hosts: nova_libvirt should resolve this issue.

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

How reproducible:
Everytime

Steps to Reproduce:
1. Define custom compute roles.
2. Run nova-svirt validation.
3. validation will fail with "no hosts matched".

Actual results:
validation failed.

Expected results:
should pass

Additional info:

Comment 11 errata-xmlrpc 2022-12-07 19:24: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 (Release of components for Red Hat OpenStack Platform 16.2.4), 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/RHBA-2022:8794