This post will help you to Install MariaDB & RabbitMq as part of OpenStack Deployment.
If you are interested in learning, Request you to go through the below recommended tutorial.
DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
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.
Install MariaDB & RabbitMq - Openstack Deployment : Part 1
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
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
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
Keep practicing and have fun. Leave your comments if any.
Support Us: Share with your friends and groups.
Stay connected with us on social networking sites, Thank you.
install mariadb, install mariadb for openstack, openstack mariadb, install mariadb openstack, openstack rabbitmq, install rabbitmq for openstack, install rabbitmq openstack
0 Comments