zuul-jobs/roles/multi-node-bridge
David Moreau-Simard e375ddc738
Append /sbin and /usr/sbin to $PATH for 'ip' commands
While the 'iproute' package is installed on our CentOS images, it
was found that '/sbin/ip' was not in PATH and thus resulting in a
command not found error.
This is because 'become: yes' may not include '/sbin' and '/usr/sbin'
paths [1].

This can also occur on other distributions so let's include this all
the time.

[1]: http://git.openstack.org/cgit/openstack/diskimage-builder/tree/diskimage_builder/lib/common-defaults?id=22e03f98209be206a1e9e60f0b9cd9381317096e#n46

Change-Id: Ia7480dab0f357b5710d1962a40499381837942b3
2017-09-26 15:32:07 -04:00
..
defaults Multi-node: Set up connectivity with default OVS bridge 2017-09-26 15:32:02 -04:00
tasks Append /sbin and /usr/sbin to $PATH for 'ip' commands 2017-09-26 15:32:07 -04:00
vars Multi-node: Set up connectivity with default OVS bridge 2017-09-26 15:32:02 -04:00
README.rst Multi-node: Set up connectivity with default OVS bridge 2017-09-26 15:32:02 -04:00

Configures a VXLAN virtual network overlay through an openvswitch network bridge between a 'switch' node and 'peer' nodes.

This allows members of the bridge to communicate with each other through the virtual network.

By default, this role will:

  • Install and start openvswitch
  • Set up a br-infra bridge on all nodes
  • Set up the connectivity between the switch and the peer with a virtual port
  • Set up an ip address on the bridge interface:
172.24.4.1/23 # switch node
172.41.4.2/23 # first peer
172.41.4.3/23 # second peer
...

Role requirements

This role requires and expects two groups to be set up in the Ansible host inventory in order to work:

  • switch (the node acting as the switch)
  • peers (nodes connected to the virtual switch ports)

Role variables