From e7a103c5a4475354d4c42cecc0ab22928242296d Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 16 May 2018 20:09:03 -0700 Subject: [PATCH] undercloud: change upgrade steps 1) Rename the neutron DB at step 2 so Neutron has time to stop (during step 1) and right after we stop mariadb, so no chance for any app to access to old db. 2) Upgrade all rpms at step 3 like we do for other services. Step 1 was way too early. Change-Id: I34bdc0a9d575e5d1b8f3ce1e09c145cc34563a85 --- docker/services/database/mysql.yaml | 2 +- docker/services/undercloud-upgrade.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/services/database/mysql.yaml b/docker/services/database/mysql.yaml index f97d3b7d82..3e67ff3a1d 100644 --- a/docker/services/database/mysql.yaml +++ b/docker/services/database/mysql.yaml @@ -262,7 +262,7 @@ outputs: fi become: true when: - - step|int == 1 + - step|int == 2 - {get_param: UndercloudUpgrade} - name: Stop and disable mysql service when: diff --git a/docker/services/undercloud-upgrade.yaml b/docker/services/undercloud-upgrade.yaml index f9bb35f8be..49c9f8cb5b 100644 --- a/docker/services/undercloud-upgrade.yaml +++ b/docker/services/undercloud-upgrade.yaml @@ -49,4 +49,4 @@ outputs: yum: name: '*' state: latest - when: step|int == 1 + when: step|int == 3