]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: do not skip unavailable devices
authorJoshua Schmid <jschmid@suse.de>
Fri, 2 Oct 2020 09:37:58 +0000 (11:37 +0200)
committerJan Fajerski <jfajerski@suse.com>
Wed, 7 Oct 2020 09:22:40 +0000 (11:22 +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>
(cherry picked from commit b9e3da39193419c3fd606a4cba586bea58c6e961)

src/python-common/ceph/deployment/drive_selection/selector.py

index 921f125616c25fd925a16f74bc6fef6c22273001..2b3e741e5f3c6d014a4667ff4979340cc4f32fb5 100644 (file)
@@ -114,11 +114,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(