Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
osd_volume_activate: umount lockbox after scanning
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 82a1ee7)
  • Loading branch information
dsavineau committed Jun 18, 2020
1 parent b16b869 commit e213b24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/daemon/osd_scenarios/osd_volume_activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e213b24

Please sign in to comment.