Skip to content

Instantly share code, notes, and snippets.

@stephenfin
Last active July 12, 2021 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save stephenfin/d1c000f7e52ff181c4673322b28eaf47 to your computer and use it in GitHub Desktop.
Save stephenfin/d1c000f7e52ff181c4673322b28eaf47 to your computer and use it in GitHub Desktop.
Sample DevStack 'local.conf' using OVS

DevStack, Single Node, OVS

Overview

Nodes

1

Version

Ussuri

Prerequisites

  • None

Configuration

One tweak is necessary to use this.

  • Replace references to ens4 with the netdev name of the device you wish to use with OVS
[[local|localrc]]
#OFFLINE=True
RECLONE=True
## Passwords
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
HORIZON_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=no-token-password
## Services
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt
## Neutron options
PUBLIC_INTERFACE=ens4
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex
Q_L3_ENABLED=False
SUBNETPOOL_PREFIX_V4="10.0.10.0/24"
## ML2 Configuration
Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,flat,local
## Additional plugins
enable_plugin neutron https://opendev.org/openstack/neutron.git
## Configure filters
[[post-config|$NOVA_CONF]]
[filter_scheduler]
enabled_filters=RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,PciPassthroughFilter,NUMATopologyFilter
@FedericoRessi
Copy link

@stephenfin With last version of DevStack/Neutron I where able to make this work [1] by commenting out line 31:

# Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,flat,local

[1] https://review.opendev.org/c/x/devstack-plugin-tobiko/+/800458/4/playbooks/vagrant/ovs/local.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment