From fbf000689559c434157d49b147da60725ba9562a Mon Sep 17 00:00:00 2001
From: Pierre Riteau <pierre@stackhpc.com>
Date: Fri, 16 Dec 2022 11:26:28 +0100
Subject: [PATCH] Run handlers before configuring veth interfaces

Handlers from MichaelRigart.interfaces are not run until the end of the
play, which results in the veth role trying to create veth interfaces
against a non-existing bridge.

Change-Id: Ie1c9e1ada50774cbcaec528bd64d8df066c21d2e
---
 ansible/roles/network-redhat/tasks/main.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ansible/roles/network-redhat/tasks/main.yml b/ansible/roles/network-redhat/tasks/main.yml
index fe5af1fc..d15cc4b4 100644
--- a/ansible/roles/network-redhat/tasks/main.yml
+++ b/ansible/roles/network-redhat/tasks/main.yml
@@ -27,6 +27,10 @@
     interfaces_setup_filter: "{{ kayobe_ansible_setup_filter }}"
     interfaces_setup_gather_subset: "{{ kayobe_ansible_setup_gather_subset }}"
 
+# NOTE(priteau): We need to run handlers from MichaelRigart.interfaces before
+# we start configuring any veth interfaces.
+- meta: flush_handlers
+
 # Configure virtual ethernet patch links to connect the workload provision
 # and external network bridges to the Neutron OVS bridge.
 - name: Ensure OVS patch links exist
-- 
GitLab