MariaDB: create clustercheck user at container bootstrap
authorDamien Ciabrini <dciabrin@redhat.com>
Fri, 28 Jul 2017 16:13:53 +0000 (12:13 -0400)
committerDamien Ciabrini <dciabrin@redhat.com>
Mon, 31 Jul 2017 16:37:36 +0000 (12:37 -0400)
commit7968f37f6e65ed542340437f23b6c267b8b1f2ce
treea10dd1c49bf7ae27517a89c6f1ebd5cc9d550d0e
parent19e89d8d6e2c39c4b98edfba33613607e28e38ee
MariaDB: create clustercheck user at container bootstrap

In HA overclouds, the helper script clustercheck is called by HAProxy to poll
the state of the galera cluster. Make sure that a dedicated clustercheck user
is created at deployment, like it is currently done in Ocata.

The creation of the clustercheck user happens on all controller nodes, right
after the database creation. This way, it does not need to wait for the galera
cluster to be up and running.

Partial-Bug: #1707683
Change-Id: If8e0b3f9e4f317fde5328e71115aab87a5fa655f
docker/services/pacemaker/database/mysql.yaml