]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Skip GPT header creation for lvm osd scenario
authorVishal Kanaujia <vishal.kanaujia@flipkart.com>
Wed, 16 May 2018 09:58:31 +0000 (15:28 +0530)
committerSébastien Han <seb@redhat.com>
Wed, 23 May 2018 18:44:09 +0000 (11:44 -0700)
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>
roles/ceph-osd/tasks/main.yml

index b61cfcbed80ecdb7208d0d77c814b8752ba312d2..16220548af1e67c803e35fb06403c8b63d608f18 100644 (file)
@@ -38,6 +38,8 @@
 
 - name: include check_gpt.yml
   include: check_gpt.yml
+  when:
+    - osd_scenario != 'lvm'
 
 - name: include scenarios/collocated.yml
   include: scenarios/collocated.yml
@@ -66,6 +68,7 @@
   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
 
@@ -73,6 +76,7 @@
   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