(Ubuntu only) mysql syslog logs are missing on the master node

Bug #1349601 reported by Vladimir Kuklin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Bogdan Dobrelya

Bug Description

deploy an HA environment with Ubuntu. Look into logs on the master node. There are no mysql logs. This needs to be fixed.

Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

This affects Ubuntu only. Centos based environments have logs on master nodes.

Changed in fuel:
assignee: Sergii Golovatiuk (sgolovatiuk) → Bogdan Dobrelya (bogdando)
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

No issues with mysql logs from centos nodes, renaming

summary: - Mysql syslog logs are missing on the master node
+ (Ubuntu only) mysql syslog logs are missing on the master node
description: updated
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

The root cause is conflicting configuration artifacts shipped with mysql5.6 packages.
Once I deleted /etc/mysql/conf.d/{my5.6.cnf,mysqld_safe_syslog.cnf} and /etc/mysql/my.cnf and restarted mysql service, the logs appeared in syslog.
Redirecting to OSCI team, because of the issue is packaging related.

Changed in fuel:
assignee: Bogdan Dobrelya (bogdando) → Fuel OSCI Team (fuel-osci)
Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → Vitaly Parakhin (vparakhin)
Revision history for this message
OSCI Robot (oscirobot) wrote :

Package MySQL-wsrep has been built from changeset: http://gerrit.mirantis.com/20239
DEB Repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.1-stable-20239/ubuntu
You can build an ISO with this package:
make iso EXTRA_DEB_REPOS="http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.1-stable-20239/ubuntu /"

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OSCI Robot (oscirobot) wrote :

Package MySQL-wsrep has been built from changeset: http://gerrit.mirantis.com/20239
DEB Repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.1-stable/ubuntu
You can build an ISO with this package:
make iso EXTRA_DEB_REPOS="http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.1-stable/ubuntu /"

Revision history for this message
Vitaly Parakhin (vparakhin) wrote :

fix is on mirrors

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Reopened due to unfinished fix - etc/mysql/my.cnf must be absent at Ubuntu as well

Changed in fuel:
assignee: Vitaly Parakhin (vparakhin) → Bogdan Dobrelya (bogdando)
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

OSCI team, please make sure there is no /etc/mysql/my.cnf file installed from mysql-common as well:
For now we have:

rgrep 'my.cnf' /var/lib/dpkg/info/mysql*
/var/lib/dpkg/info/mysql-common.conffiles:/etc/mysql/my.cnf
/var/lib/dpkg/info/mysql-common.list:/etc/mysql/my.cnf

dpkg -L mysql-common | grep cnf
/etc/mysql/my.cnf

But according to https://bugs.launchpad.net/fuel/+bug/1349601/comments/3 this file should not be installed from any packages...

Changed in fuel:
assignee: Bogdan Dobrelya (bogdando) → Fuel OSCI Team (fuel-osci)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/114911
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=b5d69c3031257e82ace36f8242422b0cdc7d203f
Submitter: Jenkins
Branch: master

commit b5d69c3031257e82ace36f8242422b0cdc7d203f
Author: Bogdan Dobrelya <email address hidden>
Date: Mon Aug 18 11:52:14 2014 +0300

    Fix conflicting my.cnf for Ubuntu

    In order to enable mysql syslog logging for Ubuntu,
    ensure mysql conf file path is /etc/my.cnf instead
    of /etc/mysql/my.cnf default.

    Closes-bug: #1349601

    Change-Id: I31757e622a412623e5e4624008aaaf9be4280636
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → In Progress
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Ok, the next step - and perhaps the last one - is to make Puppet ensure /etc/mysql/my.cnf will be absent. Looks like we should not do it by changing the mysql-common package.

Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → Bogdan Dobrelya (bogdando)
Revision history for this message
Roman Vyalov (r0mikiam) wrote :

very bad idea delete config in packages . please remove config in puppet manifest

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

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

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

https://review.openstack.org/115282 fixes HA case for Ubuntu mysql syslogging and also allows mysql in simple deployments to be configured in usual for ubuntu manner. But logging to syslog is still broken for simple case.

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

https://bugs.launchpad.net/fuel/+bug/1359205 related bug for simple deployments

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/115282
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=7507eb0b0fe2a673fefdb55f0e4b3c3509245ed8
Submitter: Jenkins
Branch: master

commit 7507eb0b0fe2a673fefdb55f0e4b3c3509245ed8
Author: Bogdan Dobrelya <email address hidden>
Date: Tue Aug 19 16:19:23 2014 +0300

    Ensure /etc/mysql/my.cnf removal

    Additional fix to conflicting mysql config files
    in order to fix mysql syslog logging in Ubuntu.
    For simple deployment (custom_setup_class undef):
    * /etc/mysql/my.conf should be used in Ubuntu
    For HA case for Centos/Ubuntu:
    * /etc/mysql/my.conf should be absent
    * /etc/my.cnf should be used
    (Note that changes are Fuel OSCI packaging specific)

    Closes-bug: #1349601

    Change-Id: I56c1b5ebca2553d341fe0498451075294f3e651f
    Signed-off-by: Bogdan Dobrelya <email address hidden>

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