Commit 2d40e392 authored by Dimitri Savineau's avatar Dimitri Savineau Committed by Guillaume Abrioux
Browse files

switch_to_containers: umount osd lockbox partition

When switching from a baremetal deployment to a containerized deployment
we only umount the OSD data partition.
If the OSD is encrypted (dmcrypt: true) then there's an additional
partition (part number 5) used for the lockbox and mount in the
/var/lib/ceph/osd-lockbox/ directory.
Because this partition isn't umount then the containerized OSD aren't
able to start. The partition is still mount by the system and can't be
remount from the container.


Signed-off-by: default avatarDimitri Savineau <>
(cherry picked from commit 19edf707)
parent 2e44b6af
......@@ -267,13 +267,13 @@
- name: get osd directories
command: >
ls -1 /var/lib/ceph/osd
find /var/lib/ceph/osd {% if dmcrypt | bool %}/var/lib/ceph/osd-lockbox{% endif %} -maxdepth 1 -mindepth 1 -type d
register: osd_dirs
changed_when: false
- name: unmount all the osd directories
command: >
umount /var/lib/ceph/osd/{{ item }}
umount {{ item }}
changed_when: false
failed_when: false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment