INSTALLING PRIVATE CLOUD(OPENSTACK) ON TOP OF PUBLIC CLOUD(GCP)

INSTALLING PRIVATE CLOUD(OPENSTACK) ON TOP OF PUBLIC CLOUD(GCP)

There are so many public cloud platforms but in Public cloud we cant do much customization


Here I'm going to install openstack on top of public cloud .and i'm using google cloud plateform here.

Here for installation i m going to use community resourses instead of RHELOS or any other provider . so lets start:

First of all launch an instance on cloud having atleast 8 GB and 40 GB Storage. Also attach an key for ssh login and also a security group allowing https and ssh .

I m using centOS 7 as host os .

No alt text provided for this image

Then Login to the instance via ssh. And follow commands below.

 yum list | grep release | grep openstacK

this Command will show all the releases software in the os. release softwares automatically configure yum for you .

No alt text provided for this image

then install any of them . im using queens releases.

yum install centos-release-openstack-queens.noarch 
yum install openstack-packstack vim -y

now change SElinux setting:

setenforce 0
vim /etc/selinux/config
No alt text provided for this image

After this , make your host ip static because there are some services which are binded to internal ip. For this we need to collect IP, NETMASK, DNS IP , GATEWAY . So that we can fix it.

ifconfig                   # IP and NETMASK
route -n                   #GATEWAY
cat   /etc/resolv.conf     #dns name

now open the following file: and do the changes:172.31.43.38 255.255.240.0 172.31.32.1 172.31.0.2 dns


cd /etc/sysconfig/network-scripts/ 
vim  ifcfg-eth0
No alt text provided for this image

now open this file and make changes :

this file is for ssh login config:

vim /etc/ssh/sshd_config

do the changes:

Port 22 & PermitRootLogin yes & PubkeyAuthentication yes & PasswordAuthentication yes & PermitEmptyPasswords yes

Now start sshd service after making changes . and stop NetworkManager service otherwise openstack wont work:

systemctl restart sshd
systemctl enable sshd
systemctl stop NetworkManager
systemctl disable NetworkManager

now all settings are done . generate file using the following command:

packstack --gen-answer-file=a.txt
vim a.txt

this will generate a file named a.txt for you . you can open and here you can configure installation .

No alt text provided for this image

after making changes in the file , follow next command.

packstack --answer-file=a.txt

if the installation is completed then congrats . or you may see the following error in some cases.

No alt text provided for this image

solution : this issue may be because of compatibility issue .

yum downgrade leatherman

now again try packstack answer cmd . it will work .

No alt text provided for this image


after installation, do the following step to get the openstack dashboard . go to file and add your public ip in serveraliases for browsing via public ip.

 vim  /etc/httpd/conf.d/15-horizon_vhost.conf
No alt text provided for this image


now restart httpd service.

 systemctl restart  httpd
 systemctl enable  httpd

Result:

No alt text provided for this image


To view or add a comment, sign in

More articles by Akanksha Gupta

Others also viewed

Explore content categories