From: Joshua Schmid Date: Fri, 2 Oct 2020 09:37:58 +0000 (+0200) Subject: python-common: do not skip unavailable devices X-Git-Tag: v15.2.9~122^2~28^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7986138a508d5d9c7acfcd012eed83860062c805;p=ceph.git python-common: do not skip unavailable devices 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 (cherry picked from commit b9e3da39193419c3fd606a4cba586bea58c6e961) --- diff --git a/src/python-common/ceph/deployment/drive_selection/selector.py b/src/python-common/ceph/deployment/drive_selection/selector.py index 921f125616c..2b3e741e5f3 100644 --- a/src/python-common/ceph/deployment/drive_selection/selector.py +++ b/src/python-common/ceph/deployment/drive_selection/selector.py @@ -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(