Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Production Ready OpenStack - Recipes for Successful Environments

You're reading from   Production Ready OpenStack - Recipes for Successful Environments Production Ready OpenStack - Recipes for Successful Environments

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher Packt
ISBN-13 9781783986903
Length 210 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Arthur Berezin Arthur Berezin
Author Profile Icon Arthur Berezin
Arthur Berezin
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction to OpenStack and its Deployment Using Packages FREE CHAPTER 2. Deploying OpenStack Using Staypuft OpenStack Installer 3. Deploying Highly Available OpenStack 4. Keystone Identity Service 5. Glance Image Service 6. Cinder Block Storage Service 7. Neutron Networking Service 8. Nova-Compute Service 9. Horizon Dashboard Service Index

Installing MariaDB database

Most OpenStack projects and their components keep their persistent data and objects' status in a database. MySQL and MariaDB are the most used and tested databases with OpenStack. In our case, and in the most commonly deployed layout, controller-Neutron-compute, the database is installed on the controller node.

Run the following commands on the controller node!

How to do it...

Proceed with the following steps:

  1. Install MaridaDB packages as follows:
    [root@controller ~]# yum install mariadb-galera-server
    

    Yum might deploy additional packages after resolving MariaDB's dependencies. A successful installation should output as follows:

    Installed:
      mariadb-galera-server.x86_64 1:5.5.37-7.el7ost
    
    Dependency Installed:
      mariadb.x86_64 1:5.5.37-1.el7_0
      mariadb-galera-common.x86_64 1:5.5.37-7.el7ost
      mariadb-libs.x86_64 1:5.5.37-1.el7_0
      perl-DBD-MySQL.x86_64 0:4.023-5.el7
    Complete!
  2. Start MariaDB database service using systemctl command as a root:
    [root@controller ~]# systemctl start mariadb.service
    

    If no output is returned, this means the command is completed successfully.

  3. Enable it, so it starts automatically after reboot:
    [root@controller ~]# systemctl enable mariadb.service
    

    MariaDB maintains its own user accounts and passwords; root is the default administrative user name account that MariaDB uses. We should change the default password for the root account as keeping the default password is a major security treat.

  4. Change the database root password as follows, where new_password is the password we want to set:
    [root@controller ~]# mysqladmin -u root password new_password
    

    Keep this in the passwords' list; we will need to create databases for the services we will deploy in the following parts of the chapter.

There's more...

Almost all components require access to the database; hence, we should keep port 3306 open for new connections on the controller node:

[root@controller ~]# firewall-cmd --add-port=3306/tcp --permanent
You have been reading a chapter from
Production Ready OpenStack - Recipes for Successful Environments
Published in: Oct 2015
Publisher: Packt
ISBN-13: 9781783986903
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image