]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephadm: zap raw devices before OSD deployment 67953/head
authorRedouane Kachach <rkachach@ibm.com>
Mon, 23 Mar 2026 11:49:20 +0000 (12:49 +0100)
committerRedouane Kachach <rkachach@ibm.com>
Mon, 23 Mar 2026 12:28:32 +0000 (13:28 +0100)
commitf3c938f5032885434dd2ab77f9b2e6bc05917f3c
tree7d5f6b64fda7b4cf90431c10ccbc2cf2a67fd4b5
parent46977c46b5fda8745255af008a1df62001e79c7f
qa/cephadm: zap raw devices before OSD deployment

ceph_osds() assumes all teuthology scratch devices are clean
and directly usable by:

 > ceph orch apply osd --all-available-devices --method raw

However, in practice some devices may retain stale BlueStore metadata
(or other data) from previous runs. cephadm correctly skips such
devices, leading to fewer OSDs than expected and causing the test to
timeout waiting for an exact OSD count.

This change adds a pre-deployment cleanup step for `raw-osds` that:
- zaps any existing BlueStore metadata (`ceph-bluestore-tool zap-device`)
- removes filesystem signatures (`wipefs --all`)
- clears initial disk data (`dd`)

This ensures all scratch devices are truly available for OSD
deployment and prevents mismatches between expected and actual OSD
counts.

Fixes: https://tracker.ceph.com/issues/75218
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
qa/tasks/cephadm.py