From a190ae4f61cce0da08028f96c959fd3c26e2d700 Mon Sep 17 00:00:00 2001 From: Andrew Bonney Date: Wed, 13 Sep 2023 11:27:21 +0100 Subject: [PATCH] Fix conditional for non-OVN deployments In an LXB environment, the neutron_ovn_controller group still contains all of the compute nodes, which causes this task to fail. Change-Id: I7a63a79e8b9012c9f32b9316d9590ccd9e641c01 --- tasks/neutron_post_install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/neutron_post_install.yml b/tasks/neutron_post_install.yml index 1f972a18..b4e239cb 100644 --- a/tasks/neutron_post_install.yml +++ b/tasks/neutron_post_install.yml @@ -221,6 +221,7 @@ enabled: false when: - ansible_facts['pkg_mgr'] == 'apt' - - ansible_facts['hostname'] in groups['neutron_metadata_agent'] or ansible_facts['hostname'] in groups['neutron_ovn_controller'] + - ansible_facts['hostname'] in groups['neutron_metadata_agent'] or ( + neutron_plugin_type == 'ml2.ovn' and ansible_facts['hostname'] in groups['neutron_ovn_controller']) - groups['haproxy_all'] is defined - ansible_facts['hostname'] not in groups['haproxy_all']