Blame SOURCES/sos-bz1210906-mariadb-mysql-add-log.patch

86e75a
From f8ab86cbd2302812cd9160bec4478cb4f84e1442 Mon Sep 17 00:00:00 2001
86e75a
From: Shane Bradley <sbradley@redhat.com>
86e75a
Date: Mon, 27 Apr 2015 10:28:34 -0400
86e75a
Subject: [PATCH] [mysql] Collect log file
86e75a
86e75a
When MariaDB is run under Pacemaker an OCF resource agent is used
86e75a
to start and stop the database. This configuration also overrides
86e75a
the log paths used for the database. In particular the mysqld.log
86e75a
is present at '/var/log/mysqld.log'.
86e75a
86e75a
Collect both paths as we do not currently detect whether we are
86e75a
running with an OCF agent or stand-alone.
86e75a
86e75a
Fixes: #554
86e75a
86e75a
Signed-off-by: Shane Bradley <sbradley@redhat.com>
86e75a
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
86e75a
---
86e75a
 sos/plugins/mysql.py | 2 ++
86e75a
 1 file changed, 2 insertions(+)
86e75a
86e75a
diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py
86e75a
index 8dba204..aa8e9b9 100644
86e75a
--- a/sos/plugins/mysql.py
86e75a
+++ b/sos/plugins/mysql.py
86e75a
@@ -37,6 +37,8 @@ class Mysql(Plugin):
86e75a
 
86e75a
         self.add_copy_spec([
86e75a
             self.mysql_cnf,
86e75a
+            # Required for MariaDB under pacemaker (MariaDB-Galera)
86e75a
+            "/var/log/mysqld.log",
86e75a
             "/var/log/mysql/mysqld.log",
86e75a
             "/var/log/mariadb/mariadb.log",
86e75a
         ])
86e75a
-- 
86e75a
1.8.3.1
86e75a