From 3284b5f5acea37f118ac94112500bc84a186d2c5 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Thu, 9 Jan 2020 14:05:56 +0000 Subject: [PATCH] [OVN] Provide local.conf sample file for DevStack This patch is providing a sample local.conf file for deploying OVN with DevStack. Change-Id: Iaba0233ead60cccd2d0fc6691133ec3e56ae07df Signed-off-by: Lucas Alvares Gomes --- devstack/ovn-compute-local.conf.sample | 83 ++++++++++++ devstack/ovn-local.conf.sample | 173 +++++++++++++++++++++++++ 2 files changed, 256 insertions(+) create mode 100644 devstack/ovn-compute-local.conf.sample create mode 100644 devstack/ovn-local.conf.sample diff --git a/devstack/ovn-compute-local.conf.sample b/devstack/ovn-compute-local.conf.sample new file mode 100644 index 00000000000..e934a13ec45 --- /dev/null +++ b/devstack/ovn-compute-local.conf.sample @@ -0,0 +1,83 @@ +# +# Sample DevStack local.conf. +# +# This sample file is intended to be used when adding an additional compute node +# to your test environment. It runs a very minimal set of services. +# +# For this configuration to work, you *must* set the SERVICE_HOST option to the +# IP address of the main DevStack host. You must also set HOST_IP to the IP +# address of this host. +# + +[[local|localrc]] + +DATABASE_PASSWORD=password +RABBIT_PASSWORD=password +SERVICE_PASSWORD=password +SERVICE_TOKEN=password +ADMIN_PASSWORD=password + +# Enable devstack spawn logging +LOGFILE=$DEST/logs/stack.sh.log + +# The DevStack plugin defaults to using the ovn branch from the official ovs +# repo. You can optionally use a different one. For example, you may want to +# use the latest patches in blp's ovn branch: +#OVN_REPO=https://github.com/blp/ovs-reviews.git +#OVN_BRANCH=ovn + +enable_plugin neutron https://opendev.org/openstack/neutron + +disable_all_services +enable_service n-cpu +enable_service placement-client +enable_service ovn-controller +enable_service neutron-ovn-metadata-agent + +# Set this to the address of the main DevStack host running the rest of the +# OpenStack services. +SERVICE_HOST= +RABBIT_HOST=$SERVICE_HOST +Q_HOST=$SERVICE_HOST + +# How to connect to ovsdb-server hosting the OVN SB database +OVN_SB_REMOTE=tcp:$SERVICE_HOST:6642 + +# A UUID to uniquely identify this system. If one is not specified, a random +# one will be generated and saved in the file 'ovn-uuid' for re-use in future +# DevStack runs. +#OVN_UUID= + +# Whether or not to build custom openvswitch kernel modules from the ovs git +# tree. This is enabled by default. This is required unless your distro kernel +# includes ovs+conntrack support. This support was first released in Linux 4.3, +# and will likely be backported by some distros. +#OVN_BUILD_MODULES=False + +HOST_IP= +NOVA_VNC_ENABLED=True +NOVNCPROXY_URL=http://$SERVICE_HOST:6080/vnc_lite.html +VNCSERVER_LISTEN=$HOST_IP +VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN + +# Skydive +#enable_plugin skydive https://github.com/redhat-cip/skydive.git +#enable_service skydive-agent + +# Provider Network +# If you want to enable a provider network instead of the default private +# network after your DevStack environment installation, you *must* set the +# Q_USE_PROVIDER_NETWORKING to True, and give value to both PHYSICAL_NETWORK +# and OVS_PHYSICAL_BRIDGE. +#Q_USE_PROVIDER_NETWORKING=True +#PHYSICAL_NETWORK=providernet +#OVS_PHYSICAL_BRIDGE=br-provider +#PUBLIC_INTERFACE= + +# If the admin wants to enable this chassis to host gateway routers for +# external connectivity, then set ENABLE_CHASSIS_AS_GW to True. +# Then devstack will set ovn-cms-options with enable-chassis-as-gw +# in Open_vSwitch table's external_ids column. +# If this option is not set on any chassis, all the of them with bridge +# mappings configured will be eligible to host a gateway. +#ENABLE_CHASSIS_AS_GW=False diff --git a/devstack/ovn-local.conf.sample b/devstack/ovn-local.conf.sample new file mode 100644 index 00000000000..297ddbcf8b0 --- /dev/null +++ b/devstack/ovn-local.conf.sample @@ -0,0 +1,173 @@ +# +# Sample DevStack local.conf. +# +# This sample file is intended to be used for your typical DevStack environment +# that's running all of OpenStack on a single host. This can also be used as +# the first host of a multi-host test environment. +# +# No changes to this sample configuration are required for this to work. +# + +[[local|localrc]] + +DATABASE_PASSWORD=password +RABBIT_PASSWORD=password +SERVICE_PASSWORD=password +SERVICE_TOKEN=password +ADMIN_PASSWORD=password + +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" + +# Enable devstack spawn logging +LOGFILE=$DEST/logs/stack.sh.log + +# The DevStack plugin defaults to using the ovn branch from the official ovs +# repo. You can optionally use a different one. For example, you may want to +# use the latest patches in blp's ovn branch: +#OVN_REPO=https://github.com/blp/ovs-reviews.git +#OVN_BRANCH=ovn + +enable_service ovn-northd +enable_service ovn-controller +enable_service neutron-ovn-metadata-agent + +# Use Neutron instead of nova-network +disable_service n-net +enable_service q-svc + +# Disable Neutron agents not used with OVN. +disable_service q-agt +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 q-trunk +enable_service q-dns +#enable_service q-qos + +# Enable neutron tempest plugin tests +enable_plugin neutron-tempest-plugin https://opendev.org/openstack/neutron-tempest-plugin + +# To enable the advanced images tempest tests, uncomment the lines below: +#DOWNLOAD_DEFAULT_IMAGES=False +#IMAGE_URLS="http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img,https://cloud-images.ubuntu.com/releases/xenial/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img" +#DEFAULT_IMAGE_NAME=cirros-0.4.0-x86_64-disk +#DEFAULT_IMAGE_FILE_NAME=cirros-0.4.0-x86_64-disk.img +#ADVANCED_IMAGE_NAME=ubuntu-16.04-server-cloudimg-amd64-disk1 +#ADVANCED_INSTANCE_TYPE=ds512M +#ADVANCED_INSTANCE_USER=ubuntu +#BUILD_TIMEOUT=784 + +# Horizon (the web UI) is enabled by default. You may want to disable +# it here to speed up DevStack a bit. +enable_service horizon +#disable_service horizon + +# 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 cinder c-sch c-api c-vol + +# To enable Rally, uncomment the line below +#enable_plugin rally https://github.com/openstack/rally master + +# How to connect to ovsdb-server hosting the OVN NB database. +#OVN_NB_REMOTE=tcp:$SERVICE_HOST:6641 + +# How to connect to ovsdb-server hosting the OVN SB database. +#OVN_SB_REMOTE=tcp:$SERVICE_HOST:6642 + +# A UUID to uniquely identify this system. If one is not specified, a random +# one will be generated and saved in the file 'ovn-uuid' for re-use in future +# DevStack runs. +#OVN_UUID= + +# If using the OVN native layer-3 service, choose a router scheduler to +# manage the distribution of router gateways on hypervisors/chassis. +# Default value is leastloaded. +#OVN_L3_SCHEDULER=leastloaded + +# Whether or not to build custom openvswitch kernel modules from the ovs git +# tree. This is enabled by default. This is required unless your distro kernel +# includes ovs+conntrack support. This support was first released in Linux 4.3, +# and will likely be backported by some distros. +#OVN_BUILD_MODULES=False + +# Skydive +#enable_plugin skydive https://github.com/redhat-cip/skydive.git +#enable_service skydive-analyzer +#enable_service skydive-agent + +# Octavia with OVN provider driver. OVN provider driver uses the OVN native +# load balancer and it only supports L4 TCP load balancer and doesn't support +# health check monitor and other advanced features supported by Octavia +# amphore driver. If you want to enable Octavia amphore driver, please see +# http://opendev.org/openstack/networking-ovn/tree/devstack/ovn-octavia-provider.conf.sample + +# If you want to enable a provider network instead of the default private +# network after your DevStack environment installation, you *must* set +# the Q_USE_PROVIDER_NETWORKING to True, and also give FIXED_RANGE, +# NETWORK_GATEWAY and ALLOCATION_POOL option to the correct value that can +# be used in your environment. Specifying Q_AGENT is needed to allow devstack +# to run various "ip link set" and "ovs-vsctl" commands for the provider +# network setup. +#Q_AGENT=openvswitch +#Q_USE_PROVIDER_NETWORKING=True +#PHYSICAL_NETWORK=providernet +#PROVIDER_NETWORK_TYPE=flat +#PUBLIC_INTERFACE= +#OVS_PHYSICAL_BRIDGE=br-provider +#PROVIDER_SUBNET_NAME=provider-subnet + +# If the admin wants to enable this chassis to host gateway routers for +# external connectivity, then set ENABLE_CHASSIS_AS_GW to True. +# Then devstack will set ovn-cms-options with enable-chassis-as-gw +# in Open_vSwitch table's external_ids column. +# If this option is not set on any chassis, all the of them with bridge +# mappings configured will be eligible to host a gateway. +ENABLE_CHASSIS_AS_GW=True + +# use the following for IPv4 +#IP_VERSION=4 +#FIXED_RANGE= +#NETWORK_GATEWAY= +#ALLOCATION_POOL= +# use the following for IPv4+IPv6 +#IP_VERSION=4+6 +#FIXED_RANGE= +#NETWORK_GATEWAY= +#ALLOCATION_POOL= +# IPV6_PROVIDER_FIXED_RANGE= +# IPV6_PROVIDER_NETWORK_GATEWAY= + +# If you wish to use the provider network for public access to the cloud, +# set the following +#Q_USE_PROVIDERNET_FOR_PUBLIC=True +#PUBLIC_NETWORK_NAME= +#PUBLIC_NETWORK_GATEWAY= +#PUBLIC_PHYSICAL_NETWORK= +#IP_VERSION=4 +#PUBLIC_SUBNET_NAME= +#Q_FLOATING_ALLOCATION_POOL= +#FLOATING_RANGE= + +# NOTE: DO NOT MOVE THESE SECTIONS FROM THE END OF THIS FILE +# IF YOU DO, THEY WON'T WORK!!!!! +# + +# Enable Nova automatic host discovery for cell every 2 seconds +# Only needed in case of multinode devstack, as otherwise there will be issues +# when the 2nd compute node goes online. + +# The next line is used to insert extra configuration here from the vagrant +# script, please don't modify or remove, keep it before any post-config items +#EXTRA_CONFIG + +[[post-config|$NOVA_CONF]] +[scheduler] +discover_hosts_in_cells_interval = 2