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
This commit is contained in:
Emilien Macchi 2018-05-16 20:09:03 -07:00
parent f77be199d4
commit e7a103c5a4
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ outputs:
fi fi
become: true become: true
when: when:
- step|int == 1 - step|int == 2
- {get_param: UndercloudUpgrade} - {get_param: UndercloudUpgrade}
- name: Stop and disable mysql service - name: Stop and disable mysql service
when: when:

View File

@ -49,4 +49,4 @@ outputs:
yum: yum:
name: '*' name: '*'
state: latest state: latest
when: step|int == 1 when: step|int == 3