Adds cluster status check_and_fail before running upgrade (step0)
[apex-tripleo-heat-templates.git] / puppet / services / ceph-osd.yaml
index e9ed6c2..98f83d0 100644 (file)
@@ -46,6 +46,9 @@ outputs:
       step_config: |
         include ::tripleo::profile::base::ceph::osd
       upgrade_batch_tasks:
+        - name: Check status
+          tags: step1,validation
+          shell: ceph health | grep -qv HEALTH_ERR
         - name: Get OSD IDs
           tags: step1
           shell: ls /var/lib/ceph/osd | awk 'BEGIN { FS = "-" } ; { print $2 }'