Slawek Kaplonski d833b3d2ee Fix connectivity between multinode devstack jobs
To have connectivity through public network to the vms which are on
various nodes in the ci job, we need to configure special bridge called
"br-infra" and connect this bridge with br-ex with patch ports.
This can be done using "multi-node-bridge" role from zuul roles and
"multi-node-setup" added to this repository.

Change-Id: I80d7d2bed8291ba21ddc68b48fef5d0aac996b39
2020-12-18 14:49:15 +01:00

33 lines
1.0 KiB
YAML

---
- name: Configure Neutron bridge for multi node setup
when: "( ansible_play_hosts | length ) > 1"
block:
- name: Ensure the infra bridge exists
become: true
openvswitch_bridge:
bridge: "{{ infra_bridge_name }}"
state: present
fail_mode: standalone
- name: Ensure the Neutron external bridge exists
become: true
openvswitch_bridge:
bridge: "{{ neutron_external_bridge_name }}"
state: present
fail_mode: standalone
- name: Create patch port between bridges
become: true
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 }}