Fix ansible disk wipeoff skip 88/2188/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 13 Jan 2020 16:47:02 +0000 (17:47 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 13 Jan 2020 17:05:28 +0000 (18:05 +0100)
commit7385fe7b00e999a7c89edf0523708563c7947b17
tree9ae45aeb019f8737523f8ac8d38ea439df0c9a4c
parente5776805848728d0aac93078223585f725b84c5e
Fix ansible disk wipeoff skip

Previous commit b2e1386 switched from using a shell `-b` test to
using the ansible `stat` module for block device checks.
However, Ansible `stat` does not follow symlinks by default,
leading to some block devices being skipped, which left old
metadata in place, triggering an OSD activation failure as reported
in [1].

[1]
https://github.com/ceph/ceph-ansible/issues/2945#issuecomment-411720133

Fixes: b2e13865c2b899ce48148879da20323bd9bc988c

Reported-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: Ie0f00cea2f9ff70a123b007a54e18122846456f3
infra-ansible.spec
playbooks/destroy_data_and_partitions.yml
roles/cleanup_disks/tasks/destroy_data_and_partitions.yml