mariadb+galera doesn't work multinode

Bug #1489537 reported by Steven Dake
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Steven Dake

Bug Description

mariadb container fails on multinode because the bootstrapping node creates databases owned by root which the mariadb process cannot access since it drops its own privileges to run as the mysql user. The databases on the bootstrap node need to be created as the mysql user.

Further the directory /var/lib/mysql is imported into the data container as owned by root. It should be owned by mariadb instead. We have a chmod in there to set the empty directory /var/lib/mysql to mysql, but it only runs on the bootstrap nodes, not the the nodes in the cluster so /var/lib/mysql isnt writeable on the slave nodes.

Note ubuntu mariadb may not drop the process owner to mysql resulting in a difference in behavior on ubuntu vs centos.

Full analysis coming in an update to this bug.

Steven Dake (sdake)
Changed in kolla:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Steven Dake (sdake)
milestone: none → liberty-3
Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/218982
Committed: https://git.openstack.org/cgit/stackforge/kolla/commit/?id=3f1a3c386a6ad10fb1965583159f1a15f19200e4
Submitter: Jenkins
Branch: master

commit 3f1a3c386a6ad10fb1965583159f1a15f19200e4
Author: Sam Yaple <email address hidden>
Date: Mon Aug 31 18:39:00 2015 +0000

    Fix mysql permissions

    Closes-Bug: #1489537
    Change-Id: I6544398f8cebe2a0d1bec6db2a75a9f8651f5d6f

Changed in kolla:
status: In Progress → Fix Committed
Sam Yaple (s8m)
Changed in kolla:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.