Bash scripts for OpenStack Mitaka installation. This script can install OpenStack mitaka in classic OVS networking and DVR deployments. It also contains script to integrate OpenStack with OpenDayLight.
Shell Python HTML ApacheConf
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config.d
documents
LICENSE
NOTE.txt
OPSInstaller-init.tar
README.md
exe-config-installer.sh
install-paramrc.sh
install-paramrc.sh.example
tmpfile

README.md

openstack-mitaka-installer

The "OPSInstaller" OpenStack Mitaka Installation Script

Copyright 2016 Kasidit Chanchio, Vasinee Siripoon, Somkiat Kosolsombat

Contact: kasiditchanchio@gmail.com
department of computer science
faculty of science and technology
Thammasat University.

You will issue every instruction on the controller node of your OpenStack deployment.

First, login to the your openstack account on the controller node and invoke the following commands to obtain this OpenStack installer script.

$ cd $HOME
$ git clone https://github.com/kasidit/openstack-mitaka-installer
$ cd openstack-mitaka-installer

In our example, we follow the example configuration parameters in the official installation manual (using ubuntu) of openstack as illustrated in the picture below.

From the figure, we use the same configuration as those of OpenStack installation manual for the managment network, data tunnel network, v-lan network, and external network. However, this script still require the followings.

  • The name of the 4 hosts in the figure must be "controller", "network", "compute", and "compute1".
  • The username of openstack account on every host must be the same. The password of those account must be the same across the hosts as well (but can be different from the username).
  • You should make sure that the time on the controller node is up-to-date before installation
Based on the above configuration and requirements, modify ./install-paramrc.sh file by entering environment variables' values that fit your deployment.
$ vi ./install-paramrc.sh

You may view an example of this file here. After that, run the script below to substitute the parameter values in the script template tar file (OPSInstaller-init.tar). PLEASE RUN EVERY SCRIPT DESCRIBED HERE AS A USER. DO NOT USE SUDO TO RUN THE SCRIPTS!

$ ./exe-config-installer.sh

After running the script, you should see a new directory "OPSInstaller" being created. This directory contains all scripts and configuration files that will later be run on every node to install OpenStack. The details of every script in the "OPSInstaller" can be seen in the

OPSInstaller/scriptmap.html

file. To view this file, you may have to copy the whole "OPSInstaller" directory out from the controller to your PC and use a browser to view the file. You may also take a look at an example of the scriptmap.html file in "documents/OPSInstaller.example" directory. An exampe scriptmap.html file is also available at http://vasabilab.cs.tu.ac.th/presentations/OPSInstaller.example/scriptmap.html.

  1. install OpenStack mitaka with classic open vswitch network

On the controller node.

$ cd $HOME
$ cd openstack-mitaka-installer
$ cd OPSInstaller/installer
$ ./OS-installer-00-1...(please fill in the rest of the name)
$ ./OS-installer-00-2...

The last script will reboot all hosts. You have to login to the controller node again and make sure that every other node is up before continue the installation.

$ cd $HOME
$ cd openstack-mitaka-installer
$ cd OPSInstaller/installer
$ ./OS-installer-01-...
$ ./OS-installer-02-...
$ ./OS-installer-03-...
$ ./OS-installer-04-...
$ ./OS-installer-05-...
$ ./OS-installer-06-...
$ ./OS-installer-07-...
$ ./OS-installer-08-...
(skip ./OS-installer-09-...)
$ ./OS-installer-10-...

2. Install OpenStack mitaka and deploy Distributed Virtual Router (DVR) network

$ cd $HOME
$ cd openstack-mitaka-installer
$ cd OPSInstaller/installer
$ ./OS-installer-00-1...(please fill in the rest of the name)
$ ./OS-installer-00-2...

The last script will reboot all hosts. You have to login to the controller node again and make sure that every other node is up before continue the installation.

$ cd $HOME
$ cd openstack-mitaka-installer
$ cd OPSInstaller/installer
$ ./OS-installer-01-...
$ ./OS-installer-02-...
$ ./OS-installer-03-...
$ ./OS-installer-04-...
$ ./OS-installer-05-...
$ ./OS-installer-06-...
$ ./OS-installer-07-...
$ ./OS-installer-08-...
$ ./OS-installer-09-...
$ ./OS-installer-10-...

2. OpenStack mitaka and OpenSayLight Beryllium Integration

This installation package also contains a set of scripts for OpenStack mitaka and OpenDayLight (ODL) Beryllium integration.
If you want to run it, the scripts assume you already have OpenStack with classic open vswitch network deployed.

However, before the integration you have to delete all instances, routers, and networks from your OpenStack deployment. Make sure the ODL host is running and necessary ODL features are installed. You may consult our OpenStack and OpenDayLight integration blog post or youtube videos in [4] for more details.
When ready, run the following commands.

$ cd $HOME
$ cd openstack-mitaka-installer
$ cd OPSInstaller/installer
$ ./OSODL-ovs-00-...
$ ./OSODL-ovs-01-...
$ ./OSODL-ovs-02-...
$ ./OSODL-ovs-03-...
$ ./OSODL-ovs-04-...
$ ./OSODL-ovs-05-...
$ ./OSODL-ovs-06-...
$ ./OSODL-ovs-07-...

Note: This script is written for educational purpose.

For more information, please consult the following documents:

  1. http://sciencecloud-community.cs.tu.ac.th/
  2. http://vasabilab.cs.tu.ac.th/
  3. http://docs.openstack.org/
  4. OpenStack Mitaka installation with Distributed Virtual Router videos
  5. OpenStack and OpenDayLight integration youtube videos