Add support to mariadb on CentOS7 and RHEL7

Registered by Yi Ming Yin on 2015-02-05

Starting from RHEL7 and CentOS7, mariadb has been adopted as default database server in replace of mysql.

In order to support mariadb in Openstack configuration, following updates are required:

1. Pull in supermarket cookbook mariadb https://github.com/sinfomicien/mariadb in openstack-ops-database project
2. Add two similar recipes as we did for mysql in openstack-ops-database
   - recipes/mariadb-client.rb
   - recipes/mariadb-server.rb
3. Add a new database service type as ‘mariadb’ into openstack-common
Most of the logic for this db service type can be copied from mysql, even the mysql-chef_gem can be also used to manipulating mariadb.

Open discussion here: whether we need to add mariadb support to the 3rd party database cookbook (https://github.com/opscode-cookbooks/database) for supporting mariadb in openstack?

Pros:
a. Keep consistent with how we support mysql in openstack-common/openstack-ops-database
b. Keep updated if mariadb database manipulation methods updated

Cons:
a. database cookbook got big update recently to version 3.0.0. It introduced changes to mysql database manipulation libraries. Existing code in openstack-common and openstack-ops-database needs to be re-wrote as well.
b. Current database code in version 2.3.0 can be reused to manipulate mariadb as well. The only change here is to include mariadb::client recipe instead of including the mysql::client.

Blueprint information

Status:
Complete
Approver:
Mark Vanderwiel
Priority:
Medium
Drafter:
Yi Ming Yin
Direction:
Approved
Assignee:
Yi Ming Yin
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon kilo-rc1
Started by
JJ Asghar on 2015-03-24
Completed by
Mark Vanderwiel on 2015-04-29

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp-mariadb-support,n,z

Addressed by: https://review.openstack.org/155220
    Add mariadb database support to openstack-common

Addressed by: https://review.openstack.org/155222
    Add mariadb database configuration support

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.