Install MariaDB & RabbitMq - Openstack Deployment : Part 1

openstack mariadb, openstack database creation, create openstack database, install mariadb openstack, openstack rabbitmq, install rabbitmq message services

Openstack Liberty : Install MariaDB & RabbitMq on CentOS7

In the previous post, we have seen the Openstack Liberty Deployment on single node using packstack utility. As discussed earlier, Openstack consists of many components which are need to be installed to have cloud environment. Refer the link to know more about Openstack Components.

In this session, we will deploy Two node or multi node Openstack Liberty Configuration.

Lab Setup:
Server Names : node1 and node2
OS : CentOS 7.2 - 64 bit.
Enabled Internet Connection.

Prerequisites
1. Make sure each hosts are reachable. I make an entries in hosts file only.
2. Verify the internet connection, bcos we use public repos to install these components.
3. Take a backup or snapshot at different stages to restore in case of failure.
4. Stop firewall to avoid issues during the installations (systemctl stop firewalld ; systemctl disable firewalld).

Stages involved in this deployments are,
1. Enable Repositories on node1 and node2
2. Install Openstack Liberty Packages on node1 and node2.
3. Install and Configure MariaDB(MySQL) Database on node1 and node2.
4. Install and Configure RabbitMQ Message service on node1.
5. Install and Configure keystone for Identity service on node1.
6. Install Glance for Image service on node1.
7. Install Nova Computing on node1 and node2.
8. Install Neutron Networking on node1 and node2.
    8a. Install Openstack Neutron Component on Controller Node
    8b. Install Openstack Neutron Component on Compute Node
9. Install Openstack Horizon for dashboard on node1

Also read more about,
Cloud Computing
Openstack Configurations
Openstack Tutorial Videos

Enable Openstack Liberty Repositories on node1 and node2
On CentOS, the extras repository provides the RPM that enables the OpenStack repository. CentOS includes the extras repository by default, so you can simply install the package to enable the OpenStack repository.
yum install centos-release-openstack-liberty
If you have RHEL, enable additional repositories using the subscription manager:
subscription-manager repos --enable=rhel-7-server-optional-rpms
subscription-manager repos --enable=rhel-7-server-extras-rpms
Upgrade the packages
yum upgrade
Note : If the upgrade process includes a new kernel, reboot the node to activate it.

ALSO WATCH THIS TUTORIAL VIDEO FREE ON OUR YOUTUBE CHANNEL


Install Openstack Liberty Packages on node1 and node2

Install OpenStack Client and Selinux Package to automatically manage security policies for OpenStack services:
yum install python-openstackclient openstack-selinux openstack-utils

Install and Configure MariaDB(MySQL) Database on node1 and node2
[ads-post]
Most of the Openstack services are using SQL database to store information's.
yum -y install mariadb mariadb-server MySQL-python
Append the user=mysql and bind-address=100.73.168.190 for node1 and change the bind-address in the node 2 with the node 2 ip address. (change this ip address on both node as per your management ip of both server) in the configuration file /etc/my.cnf. Replace the Address with your server IP Address.
user=mysql
bind-address=100.73.168.190
Start and enable Mariadb Service to start when the system boots.
systemctl start mariadb
systemctl enable mariadb
Run MySQL Secure Installation
mysql_secure_installation
Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Remove anonymous users? [Y/n] Y
 ... Success!
Remove anonymous users? [Y/n] Y
 ... Success!
Disallow root login remotely? [Y/n] Y
 ... Success!
Remove test database and access to it? [Y/n] Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!
Reload privilege tables now? [Y/n] Y
 ... Success!

Cleaning up...
Thanks for using MariaDB!
Install and Configure RabbitMQ Message service on node1.

OpenStack uses a message queue to coordinate operations and status information among services. OpenStack supports several message queue services including RabbitMQ, Qpid, and ZeroMQ.
[root@node1 ~]# yum -y install rabbitmq-server
Start and enable RabbitMQ Service to start when the system boots.
[root@node1 ~]# systemctl start rabbitmq-server
[root@node1 ~]# systemctl enable rabbitmq-server
Add the Openstack user
[root@node1 ~]# rabbitmqctl add_user openstack redhat
Replace "redhat" with your password.

Allow read, write and Permit access to the user "openstack"
rabbitmqctl set_permissions openstack ".*" ".*" ".*"

We are done with the below topics involved in this deployment. Refer the links,
1. Enable Repositories on node1 and node2
2. Install Openstack Liberty Packages on node1 and node2.
3. Install and Configure MariaDB(MySQL) Database on node1 and node2.
4. Install and Configure RabbitMQ Message service on node1.
5. Install and Configure keystone for Identity service on node1.
6. Install Glance for Image service on node1.
7. Install Nova Computing on node1 and node2.
8. Install Neutron Networking on node1 and node2.
    8a. Install Openstack Neutron Component on Controller Node
    8b. Install Openstack Neutron Component on Compute Node
9. Install Openstack Horizon for dashboard on node1

Also download 100% free eBooks related to OpenStack Cloud.
1. A Brief Look at OpenStack
2. OpenStack Cloud Computing Cookbook
3. Concepts of Cloud Computing in simple terms

More topics will be added soon. stay connected with us on social networking sites and Subscribe our YouTube channel for more updates.
Youtube Channel : https://www.youtube.com/learnitguide
Facebook : http://www.facebook.com/learnitguide
Twitter : http://www.twitter.com/learnitguide
Pinterest : http://www.pinterest.com/learnitguide
RSS : http://feeds.feedburner.com/learnitguide
February 11, 2016

Post a Comment

[disqus][facebook][blogger]

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget