Add mistral service support for composable upgrades

Change-Id: I189edaf69c0e97a3399e6af939595f98322d7c03
Partially-Implements: blueprint overcloud-upgrades-per-service
This commit is contained in:
Steven Hardy 2016-12-01 10:04:58 +00:00 committed by Emilien Macchi
parent 7c84a9b390
commit dedef90750
3 changed files with 57 additions and 0 deletions

View File

@ -50,3 +50,22 @@ outputs:
get_attr: [MistralBase, role_data, service_config_settings]
step_config: |
include ::tripleo::profile::base::mistral::api
upgrade_tasks:
- name: Check if mistral api is deployed
command: systemctl is-enabled openstack-mistral-api
tags: common
ignore_errors: True
register: mistral_api_enabled
- name: "PreUpgrade step0,validation: Check if openstack-mistral-api is running"
shell: >
/usr/bin/systemctl show 'openstack-mistral-api' --property ActiveState |
grep '\bactive\b'
when: mistral_api_enabled.rc == 0
tags: step0,validation
- name: Stop mistral_api service
tags: step1
service: name=openstack-mistral-api state=stopped
- name: Install openstack-mistral-api package if it was disabled
tags: step3
yum: name=openstack-mistral-api state=latest
when: mistral_api_enabled.rc != 0

View File

@ -36,3 +36,22 @@ outputs:
get_attr: [MistralBase, role_data, config_settings]
step_config: |
include ::tripleo::profile::base::mistral::engine
upgrade_tasks:
- name: Check if mistral engine is deployed
command: systemctl is-enabled openstack-mistral-engine
tags: common
ignore_errors: True
register: mistral_engine_enabled
- name: "PreUpgrade step0,validation: Check if openstack-mistral-engine is running"
shell: >
/usr/bin/systemctl show 'openstack-mistral-engine' --property ActiveState |
grep '\bactive\b'
when: mistral_engine_enabled.rc == 0
tags: step0,validation
- name: Stop mistral_engine service
tags: step1
service: name=openstack-mistral-engine state=stopped
- name: Install openstack-mistral-engine package if it was disabled
tags: step3
yum: name=openstack-mistral-engine state=latest
when: mistral_engine_enabled.rc != 0

View File

@ -36,3 +36,22 @@ outputs:
get_attr: [MistralBase, role_data, config_settings]
step_config: |
include ::tripleo::profile::base::mistral::executor
upgrade_tasks:
- name: Check if mistral executor is deployed
command: systemctl is-enabled openstack-mistral-executor
tags: common
ignore_errors: True
register: mistral_executor_enabled
- name: "PreUpgrade step0,validation: Check if openstack-mistral-executor is running"
shell: >
/usr/bin/systemctl show 'openstack-mistral-executor' --property ActiveState |
grep '\bactive\b'
when: mistral_executor_enabled.rc == 0
tags: step0,validation
- name: Stop mistral_executor service
tags: step1
service: name=openstack-mistral-executor state=stopped
- name: Install openstack-mistral-executor package if it was disabled
tags: step3
yum: name=openstack-mistral-executor state=latest
when: mistral_executor_enabled.rc != 0