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

puppet-mysql : /var/log/mariadb and /var/run/mariadb not created on RHEL 7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mysql
    • Labels:
    • Environment:
      • RHEL 7.5
      • Puppet v.5.5.1.
    • Template:
      MODULES Bug Template
    • Epic Link:
    • Team:
      Modules
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

       

      Declaring the class myql::server gives us the following error:

       

      Error: Could not set 'present' on ensure: No such file or
      directory @ rb_sysopen - /var/log/mariadb/mariadb.log (file:
      /etc/puppetlabs/code/environments/INGE_23_ocs_inventory/modules/mysql/manifests/server/installdb.pp,
      line: 21)
       
      Error: Could not set 'present' on ensure: No such file or
      directory @ rb_sysopen - /var/log/mariadb/mariadb.log (file:
      /etc/puppetlabs/code/environments/INGE_23_ocs_inventory/modules/mysql/manifests/server/installdb.pp,
      line: 21)
       
      Wrapped exception:
       
      No such file or directory @ rb_sysopen -
      /var/log/mariadb/mariadb.log
       
      Error:
      /Stage[main]/Mysql::Server::Installdb/File[/var/log/mariadb/mariadb.log]/ensure:
      change from 'absent' to 'present' failed: Could not set 'present' on ensure: No
      such file or directory @ rb_sysopen - /var/log/mariadb/mariadb.log (file:
      /etc/puppetlabs/code/environments/INGE_23_ocs_inventory/modules/mysql/manifests/server/installdb.pp,
      line: 21)
       
      Notice: /Stage[main]/Mysql::Server::Service/Service[mysqld]:
      Dependency File[/var/log/mariadb/mariadb.log] has failures: true
       
      Warning: /Stage[main]/Mysql::Server::Service/Service[mysqld]:
      Skipping because of failed dependencies
      

      If we run in debug mode, we get: 

       

      Debug:
      /Stage[main]/Mysql::Server::Installdb/File[/var/log/mariadb/mariadb.log]/require:
      require to Mysql_datadir[/var/lib/mysql]
      

      Actually, the directory /var/log/mariadb is never created.

       

      If I create it manually, it works until the next problem: mariadb can't start because /var/run/mariadb is not created so the PID file can't be written

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ryayon Rudy YAYON
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support