Chapter 1: Devstack with Opencontrail installation
Installation procedure is same as DEVSTACK installation, only local.conf file needs to be updated with opencontrail information.
Devstack (Queens + Contrail 5.0 version)
OS: Ubuntu 16.04.4 LTS (I used VM - 4 Core, 13GB Ram)
Openstack: Queens
Contrail: 5.0
1.
sudo apt-get update
cd
git clone https://github.com/openstack-dev/devstack
cd devstack
git checkout stable/queens
create local.conf file devstack folder
[local|localrc]]
RECLONE=True
HOST_IP=10.0.1.4
SERVICE_TOKEN=azertytoken
ADMIN_PASSWORD=contrail123
MYSQL_PASSWORD=stackdb
RABBIT_PASSWORD=stackqueue
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
IP_VERSION=4
Q_USE_PROVIDERNET_FOR_PUBLIC=False
FIXED_RANGE="10.24.0.0/24"
NETWORK_GATEWAY="10.24.0.1"
enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git
CONTRAIL_REPO=https://github.com/Juniper/contrail-vnc.git
CONTRAIL_BRANCH=R5.0
SCONS_JOBS=$(lscpu -p | grep -cve '^#')
Note: HOST_IP is your system ip
start the build
./stack.sh
will take approx 60 mins to build, you will see the output as below,
This is your host IP address: 10.0.1.4
This is your host IPv6 address: ::1
Horizon is now available at http://10.0.1.4/dashboard
Keystone is serving at http://10.0.1.4/identity/
The default users are: admin and demo
The password: contrail123
WARNING:
Using lib/neutron-legacy is deprecated, and it will be removed in the future
Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html
DevStack Version: queens
Change: 97f88fc4e25c0e4b0b054becbd9d3fe0b5eca451 Add the project under test to LIBS_FROM_GIT 2018-09-18 17:$
6:03 +0200
OS Version: Ubuntu 16.04 xenial
Devstack (OCATA + Contrail 4.0 Version)
In this exercise, we use Openstack OCATA Version and OpenContrail 4.0 Version.
Note: Opencontrail 3.2.3.x doesnt have the Contrail Neutron Plugin support for OCATA release. 3.2.3.X supports Opencontrail Mitaka version.
Hence I am using 4.0 for OCATA Release.
cd
git clone https://github.com/openstack-dev/devstack
cd devstack
git checkout stable/ocata
Create a local.conf file as below,
[[local|localrc]]
RECLONE=True
HOST_IP=10.0.1.3
SERVICE_TOKEN=azertytoken
ADMIN_PASSWORD=contrail123
MYSQL_PASSWORD=stackdb
RABBIT_PASSWORD=stackqueue
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
IP_VERSION=4
Q_USE_PROVIDERNET_FOR_PUBLIC=False
FIXED_RANGE="10.24.0.0/24"
NETWORK_GATEWAY="10.24.0.1"
enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git
CONTRAIL_REPO=https://github.com/Juniper/contrail-vnc.git
CONTRAIL_BRANCH=R4.0
SCONS_JOBS=$(lscpu -p | grep -cve '^#')
In the local.conf file,
Note: Change the HOST_IP with your IP.
- Included the contrail devstack plugin details which builds the contrail
- Mentioned the contrail official repo details in CONTRAIL_REPO variable
- Mentioned the contrail branch(version) details in CONTRAIL_BRANCH variable
- SCONS_JOBS mentions the number of processors to be used for building the contrail.
- Q_PLUGINCLASS variable specifies the neutron opencontrail plugin driver details. Two versions are available (V2 and V3). In the neutron.conf file, this will be updated as "core_plugin"
- service_plugins specifies the neutron service plugins.
- quota_driver also part of neutron.conf file, neutron contrail quota driver
Note:
During the build , I got in to this failure, and fix is mentioned in this link
https://github.com/Juniper/contrail-installer/issues/144#issuecomment-298599827
Screens :
After the successful installation, two screens will be appeared. one for contrail, and other one for devstack.
cloud@devstack1:~/devstack$ screen -ls
There are screens on:
7981.contrail (08/02/16 15:07:55) (Detached)
27734.stack (08/02/16 15:04:38) (Detached)
2 Sockets in /var/run/screen/S-cloud.
Devstack (Mitaka + Contrail 3.2.3.X Version)
In this exercise, we use Openstack Mitaka Version and OpenContrail 3.2.3.X Version.
cd
git clone https://github.com/openstack-dev/devstack
cd devstack
git checkout mitaka-eol
Create a local.conf file as below,
[[local|localrc]]
RECLONE=True
HOST_IP=10.0.1.3
SERVICE_TOKEN=azertytoken
ADMIN_PASSWORD=contrail123
MYSQL_PASSWORD=stackdb
RABBIT_PASSWORD=stackqueue
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
REQUIREMENTS_BRANCH=mitaka-eol
GLANCE_BRANCH=mitaka-eol
NOVA_BRANCH=mitaka-eol
NEUTRON_BRANCH=mitaka-eol
KEYSTONE_BRANCH=mitaka-eol
CINDER_BRANCH=mitaka-eol
HORIZON_BRANCH=mitaka-eol
disable_service tempest
LOGDAYS=2
IP_VERSION=4
Q_USE_PROVIDERNET_FOR_PUBLIC=False
FIXED_RANGE="10.24.0.0/24"
NETWORK_GATEWAY="10.24.0.1"
enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git
CONTRAIL_REPO=https://github.com/Juniper/contrail-vnc.git
CONTRAIL_BRANCH=R3.2.3.x
SCONS_JOBS=$(lscpu -p | grep -cve '^#')
Note: Change the HOST_IP with your IP.
Note:
During the build , I got in to this failure, and fix is mentioned in this link
https://github.com/Juniper/contrail-installer/issues/144#issuecomment-298599827
One more openstack version error
To fix, sudo vi /usr/local/lib/python2.7/dist-packages/openstack/session.py, change
DEFAULT_USER_AGENT = "openstacksdk/0.8.1"