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

mysql module does not ensure that log directory exists for case where package does note make it.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mysql
    • Labels:
    • Environment:

      CentOS 7, MariaDB 10.1.10, mysql module 3.6.2, puppet 3.8.6

    • Template:
      MODULES Bug Template
    • Epic Link:
    • Team:
      Modules
    • CS Priority:
      Reviewed

      Description

      When installing MariaDB 10.1.10 on CentOS 7 it does not create the:

      /var/log/mariadb

      directory required by

      /var/log/mariadb/mariadb.log

      Creating the following error:

      Error: Could not set 'present' on ensure: No such file or directory - /var/log/mariadb/mariadb.log at 26:/etc/puppet/environments/slurm/modules/mysql/manifests/server/service.pp
      Error: Could not set 'present' on ensure: No such file or directory - /var/log/mariadb/mariadb.log at 26:/etc/puppet/environments/slurm/modules/mysql/manifests/server/service.pp
      Wrapped exception:
      No such file or directory - /var/log/mariadb/mariadb.log
      Error: /Stage[main]/Mysql::Server::Service/File[/var/log/mariadb/mariadb.log]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /var/log/mariadb/mariadb.log at 26:/etc/puppet/environments/slurm/modules/mysql/manifests/server/service.pp

      The error should be as simple to fix as having puppet make sure this default log path exists. The same should be ensured for /var/run/mariadb. This appears to not be a problem with the default version of mariadb on CentOS 7, only with Mariadb if you are using a newer version.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            pedmon Paul Edmon
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified