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

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

index 788bd84a126788ae012d5ce1f1b170aa822dc0f4..91b23e54d823a9ada4ae55a16df622d63c354723 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") and
     not item.1.get("skipped") and
     raw_multi_journal and
     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