[Vagrant] Prepare configuration for testing with DVR

This also assign and IP address which is accepted by default
VirtualBox settings

Change-Id: I9ba7b26915778ff24622d99a32374c0498d56fd2
This commit is contained in:
Federico Ressi 2022-06-03 15:33:28 +02:00
parent 129b06b7e5
commit fc5a6a2856
8 changed files with 110 additions and 7 deletions

View File

@ -2,7 +2,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-byte-order-marker

2
Vagrantfile vendored
View File

@ -29,7 +29,7 @@ PROVISION_PLAYBOOK = ENV.fetch(
PROVISION_DIR = File.dirname(PROVISION_PLAYBOOK)
# Host IP address to be assigned to OpenStack in DevStack
HOST_IP = "192.168.33.10"
HOST_IP = "192.168.56.10"
# Local directory from where look for required projects files
PROJECTS_DIR = File.dirname(ENV.fetch('PROJECTS_DIR', VAGRANTFILE_DIR))

View File

@ -57,7 +57,7 @@ disable_service q-l3
disable_service q-dhcp
disable_service q-meta
HOST_IP=192.168.33.10
HOST_IP=192.168.56.10
IP_VERSION=4
# ENABLE_CHASSIS_AS_GW=true

View File

@ -47,7 +47,7 @@ enable_service q-trunk
enable_service q-dns
#enable_service q-qos
HOST_IP=192.168.33.10
HOST_IP=192.168.56.10
IP_VERSION=4
# Q_PLUGIN=ml2
Q_AGENT=ovn

View File

@ -57,7 +57,7 @@ disable_service q-l3
disable_service q-dhcp
disable_service q-meta
HOST_IP=192.168.33.10
HOST_IP=192.168.56.10
IP_VERSION=4
# ENABLE_CHASSIS_AS_GW=true

View File

@ -0,0 +1,101 @@
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
KEYSTONE_ADMIN_ENDPOINT=true
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=/opt/stack/devstack/stack.log
VERBOSE=True
LOG_COLOR=True
# Enable required services ----------------------------------------------------
enable_service key
enable_service mysql
enable_service placement-api
enable_service placement-client
enable_service rabbit
# Disable unrequired services -------------------------------------------------
disable_service horizon
disable_service tempest
# Configure Nova --------------------------------------------------------------
enable_service n-api
enable_service n-api-meta
enable_service n-cond
enable_service n-cpu
enable_service n-crt
enable_service n-sch
enable_service n-sproxy
# Configure Neutron -----------------------------------------------------------
enable_plugin neutron https://opendev.org/openstack/neutron.git
enable_service neutron
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-log
enable_service q-meta
enable_service q-qos
enable_service q-svc
HOST_IP=192.168.56.10
IP_VERSION=4
Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,flat,local
Q_ML2_TENANT_NETWORK_TYPE=vlan
# ENABLE_TENANT_TUNNELS=True
ENABLE_TENANT_VLANS=True
# Configure Glance ------------------------------------------------------------
enable_service g-api
# Configure Cinder ------------------------------------------------------------
enable_service c-api
enable_service c-sch
enable_service c-vol
# Configure Heat --------------------------------------------------------------
enable_plugin heat https://opendev.org/openstack/heat.git
# Configure Tobiko ------------------------------------------------------------
enable_plugin devstack-plugin-tobiko https://opendev.org/x/devstack-plugin-tobiko.git
TOBIKO_NEUTRON_IPV4_DNS_NAMESERVERS=1.1.1.1,8.8.8.8
# Settings for DVR networking -------------------------------------------------
[[post-config|$NEUTRON_CONF]]
[DEFAULT]
router_distributed=True
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[ml2]
type_drivers=flat,vlan,vxlan
tenant_network_types=vxlan
mechanism_drivers=openvswitch,l2population
[ml2_type_vxlan]
vni_ranges=1000:1999
[ovs]
local_ip=$HOST_IP
[agent]
tunnel_types=vxlan
l2_population=True
enable_distributed_routing=True
[[post-config|$Q_L3_CONF_FILE]]
[DEFAULT]
agent_mode=dvr_snat
router_delete_namespaces=True
[[post-config|$Q_DHCP_CONF_FILE]]
[DEFAULT]
dhcp_delete_namespaces=True

View File

@ -36,10 +36,12 @@ enable_service neutron
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-log
enable_service q-meta
enable_service q-qos
enable_service q-svc
HOST_IP=192.168.33.10
HOST_IP=192.168.56.10
IP_VERSION=4
Q_PLUGIN=ml2
Q_AGENT=openvswitch

View File

@ -40,7 +40,7 @@ enable_service q-meta
enable_service q-qos
enable_service q-svc
HOST_IP=192.168.33.10
HOST_IP=192.168.56.10
IP_VERSION=4
Q_PLUGIN=ml2
Q_AGENT=openvswitch