Instantly share code, notes, and snippets.

Embed
What would you like to do?
Devstack with DVR
[[local|localrc]]
# ========================
# All-in-one-node
# ========================
#
# TODO: Set this host's IP
HOST_IP=10.0.2.21
MULTI_HOST=1
DEST=/opt/stack
# For those unverified Linux releases, e.g. Ubuntu14.10
FORCE=yes
GIT_BASE=https://git.openstack.org
PIP_UPGRADE=False
LIBS_FROM_GIT=python-novaclient,python-neutronclient,oslo.concurrency,oslo.messaging,oslo.serialization,oslo.utils
# Proxy
#http_proxy='10.0.2.2:8118'
#https_proxy='10.0.2.2:8118'
# Secret
ADMIN_PASSWORD=stack
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
# Logs
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=1
LOG_COLOR=True
LOGDIR=$DEST/logs
#FIXED_RANGE=10.0.1.0/24
#NETWORK_GATEWAY=10.0.1.1
FLOATING_RANGE=10.0.2.0/24
Q_FLOATING_ALLOCATION_POOL=start=10.0.2.31,end=10.0.2.50
PUBLIC_NETWORK_GATEWAY=10.0.2.2
# Neutron
disable_service n-net
enable_service q-svc q-agt q-dhcp q-meta q-l3
# (Turn OFF) Tempest
disable_service tempest
# VNC Console
enable_service n-novnc n-cauth
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP
VNCSERVER_LISTEN=0.0.0.0
# ============================
# 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
router_delete_namespaces=True
[[post-config|$Q_DHCP_CONF_FILE]]
[DEFAULT]
dhcp_delete_namespaces=True
[[local|localrc]]
# ========================
# Cpu-node
# ========================
#
# TODO: Set this host's IP
HOST_IP=10.0.2.22
MULTI_HOST=1
DEST=/opt/stack
FORCE=yes
GIT_BASE=https://git.openstack.org
PIP_UPGRADE=False
LIBS_FROM_GIT=python-novaclient,python-neutronclient,oslo.concurrency,oslo.messaging,oslo.serialization,oslo.utils
# Proxy
#http_proxy='10.0.2.2:8118'
#https_proxy='10.0.2.2:8118'
# Secret
ADMIN_PASSWORD=stack
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
# Logs
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=1
LOG_COLOR=True
LOGDIR=$DEST/logs
#FIXED_RANGE=10.1.0.0/24
FLOATING_RANGE=10.0.2.0/24
Q_FLOATING_ALLOCATION_POOL=start=10.0.2.31,end=10.0.2.50
PUBLIC_NETWORK_GATEWAY=10.0.2.2
ENABLED_SERVICES=n-cpu,neutron,q-agt,q-l3,q-meta
# (Turn OFF) Tempest
disable_service tempest
# VNC Console
enable_service n-novnc
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP
VNCSERVER_LISTEN=0.0.0.0
# TODO: Set the controller's IP
SERVICE_HOST=10.0.2.21
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
Q_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
# ============================
# Settings for DVR networking
# ============================
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[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
router_delete_namespaces=True
[[local|localrc]]
# ========================
# Net-node
# ========================
#
# TODO: Set this host's IP
HOST_IP=10.0.2.23
MULTI_HOST=1
DEST=/opt/stack
FORCE=yes
GIT_BASE=https://git.openstack.org
PIP_UPGRADE=False
LIBS_FROM_GIT=python-novaclient,python-neutronclient,oslo.concurrency,oslo.messaging,oslo.serialization,oslo.utils
# Proxy
#http_proxy='http://10.0.2.2:8118'
#https_proxy='http://10.0.2.2:8118'
# Secret
ADMIN_PASSWORD=stack
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
# Logs
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=1
LOG_COLOR=True
LOGDIR=$DEST/logs
#FIXED_RANGE=10.1.0.0/24
# floating 33 to 62, broadcast at 63
FLOATING_RANGE=10.0.2.0/24
Q_FLOATING_ALLOCATION_POOL=start=10.0.2.31,end=10.0.2.50
PUBLIC_NETWORK_GATEWAY=10.0.2.2
ENABLED_SERVICES=neutron,q-agt,q-l3,q-meta
# (Turn OFF) Tempest
disable_service tempest
# TODO: Set the controller's IP
SERVICE_HOST=10.0.2.21
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
Q_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
# ============================
# Settings for DVR networking
# ============================
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[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
@zhuronghua

This comment has been minimized.

Copy link

zhuronghua commented Nov 13, 2015

all in one node don't need neutron service?

@ohmystack

This comment has been minimized.

Copy link
Owner

ohmystack commented Sep 29, 2016

@zhuronghua
disable_service n-net means that it disable the nova-network, which is required by using neutron network.

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