Add translations test-site deployment option

We want to set-up a test-site for translations as a separate scenario of
an AIO. This will assist the translations team to test translations
throughout the cycle.

In order for Trove to build successfully we need some Network setup
which is added in this patch.

Change-Id: I0a8bef400e5c99d9258022fac7e740632ed4b796
This commit is contained in:
Andy McCrae 2017-05-23 13:50:44 +01:00 committed by Andy McCrae
parent b0ff0fda14
commit 87dcb17d15
5 changed files with 140 additions and 10 deletions

View File

@ -1,3 +1,87 @@
cidr_networks:
dbaas: 172.29.232.0/22
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22
used_ips:
- "172.29.232.1,172.29.232.50"
- "172.29.232.100"
- "172.29.233.100,172.29.233.210"
- "172.29.236.1,172.29.236.50"
- "172.29.236.100"
- "172.29.240.1,172.29.240.50"
- "172.29.240.100"
- "172.29.244.1,172.29.244.50"
- "172.29.244.100"
- "172.29.248.1,172.29.248.50"
- "172.29.248.100"
global_overrides:
provider_networks:
- network:
container_bridge: "br-mgmt"
container_type: "veth"
container_interface: "eth1"
ip_from_q: "container"
type: "raw"
group_binds:
- all_containers
- hosts
is_container_address: true
is_ssh_address: true
- network:
container_bridge: "br-vxlan"
container_type: "veth"
container_interface: "eth10"
ip_from_q: "tunnel"
type: "vxlan"
range: "1:1000"
net_name: "vxlan"
group_binds:
- neutron_linuxbridge_agent
- network:
container_bridge: "br-vlan"
container_type: "veth"
container_interface: "eth12"
host_bind_override: "eth12"
type: "flat"
net_name: "flat"
group_binds:
- neutron_linuxbridge_agent
- network:
container_bridge: "br-dbaas"
container_type: "veth"
container_interface: "eth13"
host_bind_override: "eth13"
ip_from_q: "dbaas"
type: "flat"
net_name: "flat-db"
group_binds:
- neutron_linuxbridge_agent
- rabbitmq
- network:
container_bridge: "br-vlan"
container_type: "veth"
container_interface: "eth11"
type: "vlan"
range: "1:1"
net_name: "vlan"
group_binds:
- neutron_linuxbridge_agent
- network:
container_bridge: "br-storage"
container_type: "veth"
container_interface: "eth2"
ip_from_q: "storage"
type: "raw"
group_binds:
- glance_api
- cinder_api
- cinder_volume
- nova_compute
- swift_proxy
trove-infra_hosts: trove-infra_hosts:
aio1: aio1:
ip: 172.29.236.100 ip: 172.29.236.100

View File

@ -44,6 +44,20 @@
- name: keystone.yml.aio - name: keystone.yml.aio
- name: neutron.yml.aio - name: neutron.yml.aio
- name: nova.yml.aio - name: nova.yml.aio
translations:
- name: cinder.yml.aio
- name: designate.yml.aio
- name: glance.yml.aio
- name: heat.yml.aio
- name: horizon.yml.aio
- name: keystone.yml.aio
- name: neutron.yml.aio
- name: nova.yml.aio
- name: swift.yml.aio
- name: sahara.yml.aio
- name: magnum.yml.aio
- name: octavia.yml.aio
- name: trove.yml.aio
sftp_subsystem: "{{ (ansible_pkg_mgr == 'apt') | ternary('sftp /usr/lib/openssh/sftp-server','sftp /usr/libexec/openssh/sftp-server') }}" sftp_subsystem: "{{ (ansible_pkg_mgr == 'apt') | ternary('sftp /usr/lib/openssh/sftp-server','sftp /usr/libexec/openssh/sftp-server') }}"
sshd: sshd:
ListenAddress: ListenAddress:

View File

@ -96,13 +96,15 @@
- networking-interfaces-load - networking-interfaces-load
- name: Shut down the network interfaces - name: Shut down the network interfaces
command: "ifdown {{ item }}" command: "ifdown {{ item.name }}"
when: osa_interfaces | changed or osa_multinode_interfaces | changed or network_interfaces_rhel | changed when: osa_interfaces | changed or osa_multinode_interfaces | changed or network_interfaces_rhel | changed
with_items: with_items:
- br-mgmt - { name: br-mgmt }
- br-storage - { name: br-storage }
- br-vlan - { name: br-vlan }
- br-vxlan - { name: br-vxlan }
- { name: br-dbaas, enabled: "{{ (bootstrap_host_scenario == 'translations') | bool }}" }
when: item.enabled | default(True)
tags: tags:
- networking-interfaces-stop - networking-interfaces-stop
@ -125,13 +127,15 @@
- networking-interfaces-start - networking-interfaces-start
- name: Start the network interfaces - name: Start the network interfaces
command: "ifup {{ item }}" command: "ifup {{ item.name }}"
when: osa_interfaces | changed or network_interfaces_rhel | changed when: osa_interfaces | changed or network_interfaces_rhel | changed
with_items: with_items:
- br-mgmt - { name: br-mgmt }
- br-storage - { name: br-storage }
- br-vlan - { name: br-vlan }
- br-vxlan - { name: br-vxlan }
- { name: br-dbaas, enabled: "{{ (bootstrap_host_scenario == 'translations') | bool }}" }
when: item.enabled | default(True)
tags: tags:
- networking-interfaces-start - networking-interfaces-start

View File

@ -58,6 +58,25 @@ iface br-vlan inet static
post-down ip link del br-vlan-veth || true post-down ip link del br-vlan-veth || true
bridge_ports br-vlan-veth bridge_ports br-vlan-veth
{% if bootstrap_host_scenario == "translations" %}
auto br-dbaas
iface br-dbaas inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
address 172.29.232.100
netmask 255.255.252.0
offload-sg off
# Create veth pair, don't bomb if already exists
pre-up ip link add br-dbaas-veth type veth peer name eth13 || true
# Set both ends UP
pre-up ip link set br-dbaas-veth up
pre-up ip link set eth13 up
# Delete veth pair on DOWN
post-down ip link del br-dbaas-veth || true
bridge_ports br-dbaas-veth
{% endif %}
# Add an additional address to br-vlan # Add an additional address to br-vlan
iface br-vlan inet static iface br-vlan inet static
# Flat network default gateway # Flat network default gateway

View File

@ -0,0 +1,9 @@
{% include 'user_variables.aio.yml.j2' %}
# Trove settings for translations site.
trove_provider_net_name: flat-db
trove_service_net_phys_net: flat-db
trove_service_net_setup: True
trove_service_net_subnet_cidr: "172.29.232.0/22"
trove_service_net_allocation_pool_start: "172.29.233.110"
trove_service_net_allocation_pool_end: "172.29.233.200"