Jump to: navigation, search

OVSDB:OpenStack on CentOS7

Control + Network + Compute local.conf

[[local|localrc]]
# put the log files in a dir different than the source so they can be manipulated independently
LOGFILE=/opt/logs/stack/stack.sh.log
SCREEN_LOGDIR=/opt/logs/stack
LOG_COLOR=False
# flip OFFLINE and RECLONE to lock (RECLONE=no) or update the source.
OFFLINE=True
RECLONE=no
VERBOSE=True

# disable everything so we can explicitly enable only what we need
disable_all_services

# Core compute (glance+keystone+nova+vnc)
enable_service g-api g-reg key n-api n-crt n-obj n-cpu n-cond n-sch n-novnc n-xvnc n-cauth
# dashboard
enable_service horizon
# network. uncomment only one of the next two lines depending on if you want odl or the l2 agent
# next line enables default l2 agent and not odl
enable_service neutron q-agt q-dhcp q-l3 q-meta q-svc
# next line enables odl as the neutron backend rathar than the l2 agent
#enable_service neutron q-dhcp q-l3 q-meta q-svc odl-compute odl-neutron
# additional services
enable_service mysql rabbit
# load-balancer, tempest
#enable_service q-lbaas

HOST_IP=192.168.254.31
#HOST_IP=192.168.120.31
HOST_NAME=odl31
SERVICE_HOST_NAME=$HOST_NAME
SERVICE_HOST=$HOST_IP
Q_HOST=$SERVICE_HOST

#FLAT_INTERFACE=eth2
#FLAT_NETWORK_BRIDGE=br-eth1
#PHYSICAL_NETWORK=physnet1
#OVS_PHYSICAL_BRIDGE=br-eth1
##Q_ML2_TENANT_NETWORK_TYPE=vlan
#ENABLE_TENANT_TUNNELS=False
#Q_AGENT_EXTRA_OVS_OPTS=(tenant_network_type=local)

# openvswitch ml2 vlan+tunnels
## ml2 is the default plugin
##Q_PLUGIN=ml2
## all mechanism and type drivers are enabled by default so no need to set them explictly
##Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge
##Q_ML2_PLUGIN_TYPE_DRIVERS=flat,vlan,gre,vxlan
##ML2_VLAN_RANGES=physnet1:2000:2999,physnet3:3000:3999
ML2_VLAN_RANGES=physnet1:2000:2999
ENABLE_TENANT_VLANS=True
ENABLE_TENANT_TUNNELS=True
#PHYSICAL_NETWORK=physnet1
#PUBLIC_NETWORK=physnet2
#OVS_PHYSICAL_BRIDGE=br-eth1
## If using OVS_BRIDGE_MAPPINGS, you need to manually add the bridges.
##OVS_BRIDGE_MAPPINGS=physnet1:br-eth1,physnet2:br-ex
NEUTRON_CREATE_INITIAL_NETWORKS=False
# L3 setup
#PUBLIC_INTERFACE=eth2
#PUBLIC_NETWORK_GATEWAY=192.168.56.1
#FLOATING_RANGE=192.168.56.16/28
OVS_BRIDGE_MAPPINGS=public:br-ex,physnet1:br-eth1
# PUBLIC_BRIDGE=br-ex  #this is the devstack default
##OVS_BRIDGE_MAPPINGS=physnet1:br-eth1

# opendaylight ml2 vlan and gre tunnels
#enable_plugin networking-odl http://git.openstack.org/openstack/networking-odl
# this repo has fix for the security groups problem
#enable_plugin networking-odl https://github.com/flavio-fernandes/networking-odl stable/kilo
ODL_MODE=manual
ODL_PORT=8080
ODL_MGR_IP=192.168.120.1
#Q_PLUGIN=ml2
#Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,opendaylight
#Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,gre,vxlan
#ML2_VLAN_RANGES=physnet1:2000:2999
#ENABLE_TENANT_VLANS=True
##ENABLE_TENANT_TUNNELS=True
##Q_ML2_TENANT_NETWORK_TYPE=gre
#PHYSICAL_NETWORK=physnet1
#OVS_PHYSICAL_BRIDGE=br-eth1
##OVS_BRIDGE_MAPPINGS=physnet1:eth1,physnet3:eth3
##OVS_BRIDGE_MAPPINGS=physnet1:br-eth1
##ODL_PROVIDER_MAPPINGS=physnet1:eth1
##NEUTRON_REPO=https://github.com/CiscoSystems/neutron.git
##NEUTRON_BRANCH=odl_ml2

VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP
VNCSERVER_LISTEN=0.0.0.0

#DATABASE_HOST=$SERVICE_HOST
#RABBIT_HOST=$SERVICE_HOST
#GLANCE_HOSTPORT=$SERVICE_HOST:9292
#KEYSTONE_AUTH_HOST=$SERVICE_HOST
#KEYSTONE_SERVICE_HOST=$SERVICE_HOST
 
DATABASE_PASSWORD=mysql
RABBIT_PASSWORD=rabbit
QPID_PASSWORD=rabbit
SERVICE_TOKEN=service
SERVICE_PASSWORD=admin
ADMIN_PASSWORD=admin

# use master for latest
BRANCH=stable/kilo
GLANCE_BRANCH=$BRANCH
HORIZON_BRANCH=$BRANCH
KEYSTONE_BRANCH=$BRANCH
NOVA_BRANCH=$BRANCH
NEUTRON_BRANCH=$BRANCH
SWIFT_BRANCH=$BRANCH
##CLIFF_BRANCH=$BRANCH
##TEMPEST_BRANCH=$BRANCH
CINDER_BRANCH=$BRANCH
HEAT_BRANCH=$BRANCH
TROVE_BRANCH=$BRANCH
CEILOMETER_BRANCH=$BRANCH

