From 8739e1448d8ed735fcdfcb6156bc3cc7ac0b1601 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 13 Sep 2022 09:27:10 +1000 Subject: [PATCH] translate: fix dump with MySQL 5.7 Recently the hosted database that translate.openstack.org uses was upgraded to MySQL 5.7. It turns out there was a breaking security-related change to MySQL that means you require PROCESS privileges to dump the DB. I guess the migration didn't do this, and via the RAX hosting UI there's no easy way to add this (there's no root user available by default; perhaps this is a corner case of the upgrade process). Rather than trying to figure out the backend, to work around this use --no-tablespaces to the dump command. We just need a dump of the zanata tables as backup, so this is fine. Change-Id: Idaa35249fe15867103fa7b70dbdc7d135c5e1396 --- modules/openstack_project/manifests/translate.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/manifests/translate.pp b/modules/openstack_project/manifests/translate.pp index 5a35ab76fb..02fcd96bf2 100644 --- a/modules/openstack_project/manifests/translate.pp +++ b/modules/openstack_project/manifests/translate.pp @@ -157,7 +157,7 @@ class openstack_project::translate( owner => 'root', group => 'root', mode => '0755', - content => '/usr/bin/mysqldump --defaults-file=/root/.translate_db.cnf --ignore-table mysql.event --skip-extended-insert --single-transaction zanata', + content => '/usr/bin/mysqldump --defaults-file=/root/.translate_db.cnf --ignore-table mysql.event --skip-extended-insert --single-transaction --no-tablespaces zanata', require => File['/etc/borg-streams'], }