aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/gnocchi-api.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-27 12:58:03 +0000
committerGerrit Code Review <review@openstack.org>2017-01-27 12:58:03 +0000
commitc349789089157b0210d8de4f317599df81fa9760 (patch)
treefd5508c45791ab7414ff1aafead262da0158772e /puppet/services/gnocchi-api.yaml
parentef741fab9bf8f649be6ec8f7cef14f5b841f93c6 (diff)
parentd14c56e1b6a521f99c564c6f22edf381c8831797 (diff)
Merge "Adds a pre-upgrade check that service is running (step0)"
Diffstat (limited to 'puppet/services/gnocchi-api.yaml')
-rw-r--r--puppet/services/gnocchi-api.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/puppet/services/gnocchi-api.yaml b/puppet/services/gnocchi-api.yaml
index bb2ff581..2aea29fd 100644
--- a/puppet/services/gnocchi-api.yaml
+++ b/puppet/services/gnocchi-api.yaml
@@ -134,6 +134,9 @@ outputs:
metadata_settings:
get_attr: [ApacheServiceBase, role_data, metadata_settings]
upgrade_tasks:
+ - name: "PreUpgrade step0,validation: Check service openstack-gnocchi-api is running"
+ shell: /usr/bin/systemctl show 'openstack-gnocchi-api' --property ActiveState | grep '\bactive\b'
+ tags: step0,validation
- name: Stop gnocchi_api service (running under httpd)
tags: step2
service: name=httpd state=stopped