From e213b24dbbd38363ff09546384936300858d9b73 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 20 Feb 2020 11:35:11 -0500 Subject: [PATCH] osd_volume_activate: umount lockbox after scanning To find the correct OSD id in all the OSD devices we need to scan them. This requires to mount the lockbox partitions and open the encrypted partitions when using dmcrypt. After the ceph-volume simple scan command we should umount the lockbox partitions otherwise each OSD containers will mount all lockbox partitions. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1806033 Signed-off-by: Dimitri Savineau (cherry picked from commit 82a1ee7d9fcbda64b21365a70c10af5a02634469) --- src/daemon/osd_scenarios/osd_volume_activate.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/daemon/osd_scenarios/osd_volume_activate.sh b/src/daemon/osd_scenarios/osd_volume_activate.sh index 5e89032b1..26e501d7f 100644 --- a/src/daemon/osd_scenarios/osd_volume_activate.sh +++ b/src/daemon/osd_scenarios/osd_volume_activate.sh @@ -23,6 +23,9 @@ function osd_volume_simple { open_encrypted_parts_bluestore fi ceph-volume simple scan ${DATA_PART} --force || true + if [[ ${OSD_DMCRYPT} -eq 1 ]]; then + umount_lockbox + fi fi done