From 5e3dfe50210f6b5e49f6c15160086a0dd84f9e6b Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Thu, 28 Mar 2019 14:02:54 -0500 Subject: [PATCH] ceph-osd: do not run lvm batch tasks during update 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 --- roles/ceph-osd/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index 32b707584..9ce5b7616 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -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 -- 2.39.5