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. Depends-On: https://review.opendev.org/c/x/devstack-plugin-tobiko/+/958046 Change-Id: I87372ad19f3b9c054e2a047ba9925a3ba0d6e503 Signed-off-by: Yatin Karel <ykarel@redhat.com>
23 lines
914 B
YAML
23 lines
914 B
YAML
|
|
- name: Configure Neutron bridge for multi node setup
|
|
when: "( ansible_play_hosts | length ) > 1"
|
|
block:
|
|
|
|
- name: Ensure the infra bridge exists
|
|
become: yes
|
|
command: >-
|
|
ovs-vsctl --may-exist add-br {{ infra_bridge_name }}
|
|
|
|
- name: Ensure the Neutron external bridge exists
|
|
become: yes
|
|
command: >-
|
|
ovs-vsctl --may-exist add-br {{ neutron_external_bridge_name }}
|
|
|
|
- name: Create patch port between bridges
|
|
become: yes
|
|
command: >-
|
|
ovs-vsctl --may-exist add-port {{ infra_bridge_name }} patch-{{ neutron_external_bridge_name }}
|
|
-- set interface patch-{{ neutron_external_bridge_name }} type=patch options:peer=patch-{{ infra_bridge_name }}
|
|
-- --may-exist add-port {{ neutron_external_bridge_name }} patch-{{ infra_bridge_name }}
|
|
-- set interface patch-{{ infra_bridge_name }} type=patch options:peer=patch-{{ neutron_external_bridge_name }}
|