Keep existing data when moving to containerized MariaDB
authorJiri Stransky <jistr@redhat.com>
Fri, 3 Mar 2017 14:00:37 +0000 (15:00 +0100)
committerJiri Stransky <jistr@redhat.com>
Tue, 14 Mar 2017 13:52:55 +0000 (13:52 +0000)
commitcd88f4d8e928daf0676a4a9b6f36d93df7a6aa7c
tree6897e73789a3036e6e522a7b1adbe9b1af30e768
parenta681b985643f62de447039f25944e7c2d2347d28
Keep existing data when moving to containerized MariaDB

We used named Docker volume for MariaDB storage, which meant that when
moving from BM to containerized wit MariaDB, we lost data and
reinitialized the storage from scratch.

With this commit we keep the data by mounting the original data into the
container.

We also need to make sure that file ownership is correct according to
the MariaDB container image used, and that Kolla bootstrap mechanisms
aren't retriggered, as they aren't idempotent.

Change-Id: I1fc955021c6dd83f1a366495dd8c7281fb9e7cc5
docker/services/database/mysql.yaml