Add cinder service support for composable upgrades
[apex-tripleo-heat-templates.git] / puppet / services / cinder-volume.yaml
index 66706bc..cc06d87 100644 (file)
@@ -110,3 +110,14 @@ outputs:
             tripleo::profile::base::cinder::volume::iscsi::cinder_iscsi_address: {get_param: [ServiceNetMap, CinderIscsiNetwork]}
       step_config: |
         include ::tripleo::profile::base::cinder::volume
+      upgrade_tasks:
+        - name: Stop cinder_volume service
+          tags: step2
+          service: name=openstack-cinder-volume state=stopped
+        - name: Sync cinder_volume DB
+          tags: step5
+          command: cinder-manage db sync
+        - name: Start cinder_volume service
+          tags: step6
+          service: name=openstack-cinder-volume state=started
+