Skip to content

Commit 3928995

Browse files
committed
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 <[email protected]>
1 parent b985f57 commit 3928995

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pybind/mgr/rook/module.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,3 +766,11 @@ def has_osds(matching_hosts: List[str]) -> bool:
766766
@handle_orch_error
767767
def blink_device_light(self, ident_fault: str, on: bool, locs: List[orchestrator.DeviceLightLoc]) -> List[str]:
768768
return self.rook_cluster.blink_light(ident_fault, on, locs)
769+
770+
@handle_orch_error
771+
def upgrade_status(self) -> orchestrator.UpgradeStatusSpec:
772+
return orchestrator.UpgradeStatusSpec()
773+
774+
@handle_orch_error
775+
def upgrade_ls(self, image: Optional[str], tags: bool, show_all_versions: Optional[bool]) -> Dict[Any, Any]:
776+
return {}

0 commit comments

Comments
 (0)