How to Install openstack ocata on Centos 7

How to Install openstack ocata on Centos 7

vijay / June 28, 2017

Openstack is a private cloud solution and is massive popular for now. Here we are giving you idea about how can you install the new openstack ocata on centos 7 box.

I am using a centos 7 minimal instaalation for this.

prepare server :

Set hostname:

hostnamectl set-hostname “openstack.crazytechindia.com

[root@openstack ~]# systemctl stop firewalld
[root@openstack ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@openstack ~]#
[root@openstack ~]# systemctl stop NetworkManager
[root@openstack ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
[root@openstack ~]#

Now enable rdo repository and install packstack

[root@openstack ~]# yum update -y
[root@openstack ~]# yum install -y https://www.rdoproject.org/repos/rdo-release.rpm

[root@openstack ~]# yum install -y openstack-packstack

Generate the answer file using below command.

[root@openstack ~]# packstack –gen-answer-file=/root/answer.txt
Packstack changed given value to required value /root/.ssh/id_rsa.pub

Edit the answer file “/root/answer.txt” , set the following parameters and leave rest of parameters as it is only to edit the SSL values as given after

# NTP Server
CONFIG_NTP_SERVERS=<NTP_Server_IP>

# Disable Demo Version
CONFIG_PROVISION_DEMO=n

# Set KeyStone Admin Password or Admin user Password
CONFIG_KEYSTONE_ADMIN_PW=<password>

# Config Horizon over SSL
CONFIG_HORIZON_SSL=y

# Disable Nagios
CONFIG_NAGIOS_INSTALL=n

generate self signed SSL

Create Self-signed Certs with private keys for below. store the certs @/etc/pki/tls/certs/ and private key @ /etc/pki/tls/private/

selfcert.crt/selfcert.key

ssl_vnc.crt/ssl_vnc.key

ssl_dashboard.crt/ssl_dashboard.key

update the answer file with these locations

CONFIG_SSL_CACERT_FILE=/etc/pki/tls/certs/selfcert.crt

CONFIG_SSL_CACERT_KEY_FILE=/etc/pki/tls/private/selfkey.key

CONFIG_VNC_SSL_CERT=/etc/pki/tls/certs/ssl_vnc.crt

CONFIG_VNC_SSL_KEY=/etc/pki/tls/private/ssl_vnc.key

CONFIG_HORIZON_SSL_CERT=/etc/pki/tls/certs/ssl_dashboard.crt

CONFIG_HORIZON_SSL_KEY=/etc/pki/tls/private/ssl_dashboard.key

CONFIG_HORIZON_SSL_CACERT=/etc/pki/tls/certs/selfcert.crt

Use below command to generate certs and keys for all mentioned above openssl req -x509 -sha256 -newkey rsa:2048 -keyout /etc/pki/tls/private/selfkey.key -out /etc/pki/tls/certs/selfcert.crt -days 365 -nodes

now start installation

[root@openstack ~]# packstack –answer-file /root/answer.txt

After the installation a new interface “br-ex” will be created and assign the IP addess of eth0 or enp0s3 to br-ex

Now you can access the horizon dashboard

.

Advantages of Crazy Tech India NGINX VPS

Build a super fast website on super fast web server, Nginx fast cgi caching,and pagespeed enabled. KVM Virtualized VPS dedicated resource gauranteed, Free monitoring. Starts INR 749/M

@ 2017 Crazy Tech India -Web Hosting company