Add an ip address to eth12 in OSA test containers

The tempest tests need to ssh to booted virtual machines. The neutron
public network is 10.1.3.0/24, which is the flat network on br-vlan.
From the container perspective this was previously reached via the
default gateway on eth0 as there was no specific route to the
10.1.3.0/24 network.

On centos traffic is no longer being forwarded to the br-vlan flat network
via the container eth0 and host networking, but this still works for
other distributions.

This patch adds an IP address to the present, but previously un-addressed
interface eth12 in each container. This gives a direct route to the neutron
public network from the container and does not require the host network
to forward the traffic. The test setup is now more decoupled from the
host networking which should increase reliability.

Change-Id: Id8fbe05e83bc6d86f57202301e712fc4e8a17003
This commit is contained in:
Jonathan Rosser 2019-01-29 13:19:28 +00:00
parent f2f3392031
commit bc1fcbc9eb
4 changed files with 5 additions and 1 deletions

View File

@ -27,9 +27,10 @@ container_networks:
netmask: "255.255.255.0"
type: "veth"
vlan_address:
address: "{{ vlan_address }}"
bridge: "br-vlan"
interface: "eth12"
netmask: null
netmask: "255.255.255.0"
type: "veth"
physical_host: localhost
properties:

View File

@ -18,3 +18,4 @@ ansible_become: True
ansible_user: root
container_name: infra1
tunnel_address: 10.1.2.101
vlan_address: 10.1.3.101

View File

@ -23,3 +23,4 @@ ansible_user: root
container_name: openstack1
tunnel_address: 10.1.2.102
neutron_local_ip: 10.1.2.102
vlan_address: 10.1.3.102

View File

@ -18,3 +18,4 @@ ansible_become: True
ansible_user: root
container_name: tempest1
tunnel_address: 10.1.2.103
vlan_address: 10.1.3.103