From c8e6abe4ad8bbc302ee636bc51373eeccbf23a91 Mon Sep 17 00:00:00 2001 From: Adam King Date: Mon, 19 Aug 2024 12:30:24 -0400 Subject: [PATCH] mgr/cephadm: add "original_weight" parameter to OSD class Fixes: https://tracker.ceph.com/issues/67329 Signed-off-by: Adam King (cherry picked from commit 04330f5df92994882efcd4879d5c37279138e97b) (cherry picked from commit 44914fafdd2dbf4a2a9296989bb3e151ed2c8967) --- src/pybind/mgr/cephadm/services/osd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/cephadm/services/osd.py b/src/pybind/mgr/cephadm/services/osd.py index 75b3fc58c761e..9b09b8c9f4925 100644 --- a/src/pybind/mgr/cephadm/services/osd.py +++ b/src/pybind/mgr/cephadm/services/osd.py @@ -621,7 +621,8 @@ class OSD: force: bool = False, hostname: Optional[str] = None, zap: bool = False, - no_destroy: bool = False): + no_destroy: bool = False, + original_weight: Optional[float] = None): # the ID of the OSD self.osd_id = osd_id @@ -656,7 +657,7 @@ class OSD: # mgr obj to make mgr/mon calls self.rm_util: RemoveUtil = remove_util - self.original_weight: Optional[float] = None + self.original_weight: Optional[float] = original_weight # Whether devices associated with the OSD should be zapped (DATA ERASED) self.zap = zap -- 2.39.5