X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Frook%2Frook_cluster.py;h=05c533ae85762a0ea78c381120df0df1b0083651;hb=e306af509c4d4816a1f73b17a825ea5186fa0030;hp=cd4b58990039c88b2d659a5f7d33d389bd724582;hpb=5164c6f75c1d9ca9e83f6172e1cd48f9ab584acf;p=ceph.git diff --git a/ceph/src/pybind/mgr/rook/rook_cluster.py b/ceph/src/pybind/mgr/rook/rook_cluster.py index cd4b58990..05c533ae8 100644 --- a/ceph/src/pybind/mgr/rook/rook_cluster.py +++ b/ceph/src/pybind/mgr/rook/rook_cluster.py @@ -521,7 +521,7 @@ class RookCluster(object): return new return self._patch(cnfs.CephNFS, 'cephnfses',svc_id, _update_nfs_count) - def add_osds(self, drive_group, all_hosts): + def add_osds(self, drive_group, matching_hosts): # type: (DriveGroupSpec, List[str]) -> str """ Rook currently (0.8) can only do single-drive OSDs, so we @@ -543,7 +543,7 @@ class RookCluster(object): new_cluster.spec.storage.nodes = ccl.NodesList() current_nodes = getattr(current_cluster.spec.storage, 'nodes', ccl.NodesList()) - matching_host = drive_group.placement.pattern_matches_hosts(all_hosts)[0] + matching_host = matching_hosts[0] if matching_host not in [n.name for n in current_nodes]: pd = ccl.NodesItem(