neutron-tempest-plugin/roles/multi-node-setup/tasks/main.yaml
Slawek Kaplonski f31e3ee50c Migrate dvr multinode scenario to zuulv3 syntax
Job neutron-tempest-plugin-dvr-multinode-scenario was the
last job in neutron-tempest-plugin repo defined using
legacy zuulv2 templates.
This commit migrates it to zuulv3 syntax.

It also adds new ansible role "multi-node-setup" which
which creates patch ports between Neutron's external
bridge (br-ex) and infra bridge (br-infra). That is necessary
to provide connectivity to floating IPs, which may be
configured on subnode when dvr is used, from each node.

This patch introduces also new playbook
"dvr-multinode-scenario-pre-run" which is used to be run in
neutron-tempest-plugin-dvr-multinode-scenario job and which
uses "multi-node-setup" role to create those patch ports
on each host used in job.

Change-Id: Ic5bb7649ebb8bf229459f3d9911f64635cbf1e44
2018-10-04 16:21:54 +02:00

18 lines
745 B
YAML

- name: Ensure the infra bridge exists
become: yes
openvswitch_bridge:
bridge: "{{ infra_bridge_name }}"
- name: Ensure the Neutron external bridge exists
become: yes
openvswitch_bridge:
bridge: "{{ 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 }}