summaryrefslogtreecommitdiffstats
path: root/puppet/services
diff options
context:
space:
mode:
authorSteven Hardy <shardy@redhat.com>2017-01-23 11:46:58 +0000
committermarios <marios@redhat.com>2017-01-26 09:49:14 +0200
commitf1c2675073be057677d909d2ac2829c0f34e601b (patch)
treeac01358ebd77b4f9e019e650ca268c2a87ab4ea2 /puppet/services
parenta04adaa5b8cce997a7bcd523f7dd92f0bc87a865 (diff)
Add SkipUpgradeConfigTags for upgrade config
It may be that we want ways to selectively disable certain tasks, such as pre-flight validations that might fail when restarting an upgrade from a failed state. This shows a way we might do that. Depends-On: I18214f80be9f3ad6c2d385fc00f3b786d3e7dda3 Change-Id: Ibffaaf1de0baf47a0450daa5b7cbb57d38746556
Diffstat (limited to 'puppet/services')
-rw-r--r--puppet/services/cinder-api.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/puppet/services/cinder-api.yaml b/puppet/services/cinder-api.yaml
index a5c912ed..e3c96325 100644
--- a/puppet/services/cinder-api.yaml
+++ b/puppet/services/cinder-api.yaml
@@ -149,6 +149,9 @@ outputs:
metadata_settings:
get_attr: [ApacheServiceBase, role_data, metadata_settings]
upgrade_tasks:
+ - name: "PreUpgrade step0: Check service openstack-cinder-api is running"
+ shell: /usr/bin/systemctl show 'openstack-cinder-api' --property ActiveState | grep '\bactive\b'
+ tags: step0,validation
- name: check for cinder running under apache (post upgrade)
tags: step2
shell: "apachectl -t -D DUMP_VHOSTS | grep -q cinder"