]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rook: adding empty calls to upgrade_ls and upgrade_status 55686/head
authorRedouane Kachach <rkachach@redhat.com>
Wed, 21 Feb 2024 07:27:53 +0000 (08:27 +0100)
committerRedouane Kachach <rkachach@redhat.com>
Wed, 21 Feb 2024 07:32:13 +0000 (08:32 +0100)
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 <rkachach@redhat.com>
src/pybind/mgr/rook/module.py

index ca2d168db636e1c08c3dbebf5bb74abd1f8e9084..16ad3b4582846c8d2c04a82eeb979b9e486170af 100644 (file)
@@ -766,3 +766,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 {}