Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xtrabackup #1576

Open
ubellavance opened this issue Jun 15, 2023 · 0 comments
Open

xtrabackup #1576

ubellavance opened this issue Jun 15, 2023 · 0 comments

Comments

@ubellavance
Copy link

ubellavance commented Jun 15, 2023

Describe the Bug

Error when running puppet with an xtrabackup config created. Error: Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef (file: /etc/puppetlabs/code/environments/production/modules/mysql/manifests/backup/xtrabackup.pp, line: 53, column: 8)

Expected Behavior

puppet apply should run w/o error

Steps to Reproduce

Steps to reproduce the behavior:

  1. Manifest to get configuration from hiera:
  # Create backup configuration in Hiera
  if $mysql_backup_config {
    # Using create_resources
    # create_resources('class', $mysql_backup_config, {})
    # or
    # using each(preferable)
    $mysql_backup_config.each |$backup_class,$backup_config| {
      class { $backup_class:
        * => $backup_config,
      }
    }
  }

  1. Hiera configuration :
profile::mariadb::mysql_backup_config:
  'mysql::backup::xtrabackup':
    backupuser: 'backupuser'
    backuppassword: 'blabla'
    backupmethod: 'mariabackup'
    backupmethod_package: 'mariadb-backup'
    backupdir: '/var/backups/mysql/'
    backuprotate: 7
    execpath: '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin'
    time: [ '23' , '15' ]

Environment

  • Puppet 7.25
  • RHEL8

Additional Context

If I remove the xtrabackup config above, puppet runs OK. Once MariaDB is installed, I can re-instate my xtrabackup config and it runs OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants