From e5b7aa203324b5d390e21ae725c910ea7e0e9502 Mon Sep 17 00:00:00 2001 From: Vasyl Saienko Date: Fri, 25 Aug 2017 17:39:54 +0300 Subject: [PATCH] Test ironic-dbsync online_data_migrations Run ironic-dbsync online_data_migrations on single node grenade right after usual dbsync. Do not set pin_relase_version for single node grenade as we do cold upgrade and it is not required. Related-Bug: 1526283 Related-Bug: 1502887 Change-Id: I2e331252aeb66376c2d6cc3c16b6de0aefca5434 --- devstack/upgrade/upgrade.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devstack/upgrade/upgrade.sh b/devstack/upgrade/upgrade.sh index b7cae14e3a..a2198a1095 100755 --- a/devstack/upgrade/upgrade.sh +++ b/devstack/upgrade/upgrade.sh @@ -73,7 +73,13 @@ upgrade_project ironic $RUN_DIR $BASE_DEVSTACK_BRANCH $TARGET_DEVSTACK_BRANCH $IRONIC_BIN_DIR/ironic-dbsync --config-file=$IRONIC_CONF_FILE -iniset $IRONIC_CONF_FILE DEFAULT pin_release_version ${BASE_DEVSTACK_BRANCH#*/} +# NOTE(vsaienko) pin_release only on multinode job, for cold upgrade (single node) +# run online data migration instead. +if [[ "${HOST_TOPOLOGY}" == "multinode" ]]; then + iniset $IRONIC_CONF_FILE DEFAULT pin_release_version ${BASE_DEVSTACK_BRANCH#*/} +else + ironic-dbsync online_data_migrations +fi ensure_started='ironic-conductor nova-compute ' ensure_stopped=''