Add missing undercloud upgrade tasks

Nova API and Mistral API need to be stopped because they'll be
containerized during the upgrade.

Change-Id: I9f8af1cd2e775a92a0b1acf2ae9eec12f6c90974
This commit is contained in:
Emilien Macchi 2018-04-20 08:14:30 -07:00
parent 65e828e2b3
commit 8b246ab695
2 changed files with 16 additions and 0 deletions

View File

@ -36,6 +36,10 @@ parameters:
default: {}
description: Parameters specific to the role
type: json
UndercloudUpgrade:
type: boolean
description: Flag to indicate undercloud upgrade process is being run.
default: false
resources:
@ -160,6 +164,12 @@ outputs:
Log files from mistral containers can be found under
/var/log/containers/mistral.
ignore_errors: true
- name: Stop and disable the mistral-api service
service:
name: openstack-mistral-api
state: stopped
enabled: no
when: {get_param: UndercloudUpgrade}
upgrade_tasks:
- name: Check if mistral api is deployed
command: systemctl is-enabled --quiet openstack-mistral-api

View File

@ -324,6 +324,12 @@ outputs:
path: /var/spool/cron/nova
state: absent
when: {get_param: UndercloudUpgrade}
- name: Stop and disable the nova-api service
service:
name: openstack-nova-api
state: stopped
enabled: no
when: {get_param: UndercloudUpgrade}
upgrade_tasks:
- name: Check if nova_api is deployed
command: systemctl is-enabled --quiet openstack-nova-api