Mysql-server check fails during installation script on CentOS 7 and SVN 2076



  • During the install script “Checking Packages…mysql-server” fails. yum install mysql-server now installs mariadb-galera-server-5.5. Is it possible the checking script isn’t handling mariadb properly?


  • Senior Developer

    I think Feature Request would be pretty good as I am working on the “next” release, and this may be one that waits for after that release.



  • @Tom Elliott, post: 33483, member: 7271 said:

    THank you for the “patch” and I’ve now added this to svn trunk at 2084. I haven’t tested it, but it is there and should work.

    Thanks for reporting. I hope you understand why I got upset and didn’t mean it directly at one person, but in general, your post just happened to be “the one”.

    Thank you very much, and I understand. I am working to continue testing CentOS 7 support and let you know of any issues. It is not my production environment, so any issues encountered may be addressed at your leisure. Should there be another thread somewhere for CentOS 7 support?


  • Senior Developer

    THank you for the “patch” and I’ve now added this to svn trunk at 2084. I haven’t tested it, but it is there and should work.

    Thanks for reporting. I hope you understand why I got upset and didn’t mean it directly at one person, but in general, your post just happened to be “the one”.



  • Hey guys thank you for all the hard work you are doing on this project. I know CentOS7 is brand new, and I am not expecting the fix to be implemented anytime soon. I called it a bug because it was a bug in what I considered expected functionality. But yes Tom, you are right it is nothing wrong with the current code. I guess you could move this to a feature request then.

    In CentOS7 the repositories default to mariadb-galera-server, instead of just mariadb-server. To implement the proposed change the functions in lib/redhat/functions.sh : installPackages() and confirmPackageInstallation(), both need an additional if statement for mariadb-galera-server.

    installPackages()  ....
    
    if [ $x == "mysql-server" ]
    
                    then
    
                            rpm -q $x >/dev/null 2>&1;
    
                            if [ "$?" != "0" ]
    
                            then
    
                                    x="mariadb-server";
    
                            fi
    
                            rpm -q $x >/dev/null 2>&1;
    
                            if [ "$?" != "0" ]
    
                            then
    
                                    x="mysql-server";
    
                            fi
    
                            rpm -q $x >/dev/null 2>&1;
    
                            if [ "$?" != "0" ]
    
                            then
    
                                    x="mariadb-galera-server";
    
                            fi
    
    fi
    
    
    
    confirmPackageInstallation()
    
    ....
    
    if [ $x == "mysql-server" ]
    
                    then
    
                            rpm -q $x >/dev/null 2>&1;
    
                            if [ "$?" != "0" ]
    
                            then
    
                                    x="mariadb-server";
    
                            fi
    
                            rpm -q $x >/dev/null 2>&1;
    
                            if [ "$?" != "0" ]
    
                            then
    
                                    x="mariadb-galera-server";
    
                            fi
    
    fi
    
    
    


  • This post is deleted!


  • This post is deleted!

  • Senior Developer

    First and foremost.

    CentOS 7.0 is BRAND F-in new.

    As in, after 1.1.2 had been released.

    Why is this a bug???

    It’s not something I coded or faulted in the code.


  • Developer

    Comment or remove the call from the installer script and run it again, if you have in fact installed mysql on your own, it is required!



  • Also it will try installing package mysql-server every time the installation script is run, instead of skipping it. (I installed it after the first failure with yum)


Log in to reply
 

336
Online

38729
Users

10555
Topics

99925
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.