mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1409 from ceph/auto-dm
osd: autodiscovery mode, use holders to detect devicepull/1414/head
commit
20a8ce90cc
|
@ -10,6 +10,7 @@
|
||||||
- ansible_devices is defined
|
- ansible_devices is defined
|
||||||
- item.value.removable == "0"
|
- item.value.removable == "0"
|
||||||
- item.value.partitions|count == 0
|
- item.value.partitions|count == 0
|
||||||
|
- item.value.holders|count == 0
|
||||||
- journal_collocation
|
- journal_collocation
|
||||||
- osd_auto_discovery
|
- osd_auto_discovery
|
||||||
|
|
||||||
|
@ -35,6 +36,7 @@
|
||||||
- ansible_devices is defined
|
- ansible_devices is defined
|
||||||
- item.value.removable == "0"
|
- item.value.removable == "0"
|
||||||
- item.value.partitions|count == 0
|
- item.value.partitions|count == 0
|
||||||
|
- item.value.holders|count == 0
|
||||||
- osd_auto_discovery
|
- osd_auto_discovery
|
||||||
- dmcrypt_journal_collocation
|
- dmcrypt_journal_collocation
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
- ansible_devices is defined
|
- ansible_devices is defined
|
||||||
- item.value.removable == "0"
|
- item.value.removable == "0"
|
||||||
- item.value.partitions|count == 0
|
- item.value.partitions|count == 0
|
||||||
|
- item.value.holders|count == 0
|
||||||
|
|
||||||
- name: fix partitions gpt header or labels of the osd disks (autodiscover disks)
|
- name: fix partitions gpt header or labels of the osd disks (autodiscover disks)
|
||||||
shell: "sgdisk --zap-all --clear --mbrtogpt -- '/dev/{{ item.0.item.key }}' || sgdisk --zap-all --clear --mbrtogpt -- '/dev/{{ item.0.item.key }}'"
|
shell: "sgdisk --zap-all --clear --mbrtogpt -- '/dev/{{ item.0.item.key }}' || sgdisk --zap-all --clear --mbrtogpt -- '/dev/{{ item.0.item.key }}'"
|
||||||
|
@ -32,6 +33,7 @@
|
||||||
- ansible_devices is defined
|
- ansible_devices is defined
|
||||||
- item.0.item.value.removable == "0"
|
- item.0.item.value.removable == "0"
|
||||||
- item.0.item.value.partitions|count == 0
|
- item.0.item.value.partitions|count == 0
|
||||||
|
- item.value.holders|count == 0
|
||||||
- item.0.rc != 0
|
- item.0.rc != 0
|
||||||
|
|
||||||
- name: check if a partition named 'ceph' exists (autodiscover disks)
|
- name: check if a partition named 'ceph' exists (autodiscover disks)
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
- ansible_devices is defined
|
- ansible_devices is defined
|
||||||
- item.value.removable == "0"
|
- item.value.removable == "0"
|
||||||
- item.value.partitions|count == 0
|
- item.value.partitions|count == 0
|
||||||
|
- item.value.holders|count == 0
|
||||||
- bluestore
|
- bluestore
|
||||||
- osd_auto_discovery
|
- osd_auto_discovery
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
- ansible_devices is defined
|
- ansible_devices is defined
|
||||||
- item.value.removable == "0"
|
- item.value.removable == "0"
|
||||||
- item.value.partitions|count == 0
|
- item.value.partitions|count == 0
|
||||||
|
- item.value.holders|count == 0
|
||||||
- dmcrypt_journal_collocation
|
- dmcrypt_journal_collocation
|
||||||
- osd_auto_discovery
|
- osd_auto_discovery
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
- ansible_devices is defined
|
- ansible_devices is defined
|
||||||
- item.value.removable == "0"
|
- item.value.removable == "0"
|
||||||
- item.value.partitions|count == 0
|
- item.value.partitions|count == 0
|
||||||
|
- item.value.holders|count == 0
|
||||||
- journal_collocation
|
- journal_collocation
|
||||||
- osd_auto_discovery
|
- osd_auto_discovery
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue