From: Juan Miguel Olmo Martínez Date: Fri, 3 Jul 2020 11:06:07 +0000 (+0200) Subject: mgr/rook: Fix error creating OSDs X-Git-Tag: v16.1.0~1758^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9fd4b481fc4d18e9794806167588d6c6cb1aa46a;p=ceph.git mgr/rook: Fix error creating OSDs 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 --- 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