Openstack Deployment to one Server
After struggling to deploy my first openstack installation, I thought I had to share to save time for someone else – here is a simple guide to deploy an openstack installation on one server machine.
Hardware Requirements
- VM or Bare metal Server
- At least 16GB RAM
- At least 100GB Hard disk
- At least 2 Core of Processor
- Linux – Centos 7 preferred
Time
40 Minutes
Get started to your first Openstack Installation
Deploying Openstack – all in one using packstack
$ sudo yum install -y centos-release-openstack-queens
$ sudo yum update -y
$ sudo yum install -y openstack-packstack
$ sudo packstack –allinone
You will likely encounter the error
import pkg_resources
ImportError: No module named pkg_resources
ERROR : No module named pkg_resources
Just run this command
wget https://bootstrap.pypa.io/ez_setup.py -O – | python
This will install the missing python packages
Prepare the environment further more by running the following commands
Networking
$ sudo systemctl disable firewalld
$ sudo systemctl stop firewalld
$ sudo systemctl disable NetworkManager
$ sudo systemctl stop NetworkManager
$ sudo systemctl enable network
$ sudo systemctl start network
Install Openstack Queens
sudo yum install -y centos-release-openstack-queens
Enable the repository
yum-config-manager –enable openstack-queens
Update the repository
$ sudo yum update -y
Install the packstack installer
$ sudo yum install -y openstack-packstack
Finally run the packstack to install the openstack
$ sudo packstack –allinone
Access
https://www.serverip/dashboard
Credentials
Obtain the credentials on file
Open the file /root/ keystonerc_admin
export OS_USERNAME=admin
export OS_PASSWORD=’510102e11a734891′
or
/root/ keystonerc_demo
export OS_USERNAME=demo
export OS_PASSWORD=’8db7145e0df64bd2′
As soon as I hack it on multiple machines in different regions – I will share that simple guide on how to deploy Openstack on Multiple machines (centos 7 / Redhat)
Am also working to deploy Openstack on Ubuntu 16 over MaaS and Juju – Check out for this simple guide later as well.