]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: allow zapping devices from other clusters 43826/head
authorSage Weil <sage@newdream.net>
Fri, 5 Nov 2021 18:36:54 +0000 (14:36 -0400)
committerSage Weil <sage@newdream.net>
Fri, 5 Nov 2021 18:45:44 +0000 (14:45 -0400)
This is the 99% of the devices that ever get zapped.

Fixes: b7782084ac9657be9b2da6ebd56b5029cf859225
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/module.py

index 5b82e625a2955429eb695062f8fe4a060ddbd70f..b3a7da5abc9466ac0968a09e81194d86b2a56380 100644 (file)
@@ -2030,15 +2030,6 @@ Then run the following:
 
         for dev in host_devices:
             if dev.path == path:
-                # match, so look a little deeper
-                if dev.lvs:
-                    for lv in cast(List[Dict[str, str]], dev.lvs):
-                        if lv.get('osd_id', ''):
-                            lv_fsid = lv.get('cluster_fsid')
-                            if lv_fsid != self._cluster_fsid:
-                                raise OrchestratorError(
-                                    f"device {path} has lv's from a different Ceph cluster ({lv_fsid})")
-                            osd_id_list.append(lv.get('osd_id', ''))
                 path_found = True
                 break
         if not path_found: