Fix OVN configuration

Change-Id: I4ec1932eef2abd790ecf906cdea2d024e6a0d489
This commit is contained in:
Federico Ressi 2021-11-09 12:58:04 +01:00
parent b2dca7577a
commit 2079d24a95

View File

@ -1,46 +1,55 @@
[[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
LOG_COLOR=False
VERBOSE=True
LOG_COLOR=True
MULTI_HOST="0"
# 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 s-account
disable_service s-container
disable_service s-object
disable_service s-proxy
disable_service tempest
disable_service tls-proxy
# 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 -----------------------------------------------------------
HOST_IP=192.168.33.10
IP_VERSION=4
ENABLE_CHASSIS_AS_GW=true
ENABLE_TLS=true
KEYSTONE_ADMIN_ENDPOINT=true
ML2_L3_PLUGIN=ovn-router,trunk
OVN_BUILD_MODULES=false
OVN_DBS_LOG_LEVEL=dbg
OVN_IGMP_SNOOPING_ENABLE=true
OVN_L3_CREATE_PUBLIC_NETWORK=true
PHYSICAL_NETWORK=public
PUBLIC_INTERFACE=eth0
Q_AGENT=ovn
Q_ML2_PLUGIN_MECHANISM_DRIVERS=ovn,logger
Q_ML2_PLUGIN_TYPE_DRIVERS=local,flat,vlan,geneve
Q_ML2_TENANT_NETWORK_TYPE=geneve
Q_USE_PROVIDERNET_FOR_PUBLIC=true
enable_service ovn-northd
enable_plugin neutron https://opendev.org/openstack/neutron.git
enable_service neutron
enable_service neutron-segments
enable_service ovn-controller
enable_service ovn-northd
enable_service ovs-vswitchd
enable_service ovsdb-server
enable_service q-dns
enable_service q-log
enable_service q-ovn-metadata-agent
# Use Neutron
enable_service q-port-forwarding
enable_service q-qos
enable_service q-svc
enable_service q-trunk
# Disable Neutron agents not used with OVN.
disable_service q-agt
@ -48,14 +57,24 @@ disable_service q-l3
disable_service q-dhcp
disable_service q-meta
# Enable services, these services depend on neutron plugin.
enable_plugin neutron https://opendev.org/openstack/neutron
enable_service neutron-segments
enable_service q-dns
enable_service q-log
enable_service q-qos
enable_service q-port-forwarding
enable_service q-trunk
HOST_IP=192.168.33.10
IP_VERSION=4
# ENABLE_CHASSIS_AS_GW=true
ENABLE_TLS=false
KEYSTONE_ADMIN_ENDPOINT=true
ML2_L3_PLUGIN=ovn-router,trunk
OVN_BUILD_MODULES=false
OVN_DBS_LOG_LEVEL=dbg
OVN_IGMP_SNOOPING_ENABLE=true
OVN_L3_CREATE_PUBLIC_NETWORK=true
# PHYSICAL_NETWORK=public
# PUBLIC_INTERFACE=eth0
Q_AGENT=ovn
Q_ML2_PLUGIN_MECHANISM_DRIVERS=ovn,logger
Q_ML2_PLUGIN_TYPE_DRIVERS=local,flat,vlan,geneve
Q_ML2_TENANT_NETWORK_TYPE=geneve
Q_USE_PROVIDERNET_FOR_PUBLIC=true
# Whether or not to build custom openvswitch kernel modules from the ovs git
# tree. This is disabled by default. This is required unless your distro kernel
@ -69,19 +88,22 @@ OVN_BUILD_MODULES=False
# Configure Horizon -----------------------------------------------------------
disable_service horizon
# Configure Glance ------------------------------------------------------------
enable_service g-api
GLANCE_ENABLE_QUOTAS="False"
# Configure Cinder ------------------------------------------------------------
# Cinder (OpenStack Block Storage) is disabled by default to speed up
# DevStack a bit. You may enable it here if you would like to use it.
disable_service cinder c-sch c-api c-vol
enable_service c-api
disable_service c-bak
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