Bug 1134328

Summary: specifying basedir makes mariadb-galera fail to start
Product: [Fedora] Fedora Reporter: Lukas Bezdicka <lbezdick>
Component: mariadb-galeraAssignee: Ryan O'Hara <rohara>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, hhorak, lars, rmeggins, rohara
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mariadb-galera-5.5.39-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-19 10:08:53 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: 1115619, 1129760, 1139384, 1139386    
Attachments:
Description Flags
add mariadb-galera searchdir to mysql_install_db none

Description Lukas Bezdicka 2014-08-27 10:05:55 UTC
Created attachment 931372 [details]
add mariadb-galera searchdir to mysql_install_db

Description of problem:
config option basedir=/usr causes mariadb to fail to start.

Version-Release number of selected component (if applicable):
all mariadb-galera packages

How reproducible:
always

Steps to Reproduce:
1. add [mysqld] basedir=/usr option to server.cnf
2. restart mariadb
3. fail

Actual results:
mariadb tries to search /usr/share/mysql for startup sqls, this fails.

Expected results:
It should search in /usr/share/mariadb-galera.

Additional info:
see attached patch

Comment 1 Ryan O'Hara 2014-08-27 15:48:52 UTC
This looks like the same problem we fixed in RHOS.

https://bugzilla.redhat.com/show_bug.cgi?id=1109306

Comment 2 Lukas Bezdicka 2014-08-27 15:54:33 UTC
Could you please apply fixes on F21 F20 and EL7 packages?

Comment 3 Ryan O'Hara 2014-09-03 14:05:15 UTC
Packages build. Submitting update for f20/f21 now. The epel7 branch was retired due to conflicts.

Comment 4 Fedora Update System 2014-09-03 14:08:01 UTC
mariadb-galera-5.5.39-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mariadb-galera-5.5.39-2.fc21

Comment 5 Fedora Update System 2014-09-03 14:08:09 UTC
mariadb-galera-5.5.39-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mariadb-galera-5.5.39-2.fc20

Comment 6 Alan Pevec 2014-09-04 10:35:20 UTC
(In reply to Ryan O'Hara from comment #3)
> The epel7 branch was retired due to conflicts.

I've rebuilt Fedora SRPMs in RDO Coprs:

https://copr.fedoraproject.org/coprs/jruzicka/rdo-icehouse-epel-7/build/30725/
https://copr.fedoraproject.org/coprs/jruzicka/rdo-juno-epel-7/build/30726/

Comment 7 Ryan O'Hara 2014-09-04 15:25:53 UTC
(In reply to Alan Pevec from comment #6)
> (In reply to Ryan O'Hara from comment #3)
> > The epel7 branch was retired due to conflicts.
> 
> I've rebuilt Fedora SRPMs in RDO Coprs:
> 
> https://copr.fedoraproject.org/coprs/jruzicka/rdo-icehouse-epel-7/build/
> 30725/
> https://copr.fedoraproject.org/coprs/jruzicka/rdo-juno-epel-7/build/30726/

Thanks, Alan. I suggest we continue to use SRPMs from the rhos branches until we've moved off of RHEL6. Since we don't have a branches for el6/el7 in Fedora, it is a bit of a pain to manage these. When we only need to build for rhel7, we should be able to use Fedora SRPMs in copr. I suspect when we get to F22, though, we'll move to mariadb 10.x and that could be complicated.

Comment 8 Alan Pevec 2014-09-05 16:58:19 UTC
> I suggest we continue to use SRPMs from the rhos branches
> until we've moved off of RHEL6.

ok, here's rebuild for RDO Icehouse el6
https://copr.fedoraproject.org/coprs/jruzicka/rdo-icehouse-epel-6/build/30778/

But for RDO Icehouse el7 we could keep rebuilding 5.5 from F21 ?

> When we only need to build for rhel7, we should be able to use Fedora SRPMs
> in copr. I suspect when we get to F22, though, we'll move to mariadb 10.x
> and that could be complicated.

What are the issues with 10.x ?
RDO Juno is el7 only and I suggest we move to 10.x there to shake out issues early.

Comment 9 Ryan O'Hara 2014-09-05 17:08:15 UTC
(In reply to Alan Pevec from comment #8)
> > I suggest we continue to use SRPMs from the rhos branches
> > until we've moved off of RHEL6.
> 
> ok, here's rebuild for RDO Icehouse el6
> https://copr.fedoraproject.org/coprs/jruzicka/rdo-icehouse-epel-6/build/
> 30778/
> 
> But for RDO Icehouse el7 we could keep rebuilding 5.5 from F21 ?

Yes.

> > When we only need to build for rhel7, we should be able to use Fedora SRPMs
> > in copr. I suspect when we get to F22, though, we'll move to mariadb 10.x
> > and that could be complicated.
> 
> What are the issues with 10.x ?

I don't know. From my very basic testing, it works.

> RDO Juno is el7 only and I suggest we move to 10.x there to shake out issues
> early.

MariaDB 10.x won't be in Fedora until F22, at least that is my understanding.

Comment 10 Fedora Update System 2014-09-06 01:02:25 UTC
Package mariadb-galera-5.5.39-2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mariadb-galera-5.5.39-2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10250/mariadb-galera-5.5.39-2.fc21
then log in and leave karma (feedback).

Comment 11 Lars Kellogg-Stedman 2014-09-08 17:12:21 UTC
*** Bug 1139338 has been marked as a duplicate of this bug. ***

Comment 12 Ryan O'Hara 2014-09-08 20:08:55 UTC
*** Bug 1139382 has been marked as a duplicate of this bug. ***

Comment 13 Ryan O'Hara 2014-09-08 20:09:49 UTC
*** Bug 1139386 has been marked as a duplicate of this bug. ***

Comment 14 Ryan O'Hara 2014-09-08 20:10:45 UTC
*** Bug 1139384 has been marked as a duplicate of this bug. ***

Comment 15 Fedora Update System 2014-09-19 10:08:53 UTC
mariadb-galera-5.5.39-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2014-09-23 04:38:05 UTC
mariadb-galera-5.5.39-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.