puppetlabs/puppetlabs-mysql

Module fails when installing MariaDB Enterprise version 10.6 (and possibly other versions)

bschonec opened this issue · 1 comments

Describe the Bug

Maridb fails to start because /var/log/mariadb directory doesn't exist.

Expected Behavior

A very basic Mariadb server installation should at least start.

Steps to Reproduce

Steps to reproduce the behavior:

With yum repositories pointing to:

`[mariadb-es-main]
name=MariaDB Enterprise Server
baseurl=https://dlm.mariadb.com/repo/HIDDEN/mariadb-enterprise-server/10.6/rpm/rhel/8/x86_64
gpgkey=https://supplychain.mariadb.com/MariaDB-Enterprise-GPG-KEY
gpgcheck=1
enabled=1
module_hotfixes=1

[mariadb-enterprise-tools]
name=MariaDB Enterprise Tools
baseurl=https://dlm.mariadb.com/repo/HIDDEN/enterprise-tools/latest/rpm/rhel/8/x86_64
gpgkey=https://supplychain.mariadb.com/MariaDB-Enterprise-GPG-KEY
gpgcheck=1
enabled=1
module_hotfixes=1

[mariadb-maxscale]
name=MariaDB MaxScale
baseurl=https://dlm.mariadb.com/repo/HIDDEN/maxscale/latest/yum/rhel/8/x86_64
gpgkey=https://supplychain.mariadb.com/MariaDB-MaxScale-GPG-KEY
gpgcheck=1
enabled=1

[mariadb-tools]
name=MariaDB Tools
baseurl=https://downloads.mariadb.com/Tools/rhel/8/x86_64
gpgkey=https://supplychain.mariadb.com/MariaDB-Enterprise-GPG-KEY
gpgcheck=1
enabled=1

[root@my-mariadb-07d ~]# rpm -qa | grep Mari
MariaDB-client-10.6.9_5-1.el8.x86_64
MariaDB-server-10.6.9_5-1.el8.x86_64
MariaDB-common-10.6.9_5-1.el8.x86_64
MariaDB-shared-10.6.9_5-1.el8.x86_64


Notice: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: created (corrective)
Error: Could not set 'file' on ensure: No such file or directory @ rb_sysopen - /var/log/mariadb/mariadb.log (file: /etc/puppetlabs/code/environments/208_add_mariadb_configuration_management/modules/mysql/manifests/server/installdb.pp, line: 24)
Error: Could not set 'file' on ensure: No such file or directory @ rb_sysopen - /var/log/mariadb/mariadb.log (file: /etc/puppetlabs/code/environments/208_add_mariadb_configuration_management/modules/mysql/manifests/server/installdb.pp, line: 24)
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 'file' failed: Could not set 'file' on ensure: No such file or directory @ rb_sysopen - /var/log/mariadb/mariadb.log (file: /etc/puppetlabs/code/environments/208_add_mariadb_configuration_management/modules/mysql/manifests/server/installdb.pp, line: 24)

Environment

  • Version 13.0.1
  • Platform RHEL8.1

Additional Context

None of the MariaDB RPMs supplied by mariadb.com create /var/log/mariadb. The real course of action is to have the RPMs changed so that /var/log/mariadb is created but this module should (probably) handle that situaition gracefully.

Duplicate of #1260. Should the previous issue be repened and this one closed?