[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
[agent]
minimize_polling=True

== Compute local.conf ==
[[local|localrc]]
# put the log files in a dir different than the source so they can be manipulated independently
LOGFILE=/opt/logs/stack/stack.sh.log
SCREEN_LOGDIR=/opt/logs/stack
LOG_COLOR=False
# flip OFFLINE and RECLONE to lock (RECLONE=no) or update the source.
OFFLINE=True
RECLONE=no
VERBOSE=True

# disable everything so we can explicitly enable only what we need
disable_all_services

# Core compute (glance+keystone+nova+vnc)
#enable_service g-api g-reg key n-api n-crt n-obj n-cpu n-cond n-sch n-novnc n-xvnc n-cauth
enable_service n-cpu n-novnc
# network. uncomment only one of the next two lines depending on if you want odl or the l2 agent
# next line enables default l2 agent and not odl
enable_service neutron q-agt 
# next line enables odl as the neutron backend rathar than the l2 agent
#enable_service neutron q-dhcp q-l3 q-meta q-svc odl-compute odl-neutron
# additional services
#enable_service mysql rabbit
enable_service rabbit
# load-balancer, tempest
#enable_service q-lbaas

HOST_IP=192.168.254.32
HOST_NAME=odl32
SERVICE_HOST_NAME=odl31
SERVICE_HOST=192.168.254.31
Q_HOST=$SERVICE_HOST

#FLAT_INTERFACE=eth2
#FLAT_NETWORK_BRIDGE=br-eth1
#PHYSICAL_NETWORK=physnet1
#OVS_PHYSICAL_BRIDGE=br-eth1
##Q_ML2_TENANT_NETWORK_TYPE=vlan
#ENABLE_TENANT_TUNNELS=False
#Q_AGENT_EXTRA_OVS_OPTS=(tenant_network_type=local)

# openvswitch ml2 vlan+tunnels
## ml2 is the default plugin
##Q_PLUGIN=ml2
## all mechanism and type drivers are enabled by default so no need to set them explictly
##Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge
##Q_ML2_PLUGIN_TYPE_DRIVERS=flat,vlan,gre,vxlan
##ML2_VLAN_RANGES=physnet1:2000:2999,physnet3:3000:3999
#*ML2_VLAN_RANGES=physnet1:2000:2999
ENABLE_TENANT_VLANS=True
ENABLE_TENANT_TUNNELS=True
#PHYSICAL_NETWORK=physnet1
#PUBLIC_NETWORK=physnet2
#OVS_PHYSICAL_BRIDGE=br-eth1
## If using OVS_BRIDGE_MAPPINGS, you need to manually add the bridges.
##OVS_BRIDGE_MAPPINGS=physnet1:br-eth1,physnet2:br-ex
#*NEUTRON_CREATE_INITIAL_NETWORKS=False
# L3 setup
#*PUBLIC_INTERFACE=eth2
#*PUBLIC_NETWORK_GATEWAY=192.168.56.1
#*FLOATING_RANGE=192.168.56.8/29
OVS_BRIDGE_MAPPINGS=physnet1:br-eth1
# PUBLIC_BRIDGE=br-ex  #this is the devstack default
##OVS_BRIDGE_MAPPINGS=physnet1:br-eth1

# opendaylight ml2 vlan and gre tunnels
#enable_plugin networking-odl http://git.openstack.org/openstack/networking-odl
# this repo has fix for the security groups problem
#enable_plugin networking-odl https://github.com/flavio-fernandes/networking-odl stable/kilo
ODL_MODE=manual
ODL_PORT=8080
ODL_MGR_IP=192.168.120.1
#Q_PLUGIN=ml2
#Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,opendaylight
#Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,gre,vxlan
#ML2_VLAN_RANGES=physnet1:2000:2999
#ENABLE_TENANT_VLANS=True
##ENABLE_TENANT_TUNNELS=True
##Q_ML2_TENANT_NETWORK_TYPE=gre
#PHYSICAL_NETWORK=physnet1
#OVS_PHYSICAL_BRIDGE=br-eth1
##OVS_BRIDGE_MAPPINGS=physnet1:eth1,physnet3:eth3
##OVS_BRIDGE_MAPPINGS=physnet1:br-eth1
##ODL_PROVIDER_MAPPINGS=physnet1:eth1
##NEUTRON_REPO=https://github.com/CiscoSystems/neutron.git
##NEUTRON_BRANCH=odl_ml2

VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP
VNCSERVER_LISTEN=0.0.0.0

#DATABASE_HOST=$SERVICE_HOST
#RABBIT_HOST=$SERVICE_HOST
#GLANCE_HOSTPORT=$SERVICE_HOST:9292
#KEYSTONE_AUTH_HOST=$SERVICE_HOST
#KEYSTONE_SERVICE_HOST=$SERVICE_HOST
 
DATABASE_PASSWORD=mysql
RABBIT_PASSWORD=rabbit
QPID_PASSWORD=rabbit
SERVICE_TOKEN=service
SERVICE_PASSWORD=admin
ADMIN_PASSWORD=admin

# use master for latest
BRANCH=stable/kilo
GLANCE_BRANCH=$BRANCH
HORIZON_BRANCH=$BRANCH
KEYSTONE_BRANCH=$BRANCH
NOVA_BRANCH=$BRANCH
NEUTRON_BRANCH=$BRANCH
SWIFT_BRANCH=$BRANCH
##CLIFF_BRANCH=$BRANCH
##TEMPEST_BRANCH=$BRANCH
CINDER_BRANCH=$BRANCH
HEAT_BRANCH=$BRANCH
TROVE_BRANCH=$BRANCH
CEILOMETER_BRANCH=$BRANCH

[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
[agent]
minimize_polling=True