Merge "Add etcd composable upgrade steps"
[apex-tripleo-heat-templates.git] / puppet / services / gnocchi-statsd.yaml
index 983d6c9..5f24bc5 100644 (file)
@@ -1,4 +1,4 @@
-heat_template_version: 2016-04-08
+heat_template_version: ocata
 
 description: >
   Gnocchi service configured with Puppet
@@ -45,3 +45,10 @@ outputs:
                 proto: 'udp'
       step_config: |
         include ::tripleo::profile::base::gnocchi::statsd
+      upgrade_tasks:
+        - name: "PreUpgrade step0,validation: Check service openstack-gnocchi-statsd is running"
+          shell: /usr/bin/systemctl show 'openstack-gnocchi-statsd' --property ActiveState | grep '\bactive\b'
+          tags: step0,validation
+        - name: Stop gnocchi_statsd service
+          tags: step1
+          service: name=openstack-gnocchi-statsd state=stopped