#18043·rook

wipeDevicesFromOtherClusters skips encrypted device with missing ceph_fsid in LUKS header

Author: BodanelCreated Jul 27, 2026Updated Sep 28, 2026
Labelsbugwontfix

Is this a bug report or feature request?

  • Bug Report

Deviation from expected behavior: When wipeDevicesFromOtherClusters=true and encryptedDevice=true, the OSD prepare pod skips a desired PVC-backed device that has a valid LUKS header but no ceph_fsid subsystem token. The device is logged as "unknown" and never wiped or provisioned. No OSD is created.

cephosd: failed to find ceph_fsid in the LUKS header, the encrypted disk is not from a ceph cluster
cephosd: encrypted disk "/mnt/ocs-deviceset-localblockstorage-2-data-2hj6lf" is unknown, skipping it
cephosd: skipping OSD configuration as no devices matched the storage settings for this node

Expected behavior:

With wipeDevicesFromOtherClusters=true, a desired OSD device with crypto_LUKS but no ceph_fsid token should be wiped and reprovisioned. The ceph_fsid token is written by Rook itself (setLUKSLabelAndSubsystem()) only after successful OSD provisioning — an interrupted or failed prior provision produces exactly this state, and the wipe feature should handle it.

How to reproduce it (minimal and precise):

  1. Deploy a Ceph cluster with encrypted OSDs on PVC (encryptedDevice=true, pvcBackedOSD=true)
  2. Let at least one OSD provision successfully so the disk gets luksFormat'd
  3. Interrupt or fail the provisioning after luksFormat but before setLUKSLabelAndSubsystem() runs (e.g. kill the prepare pod, or simulate a cluster rebuild on reused hardware where the LUKS container remains but has no ceph_fsid subsystem)
  4. Redeploy the cluster with wipeDevicesFromOtherClusters: true
  5. Observe the OSD prepare pod: the LUKS device is skipped, no OSD is created

Alternatively, this can occur naturally during cluster rebuild/migration on hardware with previously encrypted OSDs.

Environment

  • Rook version: v4.22.0 (also reproducible on 1.18.x based on code review)
  • Ceph version: Reef (via ODF 4.22)
  • Kubernetes version: 4.22 (OpenShift)
  • OSD backend: raw, PVC-backed, encrypted

Relevant logs

2026-07-21 08:47:23.461829 I | rookcmd: flag values: --encrypted-device=true, --wipe-devices-from-other-clusters=true, --pvc-backed-osd=true, ...
2026-07-21 08:47:23.486392 I | cephosd: checking for OSD disks from a different cluster
2026-07-21 08:47:24.249070 I | cephosd: creating and starting the osds
2026-07-21 08:47:24.249107 D | exec: Running command: cryptsetup luksDump /mnt/ocs-deviceset-localblockstorage-2-data-2hj6lf
2026-07-21 08:47:24.253333 E | cephosd: failed to find ceph_fsid in the LUKS header, the encrypted disk is not from a ceph cluster
2026-07-21 08:47:24.253340 I | cephosd: encrypted disk "/mnt/ocs-deviceset-localblockstorage-2-data-2hj6lf" is unknown, skipping it
2026-07-21 08:47:24.258641 I | cephosd: no new devices to configure. returning devices already configured with ceph-volume.
2026-07-21 08:47:24.709575 W | cephosd: skipping OSD configuration as no devices matched the storage settings for this node

Device details:

  • /dev/nvme5n1 (Dell NVMe ISE PS1030 6.4TB)
  • FSTYPE=crypto_LUKS, no ceph_fsid in cryptsetup luksDump output

Related issues

  • #15523 — Original feature request for wipeDevicesFromOtherClusters
  • #16488 — Encrypted wipe via LUKS header ceph_fsid