translate: fix dump with MySQL 5.7

Recently the hosted database that 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
Ian Wienand 5 months ago
parent 741f5b333d
commit 8739e1448d
No known key found for this signature in database

@ -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'],