Custom Search

Thursday, April 23, 2015

OpenStack DevStack OpenContrail localrc

1)
First clone devstack from github.com/openstack-dev
#git clone https://github.com/openstack-dev/devstack.git

2)
Then download devstack opencontrail plugin installation script following link and move to clone directory "devstack/lib/neutron_plugins/"
https://github.com/Juniper/contrail-installer/blob/master/devstack/lib/neutron_plugins/opencontrail
or
https://github.com/dsetia/devstack/blob/master/lib/neutron_plugins/contrail

3)
Then add following lines in localrc

#OpenContrail API Server
APISERVER_IP=192.168.56.102
#OpenContrail Plugin
Q_PLUGIN=opencontrail
#OpenContrail nova plugin
NOVA_VIF_DRIVER=nova_contrail_vif.contrailvif.VRouterVIFDriver

4)
Optional Step

Comment/delete following line from stack.sh
create_neutron_initial_network

5)
Example localrc


STACK_DIR=$(cd $(dirname $0) && pwd)

LOG_DIR=$STACK_DIR/log/screens
LOG=True
DEBUG=True
LOGFILE=$STACK_DIR/log/stack.log
LOGDAYS=1
SCREEN_LOGDIR=$LOG_DIR

disable_service n-net
enable_service q-svc
enable_service q-meta
#enable_service neutron

# not used by contrail
disable_service q-agt
disable_service q-dhcp
disable_service q-l3

DATABASE_PASSWORD=contrail123
RABBIT_PASSWORD=contrail123
SERVICE_TOKEN=contrail123
SERVICE_PASSWORD=contrail123
ADMIN_PASSWORD=contrail123
#OpenContrail API Server
APISERVER_IP=192.168.56.102
#OpenContrail Plugin
Q_PLUGIN=opencontrail
PHYSICAL_INTERFACE=eth1

# proto for openstack bits. Use HTTPS if git is firewalled
GIT_BASE=https://git.openstack.org

#OpenContrail nova plugin
NOVA_VIF_DRIVER=nova_contrail_vif.contrailvif.VRouterVIFDriver

6)
Sample localrc files

https://github.com/Juniper/contrail-installer/blob/600d4db0ef99f570b475e5e5241ff3c746987acd/devstack/samples/localrc-all


https://raw.githubusercontent.com/Juniper/contrail-installer/4a29ccdd61c7d19a595a89031ce59601b0fed59a/devstack/samples/localrc-ci


7)
Then run ./stack.sh



No comments:

Post a Comment