Allow tempest network overrides for public and private net

Added default variables to allow for individual overrides of
the public and private networks that will be created. This required
seperate blocks for different net types.

Change-Id: I177a41fc8134cb916de38989c1a702028633fa06
Closes-bug: 1580292
This commit is contained in:
Jacob Wagner 2016-05-10 15:30:41 -05:00
parent 8b7696a04d
commit f57ef996a2
3 changed files with 53 additions and 5 deletions

View File

@ -36,10 +36,26 @@ tempest_plugins: []
tempest_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/tempest.tgz
tempest_fatal_deprecations: False
# Private network configuration
# Currently supports 2 types
# vlan - will need to make sure your seg id and subnet cidr are correct
# vxlan - default, can change subnet cidr and seg id
# This needs to coincide with tempest_network_tenant_network_cidr and
# tempest_network_tenant_network_mask_bits below
tempest_private_subnet_cidr: "192.168.74.0/28"
tempest_private_net_provider_type: "vxlan"
tempest_private_net_seg_id: 1
# Public network configuration
# Currently supports 2 types
# Flat - default
# Vlan - make sure you override seg id, cidr, provider and physical
tempest_public_subnet_cidr: "10.1.13.0/24"
tempest_public_net_provider_type: "flat"
tempest_public_net_physical_type: "flat"
tempest_public_net_seg_id: ""
tempest_public_router_external: "true"
# Example allocation range:
#tempest_public_subnet_allocation_pools: "10.1.13.150-10.1.13.200"
tempest_public_subnet_allocation_pools: ""

View File

@ -0,0 +1,10 @@
---
features:
- Deployers can now configure tempest public and private networks by setting
the following variables, 'tempest_private_net_provider_type' to either vxlan
or vlan and 'tempest_public_net_provider_type' to flat or vlan. Depending on
what the deployer sets these variables to, they may also need to update other
variables accordingly, this mainly involves 'tempest_public_net_physical_type'
and 'tempest_public_net_seg_id'. Please refer to
http://docs.openstack.org/mitaka/networking-guide/intro-basic-networking.html
for more neutron networking information.

View File

@ -208,6 +208,8 @@
command: create_network
openrc_path: /root/openrc
net_name: private
provider_network_type: "{{ tempest_private_net_provider_type }}"
provider_segmentation_id: "{{ tempest_private_net_seg_id }}"
tenant_id: "{{ keystone_demo_tenant_id }}"
insecure: "{{ keystone_service_internaluri_insecure }}"
when: tempest_service_available_neutron | bool
@ -223,16 +225,36 @@
- tempest-setup
- tempest-config
- name: Ensure public network exists
- name: Ensure public network exists (if flat)
neutron:
command: create_network
openrc_path: /root/openrc
net_name: public
provider_network_type: flat
provider_physical_network: flat
router_external: true
provider_network_type: "{{ tempest_public_net_provider_type }}"
provider_physical_network: "{{ tempest_public_net_physical_type }}"
router_external: "{{ tempest_public_router_external }}"
insecure: "{{ keystone_service_internaluri_insecure }}"
when: tempest_service_available_neutron | bool
when:
- tempest_service_available_neutron | bool
- tempest_public_net_provider_type == "flat"
tags:
- tempest-setup
- tempest-config
- name: Ensure public network exists (if vlan)
neutron:
command: create_network
openrc_path: /root/openrc
net_name: public
provider_network_type: "{{ tempest_public_net_provider_type }}"
provider_physical_network: "{{ tempest_public_physical_net_type }}"
provider_segmentation_id: "{{ tempest_public_net_seg_id }}"
router_external: "{{ tempest_public_router_external }}"
tenant_id: "{{ keystone_demo_tenant_id }}"
insecure: "{{ keystone_service_internaluri_insecure }}"
when:
- tempest_service_available_neutron | bool
- tempest_public_net_provider_type == "vlan"
tags:
- tempest-setup
- tempest-config