]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: do not skip unavailable devices 37524/head
authorJoshua Schmid <jschmid@suse.de>
Fri, 2 Oct 2020 09:37:58 +0000 (11:37 +0200)
committerJoshua Schmid <jschmid@suse.de>
Fri, 2 Oct 2020 09:46:06 +0000 (11:46 +0200)
Fixes: https://tracker.ceph.com/issues/47726
We should assemble the device set based on the drivegroups in
mgr/cephadm (regardless of their availability) and pass it to c-v.

This patch is the missing piece to actually do this.

related changes: https://github.com/ceph/ceph/pull/34740/commits/7d168ad7bdbb6d6d5231a4ae540ab03040b49a38

Signed-off-by: Joshua Schmid <jschmid@suse.de>
src/python-common/ceph/deployment/drive_selection/selector.py

index 681be39b245da59f72abaa625e9e49ea67263ef1..e7e2edf7e59941e63f4c08c8e5573a89a3136098 100644 (file)
@@ -115,11 +115,6 @@ class DriveSelection(object):
         for disk in self.disks:
             logger.debug("Processing disk {}".format(disk.path))
 
-            if not disk.available:
-                logger.debug(
-                    "Ignoring disk {}. Disk is not available".format(disk.path))
-                continue
-
             if not self._has_mandatory_idents(disk):
                 logger.debug(
                     "Ignoring disk {}. Missing mandatory idents".format(