mariadb service do not be configured the root permission properly

Bug #1545287 reported by Jeffrey Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Jeffrey Zhang

Bug Description

in bootstrap stage, mariadb initial the root permission when the `/var/lib/mysql/mysql.pid` file exist[0]. But at the same time, in the Ansible side, the task will run continually[1] to the start.yml.
In the "Starting mariadb container" task of start.yml file, the bootstrap mariadb container will be destroy and re-create from the image. So the root permission will never be configured in this situation.

The "Waiting for MariaDB service to be ready" should be changed properly.

[0] https://github.com/openstack/kolla/blob/e92b18a8a8c0d7dd3d05ac2b48e469b5b4773215/docker/mariadb/extend_start.sh#L7
[1] https://github.com/openstack/kolla/blob/e92b18a8a8c0d7dd3d05ac2b48e469b5b4773215/ansible/roles/mariadb/tasks/bootstrap.yml#L59
[2] https://github.com/openstack/kolla/blob/e92b18a8a8c0d7dd3d05ac2b48e469b5b4773215/ansible/roles/mariadb/tasks/start.yml#L16

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/279907

Changed in kolla:
status: Confirmed → In Progress
Changed in kolla:
milestone: none → mitaka-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/279907
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=e62995055f7bdf13add8067f374e8d83f4475bc9
Submitter: Jenkins
Branch: master

commit e62995055f7bdf13add8067f374e8d83f4475bc9
Author: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Date: Sat Feb 13 22:10:51 2016 +0800

    Ensuring the Mariadb bootstrap configured properly

    Make sure extend_start.sh file run to completion

    Change-Id: I45f6ab1c7d1b7a21ac92bb5f0e9d82a6c135cb5f
    Closes-Bug: #1545287

Changed in kolla:
status: In Progress → 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.