Skip to content

Commit d824803

Browse files
authored
Merge pull request ceph#62733 from adk3798/cephadm-rm-cluster-zap-devices-fix
cephadm: check "ceph_device_lvm" field instead of "ceph_device" during zap Reviewed-by: Guillaume Abrioux <[email protected]> Reviewed-by: Shweta Bhosale <[email protected]>
2 parents 5135b54 + fd8a05b commit d824803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cephadm/cephadm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3936,7 +3936,7 @@ def _zap_osds(ctx: CephadmContext) -> None:
39363936
raise Error(f'Invalid JSON in ceph-volume inventory: {e}')
39373937

39383938
for i in ls:
3939-
matches = [lv.get('cluster_fsid') == ctx.fsid and i.get('ceph_device') for lv in i.get('lvs', [])]
3939+
matches = [lv.get('cluster_fsid') == ctx.fsid and i.get('ceph_device_lvm') for lv in i.get('lvs', [])]
39403940
if any(matches) and all(matches):
39413941
_zap(ctx, i.get('path'))
39423942
elif any(matches):

0 commit comments

Comments
 (0)