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 <aschoen@redhat.com>
pull/3882/head
Andrew Schoen 2019-03-28 14:02:54 -05:00 committed by Guillaume Abrioux
parent 399a821439
commit 5e3dfe5021
1 changed files with 2 additions and 0 deletions

View 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