diff options
author | marios <marios@redhat.com> | 2016-12-23 16:07:44 +0200 |
---|---|---|
committer | marios <marios@redhat.com> | 2017-01-27 11:20:15 +0200 |
commit | d14c56e1b6a521f99c564c6f22edf381c8831797 (patch) | |
tree | 20cd7617c1797cb5ce8eb0fe1765606c0a443286 /puppet/services/gnocchi-metricd.yaml | |
parent | 91a231d80815dc2ad45cc9502151e68b636090d0 (diff) |
Adds a pre-upgrade check that service is running (step0)
Adds a step0 for most services to check that the state is running
before continuing with any of the other upgrades steps (these are
tagged step0).
You can skip this service check by overriding the
SkipUpgradeConfigTags parameter as follows:
parameter_defaults:
SkipUpgradeConfigTags: validation
Co-Authored-By: Steven Hardy <shardy@redhat.com>
Change-Id: Ie276f153015f671b720b6ed5beaac1b921661909
Diffstat (limited to 'puppet/services/gnocchi-metricd.yaml')
-rw-r--r-- | puppet/services/gnocchi-metricd.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/puppet/services/gnocchi-metricd.yaml b/puppet/services/gnocchi-metricd.yaml index d888e2a4..1337b0cb 100644 --- a/puppet/services/gnocchi-metricd.yaml +++ b/puppet/services/gnocchi-metricd.yaml @@ -47,6 +47,9 @@ outputs: step_config: | include ::tripleo::profile::base::gnocchi::metricd upgrade_tasks: + - name: "PreUpgrade step0,validation: Check service openstack-gnocchi-metricd is running" + shell: /usr/bin/systemctl show 'openstack-gnocchi-metricd' --property ActiveState | grep '\bactive\b' + tags: step0,validation - name: Stop gnocchi_metricd service tags: step2 service: name=openstack-gnocchi-metricd state=stopped |