Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 9971137

Browse files
committed
Return representive state data for module migrate_mds
Signed-off-by: Tobias Wolf <[email protected]>
1 parent 6604ec2 commit 9971137

File tree

1 file changed

+10
-1
lines changed
  • src/rookify/modules/migrate_mds

1 file changed

+10
-1
lines changed

src/rookify/modules/migrate_mds/main.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
from time import sleep
4-
from typing import Any
4+
from typing import Any, Dict
55
from ..exception import ModuleException
66
from ..machine import Machine
77
from ..module import ModuleHandler
@@ -139,6 +139,15 @@ def _enable_rook_based_mds(self, mds_host: str) -> None:
139139
"Rook based ceph-mds daemon node '{0}' available".format(mds_host)
140140
)
141141

142+
def get_readable_key_value_state(self) -> Dict[str, str]:
143+
state_data = self.machine.get_preflight_state("AnalyzeCephHandler").data
144+
145+
return {
146+
"ceph MDS daemons": self._get_readable_json_dump(
147+
list(state_data["node"]["ls"]["mds"].keys())
148+
)
149+
}
150+
142151
@staticmethod
143152
def register_execution_state(
144153
machine: Machine, state_name: str, handler: ModuleHandler, **kwargs: Any

0 commit comments

Comments
 (0)