The goal of the project was to learn how to deploy basic services of IaaS(Infrastructure as a Service) using the Openstack project, an open source cloud computing software, designed for automation.
- Linux Host(Either on Physical or Virtual).
- Edit in file ansible/vars/main.yaml, the variable 'NETWORK_CIDR' to match to your physical network
-
Environment Setup
-
Install git, and clone the repository
sudo apt-get install git git clone https://github.com/ujwalkomarla/Openstack-Ansible-Deployment.git
-
Install VirtualBox
sudo apt-get install -y virtualbox
-
Install Vagrant
sudo apt-get install -y vagrant
-
cd Openstack-Ansible-Deployment && vagrant up
- If you are asked to choose the network interface: Choose the interface facing the internet
- If you face issues, refer item 3 of Notes to configure your network
-
-
Environment Configuration
-
vagrant ssh mgmt
-
cd /vagrant/ansible
-
ansible-playbook openstack.yaml --ask-pass
PW: vagrant
-
Follow on screen instructions to complete some of the operations
-To run command on controller, run
vagrant ssh controller
from Linux host machine-Remember the password used to configure MySQL
-
-
Services Installation
-
Follow on screen instructions to complete some of the operations
CONFIG: Execute ONLY ONCE
VERIFICATION: Can be done as required
-
-
VM Network Interface Description
- Eth0 - NAT, used by vagrant for SSH
- Eth1 - Private_Network : Management purpose of Openstack
- Eth2 - Public_Network
-
Remove unnecessary bridges on your host
- ip link set br100 down
- brctl delbr br10
-
Use bridgeutils to make Vagrant deployment work
- sudo apt-get install brdige_utils
- Edit
/etc/network/interfaces
auto lo iface lo inet loopback auto br0 iface br0 inet dhcp bridge_ports enp0s31f6 bridge_stp off
sudo /etc/init.d/networking restart
-
Faster Vagrant VMs provisioning - Vagrant-Cachier
- https://wiki.debian.org/NetworkConfiguration
- https://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/
- http://www.techonthenet.com/mysql/questions/show_grants.php
- https://ask.openstack.org/en/question/57580/compute-node-error-contacting-glance-server/
- https://ask.openstack.org/en/question/25996/why-is-cinder-trying-to-talk-to-glance-on-my-compute-node/