]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-osd: fix autodetection activation 1803/head
authorSébastien Han <seb@redhat.com>
Thu, 24 Aug 2017 09:17:56 +0000 (11:17 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 7 Sep 2017 15:47:37 +0000 (17:47 +0200)
commit3753e6cfa7a7782204bdf490199ea61484ff6113
tree392811e1e86a83ab96654be21da625a1baddd8d4
parent0adce6f38124a1a55ae6bdb4efafbb1aa0e0475b
ceph-osd: fix autodetection activation

Prior to this patch this activation sequence for autodetection was
always skipped because we were asking to activate on device without
partitions, which doesn't make sense.

We also fix the way we lookup for a device, since the data partition is
always numbered 1, we take the min element of the dict.

Closes: https://github.com/ceph/ceph-ansible/issues/1782
Signed-off-by: Sébastien Han <seb@redhat.com>
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
18 files changed:
roles/ceph-osd/tasks/activate_osds.yml
roles/ceph-osd/tasks/check_devices.yml
roles/ceph-osd/tasks/check_devices_auto.yml [deleted file]
roles/ceph-osd/tasks/main.yml
roles/ceph-osd/tasks/scenarios/collocated.yml
tests/conftest.py
tests/functional/centos/7/jrn-col-auto-dm/Vagrantfile [new symlink]
tests/functional/centos/7/jrn-col-auto-dm/group_vars/all [new file with mode: 0644]
tests/functional/centos/7/jrn-col-auto-dm/group_vars/osds [new file with mode: 0644]
tests/functional/centos/7/jrn-col-auto-dm/hosts [new file with mode: 0644]
tests/functional/centos/7/jrn-col-auto-dm/vagrant_variables.yml [new file with mode: 0644]
tests/functional/centos/7/jrn-col-auto/Vagrantfile [new symlink]
tests/functional/centos/7/jrn-col-auto/group_vars/all [new file with mode: 0644]
tests/functional/centos/7/jrn-col-auto/group_vars/osds [new file with mode: 0644]
tests/functional/centos/7/jrn-col-auto/hosts [new file with mode: 0644]
tests/functional/centos/7/jrn-col-auto/vagrant_variables.yml [new file with mode: 0644]
tests/functional/tests/osd/test_journal_collocation.py
tox.ini