]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: do not ignore ceph-disk errors in raw multi journal 837/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 2 Jun 2016 21:16:21 +0000 (17:16 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 2 Jun 2016 21:16:21 +0000 (17:16 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: rhbz#1342117

roles/ceph-osd/tasks/scenarios/raw_multi_journal.yml

index 71c901a0b0f56cf477273a8d6aaaa0ea55bab3fd..36b64cc2017474ae11a5f5e91037956d994ec8c8 100644 (file)
@@ -17,8 +17,6 @@
     - devices
     - raw_journal_devices
   changed_when: false
-  ignore_errors: true
-  register: prepare_osd_disk
   when:
     - not item.0.get("skipped")
     - not item.1.get("skipped")
     - raw_multi_journal
     - not osd_auto_discovery
 
-- name: fail if ceph-disk cannot prepare an OSD
-  fail:
-    msg: "ceph-disk failed to prepare an OSD"
-  when:
-    - " 'ceph-disk: Error:' in item.get('stderr', '') "
-    - " 'Failed to add' in item.get('stderr', '') "
-    - item.get("rc") != 0
-  with_items: "{{prepare_osd_disk.results}}"
-
 - include: ../activate_osds.yml