grafana fails with python-mysqldb package

Bug #1661646 reported by narasimha18sv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
High
Eduardo Gonzalez

Bug Description

grafana container is failing with below error

TASK [grafana : Creating grafana database] *************************************
fatal: [slcan695 -> slcan695]: FAILED! => {"changed": false, "failed": true, "msg": "the python mysqldb module is required"}

My environment is having Cent OS.

even after adding Mysql-python package to docker container file also this is failing with above message.

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

This issue comes because is ansible executing the mysql command in the host, not in the container.
We use kolla_toolbox container to interact with the database.

affects: kolla → kolla-ansible
Changed in kolla-ansible:
assignee: nobody → Eduardo Gonzalez (egonzalez90)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

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

Changed in kolla-ansible:
status: New → In Progress
Changed in kolla-ansible:
milestone: none → ocata-rc1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/429109
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=7e53d2e74e6afed0b4947819c2c0ccd2aeb53f10
Submitter: Jenkins
Branch: master

commit 7e53d2e74e6afed0b4947819c2c0ccd2aeb53f10
Author: Eduardo Gonzalez <email address hidden>
Date: Fri Feb 3 23:32:04 2017 +0000

    Fix grafana database creation

    Kolla use kolla_toolbox container to interact
    with the database.
    Grafana fails to deploy if mysql-python is not installed
    in the host.

    Change-Id: I033f1828ff027532de9be94aaf7dee6dbeab8fb6
    Closes-Bug: #1661646

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 4.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 4.0.0.0rc1 release candidate.

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.