Chapter 2.3: VRouter Installation

Vrouter and Vrouter agent will be installed in compute node. In this example, i will install devstack in a VM, and use this.

Devstack installation :

Ref : https://www.gitbook.com/book/sureshkvl/devstack-for-beginners/details

The following to be done in the devstack vm.

Download devstack code

sudo apt-get update
sudo apt-get install git
git clone https://github.com/openstack-dev/devstack
cd devstack/
git checkout stable/mitaka
git status

create a local.conf file

[[local|localrc]]
SERVICE_TOKEN=mytoken123
ADMIN_PASSWORD=openstack123
MYSQL_PASSWORD=mysql123
RABBIT_PASSWORD=rabbit123
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
disable_service n-net
enable_service q-svc q-agt q-dhcp q-l3 q-meta

Run the stack

./stack.sh

It may take 30+ mins to finish the devstack installation.

=======================
DevStack Components Timed
========================

run_process - 60 secs
test_with_retry - 2 secs
apt-get-update - 7 secs
pip_install - 82 secs
restart_apache_server - 10 secs
wait_for_service - 11 secs
apt-get - 5 secs



This is your host IP address: 10.0.1.7
This is your host IPv6 address: ::1
Horizon is now available at http://10.0.1.7/dashboard
Keystone is serving at http://10.0.1.7:5000/
The default users are: admin and demo
The password: openstack123
cloud@devstack1:~/devstack$

Thats all


Install the VROUTER service

Prerequisites:

sudo add-apt-repository ppa:opencontrail/ppa
sudo apt-get update
sudo apt-get -y install python-geventhttpclient python-bitarray python-bottle python-kazoo python-kombu python-pycassa python-consistent-hash python-netaddr python-psutil python-eventlet python-docker-py python-neutronclient python-nova python-oslo.config
sudo apt-get -y install authbind supervisor libboost-chrono1.54.0 libboost-program-options1.54.0 libboost-regex1.54.0 libboost-system1.54.0 liblog4cplus-1.0-4 libtbb2 dpkg-dev python-lxml libboost-filesystem1.54.0

Install contrail packages

sudo dpkg -i python-contrail_1.1master~96e7f26_amd64.deb
sudo dpkg -i contrail-lib_1.1master~96e7f26_amd64.deb
sudo dpkg -i contrail-utils_1.1master~96e7f26_amd64.deb
sudo dpkg -i contrail-vrouter-utils_1.1master~96e7f26_amd64.deb
sudo dpkg -i contrail-vrouter-3.13.0-112-generic_1.1master~96e7f26_all.deb
sudo dpkg -i contrail-vrouter-agent_1.1master~96e7f26_amd64.deb
sudo dpkg -i python-contrail-vrouter-api_1.1master~96e7f26_amd64.deb
sudo dpkg -i python-opencontrail-vrouter-netns_1.1master~96e7f26_amd64.deb
sudo dpkg -i neutron-plugin-contrail_1.1master~fa6b3e8_all.deb

Frequently you see dependency error, and asked to use this command

sudo apt-get -f install

Thats all.

results matching ""

    No results matching ""