aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Lorenzetto <lorenzetto.luca@gmail.com>2017-02-24 17:06:22 +0100
committerLuca Lorenzetto <lorenzetto.luca@gmail.com>2017-02-24 17:10:30 +0100
commit864cb733a3b11f62a79d724f979d672c234d8986 (patch)
tree797bc3f1112192f19e1f4195a60211062c07ff4d
parentf2ce84ae219b58539f8a43002a3141d2ace97a92 (diff)
Adding definition of backup_flags
During the upgrade from M to N i encountered an error in a step requiring the upgrade of mysql version. The variable backup_flags is undefined at that point. Change-Id: Ic6681c40934b27a03d00a75007d7f12d6d540de3 Closes-Bug: #1667731
-rwxr-xr-xextraconfig/tasks/major_upgrade_controller_pacemaker_2.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh b/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh
index 6bfe1239..8b900842 100755
--- a/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh
+++ b/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh
@@ -50,6 +50,7 @@ mysql_need_update
if [[ -n $(is_bootstrap_node) ]]; then
if [ $DO_MYSQL_UPGRADE -eq 1 ]; then
+ backup_flags="--defaults-extra-file=/root/.my.cnf -u root --flush-privileges --all-databases --single-transaction"
mysqldump $backup_flags > "$MYSQL_BACKUP_DIR/openstack_database.sql"
cp -rdp /etc/my.cnf* "$MYSQL_BACKUP_DIR"
fi