aboutsummaryrefslogtreecommitdiffstats
path: root/docker/services/mistral-executor.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-20 20:10:25 +0000
committerGerrit Code Review <review@openstack.org>2017-07-20 20:10:25 +0000
commit782f68c8fd6df1c3ee00fd19d5a8ff9447689d72 (patch)
tree73ae2de82f728928b3d087cf7d7938f52a67aa79 /docker/services/mistral-executor.yaml
parent5b84f8f1ff6a5fed0edaad3cc8ea1bc626c56b5f (diff)
parent1ccb5dd0fe5ce760f3fa684a6779570a9c6ef2d3 (diff)
Merge "Add validation task in docker services"
Diffstat (limited to 'docker/services/mistral-executor.yaml')
-rw-r--r--docker/services/mistral-executor.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/services/mistral-executor.yaml b/docker/services/mistral-executor.yaml
index 3346a04..ea54c57 100644
--- a/docker/services/mistral-executor.yaml
+++ b/docker/services/mistral-executor.yaml
@@ -109,6 +109,18 @@ outputs:
path: /var/log/containers/mistral
state: directory
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 and disable mistral_executor service
tags: step2
+ when: mistral_executor_enabled.rc == 0
service: name=openstack-mistral-executor state=stopped enabled=no