Add mistral service support for composable upgrades
Change-Id: I189edaf69c0e97a3399e6af939595f98322d7c03
Partially-Implements: blueprint overcloud-upgrades-per-service
(cherry picked from commit dedef90750
)
This commit is contained in:
parent
74a99e7282
commit
edb222065f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user