From 4b62b587afca4a42608d152ab63c09d22b2c37b0 Mon Sep 17 00:00:00 2001 From: James Page Date: Wed, 21 Feb 2018 17:46:37 +0000 Subject: [PATCH] Support expand->migrate->contract db migrations In order to support rolling upgrades, OpenStack services are moving to a trigger driven approach to db upgrade, involving expand, migrate and contract phases. This requires that the underlying db supports creation of such triggers which requires that: log_bin_trust_function_creators = 1 in the MySQL global configuration. Change-Id: Id2cf2dd5a0929270229541e6cd488cd1c0d6103e Closes-Bug: 1750705 --- templates/mysqld.cnf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/mysqld.cnf b/templates/mysqld.cnf index cffbb05..9b0a854 100644 --- a/templates/mysqld.cnf +++ b/templates/mysqld.cnf @@ -72,6 +72,9 @@ log_bin={{ binlogs_path }} expire_logs_days = {{ binlogs_expire_days }} max_binlog_size = {{ binlogs_max_size }} +# Required to allow trigger creation for openstack services +log_bin_trust_function_creators = 1 + # # * InnoDB #