adfinis / openshift-mariadb-galera

Kubernetes / OpenShift Images for a MariaDB Galera Cluster
GNU General Public License v3.0
37 stars 42 forks source link

When change in yum.repos.d #24

Open shashank-6777 opened 4 years ago

shashank-6777 commented 4 years ago

Hi team,

First of all thanks for this fantastic cluster setup configuration. I want your help am using yours configuration to setup same cluster but MYSQL version should be 5.5 or 5.6 whicg comesup with mariadb 5.5.64/65.

So to do it i have change the yum.repos.d in baseurl. baseurl = http://yum.mariadb.org/5.5.64/centos7-amd64 & create the new image but when i run the cluster from that image facing below error.

====================================================

Running mysql_install_db ...

===============================================

please help me in this case its urgent

hairmare commented 4 years ago

Hi @ShashankNEC

This repo is already quite outdated and probably not ready for production anymore. Most likely it needs an update to work with current versions on MariaDB.

Did you try running the mysql_install_db command with --force like the error suggested?

shashank-6777 commented 4 years ago

Hi @hairmare,

Thanks for the quick response.

I have tried with the --force option, from this the container will comes up but in logs MySQL init process failed. Result not able to use msql

Please suggest me if you have any alternative.

Thanks in advance

hairmare commented 4 years ago

We had one of our engineers look into this and we don't currently believe that the solution provided in this repo is still in a workable state.

If you want to continue using it you should either consider forking it or use an alternative MariaDB deployment method. I haven't done any MySQL/MariaDB work in a while so I'm not really in a situation to recommend anything.

If you go down the route of forking this to maintain it you would probably want to look into refactoring the PetSet into a StatefulSet and update the packages to more modern versions. Nowadays it would most likely also make sense to add a helm chart to help with deploying the solution.