galera log dir is incorrect

Bug #1486955 reported by Andy McCrae
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
High
Andy McCrae
Kilo
Fix Released
High
Jesse Pretorius
Trunk
Fix Released
High
Andy McCrae

Bug Description

Galera logs are stored in /var/log/mysql_logs however the mounted directory is /var/log/galera (which is empty).

Since the log directory is linked to the service_name which is galera we'd need to adjust this so that a specific directory can be used rather than "service_name".

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

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

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (master)

Reviewed: https://review.openstack.org/215081
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=f77cc7a861117b5fe1a0993bd848b26cd47a385a
Submitter: Jenkins
Branch: master

commit f77cc7a861117b5fe1a0993bd848b26cd47a385a
Author: Andy McCrae <email address hidden>
Date: Thu Aug 20 12:14:35 2015 +0100

    Allow a log dir that isn't the "service_name"

    Galera logs by default to /var/log/mysql_logs these logs are being
    ignored and not mounted properly on the host server, because the
    service_name that is used to mount the log directory is "galera" and not
    "mysql_logs".

    This patch adds an option to set the log_directory specifically inside
    the env.d yml files, but defaults to "service_name" when the
    log_directory option isn't set. This will mean functionality remains
    unchanged for all services.

    Additionally, the log_directory has changed to "mysql_logs" for galera
    containers, to resolve the galera log issue.

    Change-Id: I18400248da455156dbba31b9c2ff254b58c51673
    Closes-Bug: #1486955

Changed in openstack-ansible:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (kilo)

Reviewed: https://review.openstack.org/215602
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=5bd6ef9ba5cc2f23507d353c2a4fedafa3b50f91
Submitter: Jenkins
Branch: kilo

commit 5bd6ef9ba5cc2f23507d353c2a4fedafa3b50f91
Author: Andy McCrae <email address hidden>
Date: Thu Aug 20 12:14:35 2015 +0100

    Allow a log dir that isn't the "service_name"

    Galera logs by default to /var/log/mysql_logs these logs are being
    ignored and not mounted properly on the host server, because the
    service_name that is used to mount the log directory is "galera" and not
    "mysql_logs".

    This patch adds an option to set the log_directory specifically inside
    the env.d yml files, but defaults to "service_name" when the
    log_directory option isn't set. This will mean functionality remains
    unchanged for all services.

    Additionally, the log_directory has changed to "mysql_logs" for galera
    containers, to resolve the galera log issue.

    Change-Id: I18400248da455156dbba31b9c2ff254b58c51673
    Closes-Bug: #1486955
    (cherry picked from commit f77cc7a861117b5fe1a0993bd848b26cd47a385a)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.11

This issue was fixed in the openstack/openstack-ansible 11.2.11 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 11.2.12

This issue was fixed in the openstack/openstack-ansible 11.2.12 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.14

This issue was fixed in the openstack/openstack-ansible 11.2.14 release.

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.