From: Redouane Kachach Date: Thu, 22 Feb 2024 09:19:06 +0000 (+0100) Subject: mgr/rook: adding empty calls to upgrade_ls and upgrade_status X-Git-Tag: v19.1.0~282^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c945ac45e7c7cc4da919c3f70b6bd69d55fadfff;p=ceph.git mgr/rook: adding empty calls to upgrade_ls and upgrade_status added empty calls to upgrade_ls and upgrade_status to avoid dashboard errors when entering the view Cluster > Upgrade. Empty calls are used because we don't support the upgrade functionality in rook as we do for normal Ceph deployments. In case of rook user has to follow a different process to upgrade Ceph. Fixes: https://tracker.ceph.com/issues/64516 Signed-off-by: Redouane Kachach --- diff --git a/src/pybind/mgr/rook/module.py b/src/pybind/mgr/rook/module.py index afd789a8ba23..34ed15bc67b3 100644 --- a/src/pybind/mgr/rook/module.py +++ b/src/pybind/mgr/rook/module.py @@ -631,3 +631,11 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator): @handle_orch_error def blink_device_light(self, ident_fault: str, on: bool, locs: List[orchestrator.DeviceLightLoc]) -> List[str]: return self.rook_cluster.blink_light(ident_fault, on, locs) + + @handle_orch_error + def upgrade_status(self) -> orchestrator.UpgradeStatusSpec: + return orchestrator.UpgradeStatusSpec() + + @handle_orch_error + def upgrade_ls(self, image: Optional[str], tags: bool, show_all_versions: Optional[bool]) -> Dict[Any, Any]: + return {}