Skip to content

xtrabackup: handle missing facts gracefully #1630

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/backup/xtrabackup.pp
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
require => Class['mysql::server::root_password'],
}
# Percona XtraBackup needs additional grants/privileges to work with MySQL 8
if versioncmp($facts['mysql_version'], '8') >= 0 and !(/(?i:mariadb)/ in $facts['mysqld_version']) {
if ('mysql_version' in $facts) and ('mysqld_version' in $facts) and versioncmp($facts['mysql_version'], '8') >= 0 and !(/(?i:mariadb)/ in $facts['mysqld_version']) {
if ($facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['major'], '11') >= 0) or
($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '22.04') >= 0) {
mysql_grant { "${backupuser}@localhost/*.*":

Unchanged files with check annotations Beta

mysld_version: 'mysqld Ver 8.0.28 for Linux on x86_64 (MySQL Community Server - GPL)')
end
it {

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on ubuntu-22.04-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["BINLOG MONITOR", "RELOAD", "PROCESS", "LOCK TABLES", "BACKUP_ADMIN"] but it is set to ["BINLOG MONITOR", "RELOAD", "PROCESS", "LOCK TABLES"] Diff: @@ -5,6 +5,4 @@ PROCESS LOCK TABLES - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on centos-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on scientific-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on redhat-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on oraclelinux-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on redhat-8-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on redhat-9-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on sles-15-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on sles-12-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

mysql::backup::xtrabackup on debian-10-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on almalinux-8-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on centos-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on centos-8-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on debian-10-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on debian-11-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["BINLOG MONITOR", "RELOAD", "PROCESS", "LOCK TABLES", "BACKUP_ADMIN"] but it is set to ["BINLOG MONITOR", "RELOAD", "PROCESS", "LOCK TABLES"] Diff: @@ -5,6 +5,4 @@ PROCESS LOCK TABLES - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on oraclelinux-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on redhat-7-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on redhat-8-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on redhat-9-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN

Check failure on line 150 in spec/classes/mysql_backup_xtrabackup_spec.rb

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

mysql::backup::xtrabackup on rocky-8-x86_64 with backupuser and backuppassword with MySQL version 8.0 is expected to contain Mysql_grant[backupuser@localhost/*.*] that requires Mysql_user[backupuser@localhost] Failure/Error: expect(subject).to contain_mysql_grant('backupuser@localhost/*.*') .with( ensure: 'present', user: 'backupuser@localhost', table: '*.*', privileges: if (facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '11') >= 0) || (facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '22') >= 0) ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES', 'BACKUP_ADMIN'] else expected that the catalogue would contain Mysql_grant[backupuser@localhost/*.*] with privileges set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT", "BACKUP_ADMIN"] but it is set to ["RELOAD", "PROCESS", "LOCK TABLES", "REPLICATION CLIENT"] Diff: @@ -5,6 +5,4 @@ LOCK TABLES REPLICATION CLIENT - -BACKUP_ADMIN
expect(subject).to contain_mysql_grant('backupuser@localhost/*.*')
.with(
ensure: 'present',