Merge "Add missing undercloud upgrade tasks"

This commit is contained in:
Zuul 2018-04-21 20:27:03 +00:00 committed by Gerrit Code Review
commit f0501fd00e
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

@ -325,6 +325,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