From 9fd4b481fc4d18e9794806167588d6c6cb1aa46a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juan=20Miguel=20Olmo=20Mart=C3=ADnez?= Date: Fri, 3 Jul 2020 13:06:07 +0200 Subject: [PATCH] mgr/rook: Fix error creating OSDs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit https://github.com/ceph/ceph/pull/34860 broke Rook Integration tests (Rook orchestrator module) This fix the error that can be seen in: https://jenkins.rook.io/blue/rest/organizations/jenkins/pipelines/rook/pipelines/rook/branches/master/runs/2046/nodes/63/steps/121/log/?start=0 Signed-off-by: Juan Miguel Olmo Martínez --- src/pybind/mgr/rook/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pybind/mgr/rook/module.py b/src/pybind/mgr/rook/module.py index 4b12d8e781a1..64fcff99c8d9 100644 --- a/src/pybind/mgr/rook/module.py +++ b/src/pybind/mgr/rook/module.py @@ -493,8 +493,7 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator): def execute(all_hosts_): # type: (List[orchestrator.HostSpec]) -> orchestrator.Completion - all_hosts = [h.hostname for h in all_hosts_] - matching_hosts = drive_group.placement.filter_matching_hosts(lambda label=None, as_hostspec=None: all_hosts) + matching_hosts = drive_group.placement.filter_matching_hosts(lambda label=None, as_hostspec=None: all_hosts_) assert len(matching_hosts) == 1 -- 2.47.3