From 26bc00fb74416fa4f859c45a69abe188cd79045c Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 5 Mar 2018 10:05:28 +0100 Subject: [PATCH] mon: fail if pool creation fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is no reason to continue the deployment if these tasks fail. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1546185 Signed-off-by: Sébastien Han --- roles/ceph-mon/tasks/openstack_config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/roles/ceph-mon/tasks/openstack_config.yml b/roles/ceph-mon/tasks/openstack_config.yml index 97889ac56..42c0133dc 100644 --- a/roles/ceph-mon/tasks/openstack_config.yml +++ b/roles/ceph-mon/tasks/openstack_config.yml @@ -3,13 +3,11 @@ command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name|default('') }} {{ item.size|default('') }}" with_items: "{{ openstack_pools | unique }}" changed_when: false - failed_when: false - name: assign rbd application to pool(s) command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool application enable {{ item.name }} rbd" with_items: "{{ openstack_pools | unique }}" changed_when: false - failed_when: false when: - ceph_release_num[ceph_release] >= ceph_release_num['luminous'] -- 2.39.5