raw_multi_journal.yml 923 Bytes
Newer Older
1
2
3
---
## SCENARIO 3: N JOURNAL DEVICES FOR N OSDS

leseb's avatar
leseb committed
4
- include: ../check_devices.yml
5
6
7
8
9

# NOTE (leseb): the prepare process must be parallelized somehow...
# if you have 64 disks with 4TB each, this will take a while
# since Ansible will sequential process the loop

10
11
# NOTE (alahouze): if the device is a partition, the parted command below has
# failed, this is why we check if the device is a partition too.
leseb's avatar
leseb committed
12
- name: prepare osd disk(s)
13
  command: "ceph-disk prepare --cluster {{ cluster }} {{ item.2 }} {{ item.3 }}"
14
  with_together:
15
16
    - combined_parted_results.results
    - combined_ispartition_results.results
17
18
    - devices
    - raw_journal_devices
leseb's avatar
leseb committed
19
20
21
  changed_when: false
  ignore_errors: true
  when:
22
23
24
25
    not item.0.get("skipped") and
    not item.1.get("skipped") and
    item.0.get("rc", 0) != 0 and
    item.1.get("rc", 0) != 0 and
26
27
    raw_multi_journal and
    not osd_auto_discovery
28

leseb's avatar
leseb committed
29
- include: ../activate_osds.yml