Merge pull request #1409 from ceph/auto-dm

osd: autodiscovery mode, use holders to detect device
pull/1414/head
Sébastien Han 2017-04-05 15:58:41 +02:00 committed by GitHub
commit 20a8ce90cc
5 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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