Mariadb container reported as unhealthy in non HA scenario

Bug #1718944 reported by Martin André
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Martin Mágr

Bug Description

In non HA case, mariadb check runs `mysql -e 'select 1'` as the mysql user but fails with:

ERROR 1045 (28000): Access denied for user 'mysql'@'localhost' (using password: NO)

We need to read the user/password values from the configuration files and pass them to the command line.

Martin Mágr (mmagr)
tags: added: pike-backport-potential
removed: containers
Changed in tripleo:
importance: Medium → High
assignee: nobody → Martin Mágr (mmagr)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/508504
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3a9cfaa992e92423461d64f84d701336322bdd10
Submitter: Jenkins
Branch: master

commit 3a9cfaa992e92423461d64f84d701336322bdd10
Author: Martin Mágr <email address hidden>
Date: Fri Sep 29 14:07:46 2017 +0200

    Create mysql user for non-ha deployments

    Currently health check for mysql container reports unhealthy container
    because there is no 'mysql' user created. This patch creates the user
    during mysql_bootstrap without any permission, just to allow health
    check to connect to DB and run 'select 1'.

    Change-Id: Iab26da0d30939b219189d4e7beb2a61d456ab7c3
    Closes-Bug: #1718944

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/510550

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/510550
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=48157625981848fae97e24dc01da213ea7e3fb4a
Submitter: Jenkins
Branch: stable/pike

commit 48157625981848fae97e24dc01da213ea7e3fb4a
Author: Martin Mágr <email address hidden>
Date: Fri Sep 29 14:07:46 2017 +0200

    Create mysql user for non-ha deployments

    Currently health check for mysql container reports unhealthy container
    because there is no 'mysql' user created. This patch creates the user
    during mysql_bootstrap without any permission, just to allow health
    check to connect to DB and run 'select 1'.

    Change-Id: Iab26da0d30939b219189d4e7beb2a61d456ab7c3
    Closes-Bug: #1718944
    (cherry picked from commit 3a9cfaa992e92423461d64f84d701336322bdd10)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.2

This issue was fixed in the openstack/tripleo-heat-templates 7.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b1

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b1 development milestone.

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.