Filter excluded nodes from ansible delegates

This would allow external_(deploy/update/upgrade)_tasks
to honor excluded nodes during deploy/update/upgrade.

Backports Notes: Some files had conflicts:
 - deployment/aodh/aodh-api-container-puppet.yaml
 - deployment/database/redis-container-puppet.yaml
 - deployment/designate/designate-bind-container.yaml
 - deployment/glance/glance-api-container-puppet.yaml
 - deployment/ipa/ipaservices-baremetal-ansible.yaml
 - deployment/pacemaker/pacemaker-baremetal-puppet.yaml

the resolution of those conflicts did not change the patch logic.

This review also squashes the fix included in
https://review.opendev.org/c/openstack/tripleo-heat-templates/+/865400

Closes-Bug: #1996492

Depends-On: https://review.opendev.org/c/openstack/tripleo-common/+/859403
Change-Id: Ia9d3c8d0a3098191b2d8b12fc24eee4517c6c521
(cherry picked from commit e428db15cb)
This commit is contained in:
Rabi Mishra
2022-09-08 12:21:18 +05:30
committed by Sofer Athlan-Guyot
parent ce6ccaf547
commit 32f30aae8a
47 changed files with 50 additions and 50 deletions

View File

@@ -446,7 +446,7 @@ outputs:
when: step|int == 1
tags: ovn
become: true
loop: "{{ groups['ovn_controller'] }}"
loop: "{{ groups['ovn_controller'] | difference(groups['excluded_overcloud']) }}"
delegate_to: "{{ item }}"
async: {get_param: OVNControllerUpdateTimeout}
poll: 0