Custom Search

Tuesday, August 12, 2014

Installation of DevStack with OpenContrail Single Node Setup

1)
Create a VirtualBox VM with ubuntu 12.04 Server and 4GB RAM

2)
Remove following line and reboot if you have network issue in 12.04 Server
#sudo rm /etc/udev/rules.d/70-persistent-net.rules

3)
Edit /etc/hosts and add following line
127.0.1.1 ubuntu

4)
Update
#sudo apt-get update

5)
Install the following packages
#sudo apt-get install git-core ant build-essential pkg-config linux-headers-3.2.0-35-virtual

6)
Clone devstack
#mkdir ~/openstack
#cd ~/openstack
#git clone https://github.com/dsetia/devstack.git
#cd devstack

7)
Copy "devstack/contrail/localrc-single" and Create a "localrc" file for single node setup.
#cp contrail/localrc-single localrc

8)
Edit "localrc" and change "PHYSICAL_INTERFACE"
#vim localrc
PHYSICAL_INTERFACE=eth0

9)
Edit "localrc" and uncomment following line
#vim localrc
CONTRAIL_REPO_PROTO=https

10)
Remove /opt/stack and run "./stack.sh", if you have issue with git repo clone or ImportError.
#sudo rm -rf /opt/stack

11)
Run stack.sh script.
./stack.sh

5 comments:

  1. http://opencontrail.org/opencontrail-and-devstack/

    ReplyDelete
  2. There is no stack.sh file so how do I run it... I am a beginner foe this...

    ReplyDelete
  3. There is no stack.sh file in dsetia/devstack.. I tried to deploy stack.sh from other devstack distributions, but not working...

    ReplyDelete
  4. Try this
    http://fosshelp.blogspot.in/2014/11/install-contrail-openstack-ubuntu.html

    ReplyDelete
  5. Please help for following issue

    below you can find the error logs while running stack.sh(devstack-maste-eol)

    ImportError: No module named discovery
    ImportError: No module named vnc_cfg_api_server

    015-04-03 18:26:25 + echo 'Waiting for api-server to start...'
    2015-04-03 18:26:25 Waiting for api-server to start...
    2015-04-03 18:26:25 + timeout 60 sh -c 'while ! http_proxy= wget -q -O- http://192.168.10.110:8082; do sleep 1; done'
    2015-04-03 18:27:25 + echo 'api-server did not start'
    2015-04-03 18:27:25 api-server did not start
    2015-04-03 18:27:25 + exit 1
    2015-04-03 18:27:25 + clean
    2015-04-03 18:27:25 + local r=1
    2015-04-03 18:27:25 ++ jobs -p
    2015-04-03 18:27:25 + kill
    2015-04-03 18:27:25 + exit 1

    thanks in advance.....

    ReplyDelete