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

Bug 2005904

Summary: haproxy validation is run on all nodes
Product: Red Hat OpenStack Reporter: Uemit Seren <uemit.seren>
Component: openstack-tripleo-validationsAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED DUPLICATE QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: cjeanner, jjoyce, jschluet, slinaber, tvignaud
Target Milestone: z2Keywords: 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: 2021-09-20 13:48:18 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 Uemit Seren 2021-09-20 12:59:32 UTC
Description of problem:

haproxy validation runs on all nodes instead of just on nodes that have haproxy configured (controller, undercloud). 
The fix is already backported to train upstream https://review.opendev.org/c/openstack/tripleo-validations/+/798820 but needs to be packaged downstream


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

[[dev]root@uc validations]# rpm -qa | grep validations

openstack-tripleo-validations-11.6.1-2.20210612074808.8644a02.el8ost.1.noarch
validations-common-1.1.2-2.20210611010116.el8ost.2.noarch

How reproducible:

Run haproxy validation after deploying a fresh overcloud on OSP 16.2


Steps to Reproduce:
1. openstack tripleo validator run --validation haproxy

Running Validations without Overcloud settings.
+--------------------------------------+-------------+--------+------------+----------------------------------------+-------------------+-------------+
| UUID                                 | Validations | Status | Host_Group | Status_by_Host                         | Unreachable_Hosts | Duration    |
+--------------------------------------+-------------+--------+------------+----------------------------------------+-------------------+-------------+
| e5ad4594-dc57-48e8-9fa4-220ba2994b15 | haproxy     | FAILED | all        | oc-c2-0, oc-ctl-0, oc-s1-0, undercloud |                   | 0:00:01.192 |
+--------------------------------------+-------------+--------+------------+----------------------------------------+-------------------+-------------+

Actual results:

validation is run on all nodes including compute nodes

Expected results:

validation should only be run on controller & undercloud

Additional info:

Comment 1 Uemit Seren 2021-09-20 13:38:29 UTC
The actual issue is that the haproxy playbook/validation in validations-common is replaced with the tripleo-haproxy playbook/validation in openstack-tripleo-validation which targets the "haproxy" host group.

Comment 2 Cédric Jeanneret 2021-09-20 13:48:18 UTC

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