Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10240

MySQL: Need a prerequisite

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mysql
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 10.2.1
      Puppet Version: 6.1.11
      OS Name/Version: RHEL 7

      Describe your issue in as much detail as possible...

      Desired Behavior:

      Work correctly with RHEL 7 SCL's MariaDB. In this case it's 10.3.

      Actual Behavior:

      It fails on the first puppet run because the /etc/opt/rh/rh-mariadb103 directory doesn't exist. It's provided by the rh-mariadb103-runtime-3.3-5.el7 package, which is installed with the postgresql rpm.

      Error:

      Error: Cannot create /etc/opt/rh/rh-mariadb103/my.cnf.d; parent directory /etc/opt/rh/rh-mariadb103 does not exist
      Error: /Stage[main]/Mysql::Server::Config/File[/etc/opt/rh/rh-mariadb103/my.cnf.d]/ensure: change from 'absent' to 'directory' failed: Cannot create /etc/opt/rh/rh-mariadb103/my.cnf.d; parent directory /etc/opt/rh/rh-mariadb103 does not exist

      I think it could be fixed simply by making the server package installation a prerequisite to the creation fof the mysql-config-dir.

       

      Relevant Puppet configuration (hiera). This is the minimal config that I could create to make MariaDB install and start. I tried to mimic what is in the stock RHEL SCL package.

      mysql::server::manage_config_file: true
      mysql::server::config_file: /etc/opt/rh/rh-mariadb103/my.cnf.d/server.cnf
      mysql::server::purge_conf_dir: true
      mysql::client::package_name: rh-mariadb103-syspaths
      mysql::server::package_name: rh-mariadb103-mariadb-server-syspaths

      mysql::server::override_options :
        'mysqld' :
          basedir : /opt/rh/rh-mariadb103/root/usr
          }}{{datadir : /var/opt/rh/rh-mariadb103/lib/mysql
          }}{{ log_error : /var/opt/rh/rh-mariadb103/log/mariadb/mariadb.log
          }}{{ pid-file : /run/rh-mariadb103-mariadb/mariadb.pid
          }}{{ socket : /var/lib/mysql/mysql.sock
          }}{{ 'mysqld_safe' :
          }}{{ log-error : /var/opt/rh/rh-mariadb103/log/mariadb/mariadb.log

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ubellavance Ugo Bellavance
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support