Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1546083

Summary: galera resource agent cannot bootstrap cluster with mysql 10.1.21+
Product: Red Hat Enterprise Linux 7 Reporter: Damien Ciabrini <dciabrin>
Component: resource-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: Ofer Blaut <oblaut>
Severity: medium Docs Contact:
Priority: high    
Version: 7.4CC: agk, aherr, cfeist, cluster-maint, fdinitto, lmiksik, mkrcmari
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 7.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: resource-agents-3.9.5-122.el7 Doc Type: If docs needed, set a value
Doc Text:
Previously, the MariaDB database server version 10.1.21 and later was unable to start on Galera clusters. This happened because the database did not have write permissions to its temporary log file. With this update, the Galera resource agent now generates a log file that is writable by the user configured to run the database. As a result, the described problem no longer occurs.
Story Points: ---
Clone Of:
: 1547142 (view as bug list) Environment:
Last Closed: 2018-04-10 12:11:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1547142    

Description Damien Ciabrini 2018-02-16 09:50:48 UTC
Description of problem:
In RDO upstream, we deploy OpenStack clouds with mariadb 10.1.x.

Since MariaDB 10.1.21 [1], mysqld_safe relies on a helper subprocess to write into log files. This new logging mechanism expects log file to be writable by the user configured to run mysqld.

When the galera resource agent attempts to bootstrap the galera cluster, it requests mysqld_safe to output replication information into a temporary file   
 own by root. This does not work anymore because mysql doesn't have rights to write to that file.

[1] https://github.com/MariaDB/server/commit/8fcdd6b0ecbb966f4479856efe93a963a7a422f7


Version-Release number of selected component (if applicable):
resource-agents-3.9.5-105.el7_4.3.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install mariadb 10.1.30 from RDO
2. Create a galera resource in pacemaker

Actual results:
mysql servers can't be started because the resource agent doesn't get the replication information out of mysqld_safe.

Expected results:
mysql servers to be started

Additional info:

Comment 7 errata-xmlrpc 2018-04-10 12:11:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0757