Bug #54566
openDockerized ceph hangs on cryptsetup during osd_ceph_volume_activate
0%
Description
I'm having an issue where it looks like ceph-volume lvm activate isn't calling cryptsetup properly, causing it to hang.
Here is the command I used to run the docker container: docker run --rm --net=host --privileged=true -v /etc/ceph:/etc/ceph -v /var/lib/ceph:/var/lib/ceph -v /dev/:/dev/ -v /run/udev/:/run/udev/ -e OSD_TYPE=activate -e OSD_VOLUME_TYPE=lvm -e OSD_ID=24 quay.io/ceph/daemon:latest-pacific osd_ceph_volume_activate
I removed --pid=host to make the output of ps cleaner, the same behavior happens both with and without the flag.
Here is the output of ps -ef that makes me think that its this particular issue:
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 04:37 ? 00:00:00 /bin/bash /opt/ceph-container/bin/entrypoint.sh osd_ceph_volume_activate
root 65 1 0 04:37 ? 00:00:00 /usr/libexec/platform-python -s /usr/sbin/ceph-volume lvm activate --no-systemd --bluestore 24 2c563283-289c-44c6-9128-090267b1a432
root 99 65 5 04:37 ? 00:00:05 /usr/sbin/cryptsetup --key-file - --allow-discards luksOpen /dev/ceph-block-24/block-24 Fw7Yr6-bx4H-1tjQ-Fz0g-9dBm-ud2q-dezGXu
No data to display