[CI] Use ovs-vsctl to ensure bridges

The upstream openvswitch collection has been deprecated and was not
included in newer Ansible (like Ansible 11). Since jobs switched
to Ansible jobs relying on these tasks are failing.

This patch switches to use ovs bridge command same
as add-port in next tasks.

Also add the role to irrelevant-files as single node
jobs need not run on multi node role changes.

Change-Id: I81bf98f20a79ccbc4f93725095b24e8480a7aebc
Signed-off-by: Yatin Karel <ykarel@redhat.com>
This commit is contained in:
2025-08-20 10:38:09 +05:30
parent 3593e1c143
commit 1f1b596026
2 changed files with 17 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
- name: Ensure the infra bridge exists
become: yes
openvswitch_bridge:
bridge: "{{ infra_bridge_name }}"
command: >-
ovs-vsctl --may-exist add-br {{ infra_bridge_name }}
- name: Ensure the Neutron external bridge exists
become: yes
openvswitch_bridge:
bridge: "{{ neutron_external_bridge_name }}"
command: >-
ovs-vsctl --may-exist add-br {{ neutron_external_bridge_name }}
- name: Create patch port between bridges
become: yes

View File

@@ -211,6 +211,7 @@
- ^neutron_tempest_plugin/scenario/.*$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*functional.*$
- ^vagrant/.*$
# Ignore everything except for zuul.d/project.yaml
@@ -307,6 +308,7 @@
- ^neutron_tempest_plugin/services/bgp/.*$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -415,6 +417,7 @@
- ^neutron_tempest_plugin/services/bgp/.*$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -575,6 +578,7 @@
- ^neutron_tempest_plugin/services/bgp/.*$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -717,6 +721,7 @@
- ^neutron_tempest_plugin/services/bgp/.*$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -1026,6 +1031,7 @@
- ^neutron_tempest_plugin/services/bgp/.*$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -1128,6 +1134,7 @@
- ^plugin.spec$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -1200,6 +1207,7 @@
- ^plugin.spec$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -1258,6 +1266,7 @@
- ^plugin.spec$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*functional.*$
- ^playbooks/.*linuxbridge.*$
@@ -1313,6 +1322,7 @@
- ^plugin.spec$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -1417,6 +1427,7 @@
- ^plugin.spec$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -1481,6 +1492,7 @@
- ^plugin.spec$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$
@@ -1596,6 +1608,7 @@
- ^plugin.spec$
- ^rally-jobs/.*$
- ^roles/.*functional.*$
- ^roles/.*multi-node-setup.*$
- ^playbooks/.*dvr-multinode.*$
- ^playbooks/.*dynamic-routing.*$
- ^playbooks/.*functional.*$