Merge "Add validation task in docker services [Sahara]"
This commit is contained in:
commit
91fc259cf2
|
@ -145,8 +145,18 @@ outputs:
|
|||
/var/log/containers/sahara.
|
||||
ignore_errors: true
|
||||
upgrade_tasks:
|
||||
- name: Check if sahara_api is deployed
|
||||
command: systemctl is-enabled --quiet openstack-sahara-api
|
||||
tags: common
|
||||
ignore_errors: True
|
||||
register: sahara_api_enabled
|
||||
- name: "PreUpgrade step0,validation: Check service openstack-sahara-api is running"
|
||||
command: systemctl is-active --quiet openstack-sahara-api
|
||||
when: sahara_api_enabled.rc == 0
|
||||
tags: step0,validation
|
||||
- name: Stop and disable sahara_api service
|
||||
tags: step2
|
||||
when: sahara_api_enabled.rc == 0
|
||||
service: name=openstack-sahara-api state=stopped enabled=no
|
||||
- name: Remove openstack-sahara-api package if operator requests it
|
||||
yum: name=openstack-sahara-api state=removed
|
||||
|
|
|
@ -130,8 +130,18 @@ outputs:
|
|||
/var/log/containers/sahara.
|
||||
ignore_errors: true
|
||||
upgrade_tasks:
|
||||
- name: Check if sahara_engine is deployed
|
||||
command: systemctl is-enabled --quiet openstack-sahara-engine
|
||||
tags: common
|
||||
ignore_errors: True
|
||||
register: sahara_engine_enabled
|
||||
- name: "PreUpgrade step0,validation: Check service openstack-sahara-engine is running"
|
||||
command: systemctl is-active --quiet openstack-sahara-engine
|
||||
when: sahara_engine_enabled.rc == 0
|
||||
tags: step0,validation
|
||||
- name: Stop and disable sahara_engine service
|
||||
tags: step2
|
||||
when: sahara_engine_enabled.rc == 0
|
||||
service: name=openstack-sahara-engine state=stopped enabled=no
|
||||
- name: Remove openstack-sahara-engine package if operator requests it
|
||||
yum: name=openstack-sahara-engine state=removed
|
||||
|
|
Loading…
Reference in New Issue