[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. Also fixed pre-commit error by switching to fix-byte-order-marker. Change-Id: Ie3a40efed5e132aee53dce3db6522c551897b5f7 Signed-off-by: Yatin Karel <ykarel@redhat.com>
This commit is contained in:
@@ -5,7 +5,7 @@ repos:
|
|||||||
rev: v5.0.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
@@ -5,17 +5,15 @@
|
|||||||
block:
|
block:
|
||||||
- name: Ensure the infra bridge exists
|
- name: Ensure the infra bridge exists
|
||||||
become: true
|
become: true
|
||||||
openvswitch_bridge:
|
command: >-
|
||||||
bridge: "{{ infra_bridge_name }}"
|
ovs-vsctl --may-exist add-br {{ infra_bridge_name }}
|
||||||
state: present
|
-- set-fail-mode {{ infra_bridge_name }} standalone
|
||||||
fail_mode: standalone
|
|
||||||
|
|
||||||
- name: Ensure the Neutron external bridge exists
|
- name: Ensure the Neutron external bridge exists
|
||||||
become: true
|
become: true
|
||||||
openvswitch_bridge:
|
command: >-
|
||||||
bridge: "{{ neutron_external_bridge_name }}"
|
ovs-vsctl --may-exist add-br {{ neutron_external_bridge_name }}
|
||||||
state: present
|
-- set-fail-mode {{ neutron_external_bridge_name }} standalone
|
||||||
fail_mode: standalone
|
|
||||||
|
|
||||||
- name: Create patch port between bridges
|
- name: Create patch port between bridges
|
||||||
become: true
|
become: true
|
||||||
|
Reference in New Issue
Block a user