The LVM lvcreate fails if the disk already has a GPT header.
We create GPT header regardless of OSD scenario. The fix is to
skip header creation for lvm scenario.
fixes: https://github.com/ceph/ceph-ansible/issues/2592
Signed-off-by: Vishal Kanaujia <vishal.kanaujia@flipkart.com>
- name: include check_gpt.yml
include: check_gpt.yml
+ when:
+ - osd_scenario != 'lvm'
- name: include scenarios/collocated.yml
include: scenarios/collocated.yml
include: activate_osds.yml
when:
- not containerized_deployment
+ - osd_scenario != 'lvm'
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False
include: start_osds.yml
when:
- not containerized_deployment
+ - osd_scenario != 'lvm'
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False