ceph-volume fail cryptsetup version check on ceph-18.2.4-r2 and cannot cannot create dmcrypt encrypted OSDs. Nixos people have also encountered this issue. https://github.com/NixOS/nixpkgs/issues/334227 Applying these two commits/patches on top of ceph-18.2.4-r2 fixed the issue for me. These patches have to applied in correct order. https://github.com/ceph/ceph/commit/6ae874902b63652fa199563b6e7950cd75151304.patch https://github.com/ceph/ceph/commit/607eb34b2c278566c386efcbf3018629cf08ccfd.patch
Created attachment 900150 [details, diff] first patch
Created attachment 900151 [details, diff] second patch