]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: do not run lvm batch tasks during update
authorAndrew Schoen <aschoen@redhat.com>
Thu, 28 Mar 2019 19:02:54 +0000 (14:02 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 18 Apr 2019 08:55:11 +0000 (10:55 +0200)
When performing a rolling update do not try to create
any new osds with `ceph-volume lvm batch`. This is troublesome
because when upgrading to nautilus the devices list might contain
devices that are currently being used by ceph-disk and have GPT
headers on them, which will cause ceph-volume to fail when
trying to use such a device. Any devices originally created
by ceph-disk will need to be removed from the devices list
before any new osds can be created.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-osd/tasks/main.yml

index 32b707584484e79d6aed0c246552188c3d7eb32a..9ce5b7616ccb842c7ab7d804970c79ee81b1be43 100644 (file)
@@ -50,6 +50,7 @@
   include_tasks: scenarios/lvm.yml
   when:
     - lvm_volumes|length > 0
+    - not rolling_update|default(False)
   # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
   static: False
 
@@ -57,6 +58,7 @@
   include_tasks: scenarios/lvm-batch.yml
   when:
     - devices|length > 0
+    - not rolling_update|default(False)
   # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
   static: False