MCPcopy Create free account
hub / github.com/ceph/ceph / revive_mgr

Method revive_mgr

qa/tasks/ceph_manager.py:3304–3316  ·  view source on GitHub ↗

Restart by either power cycling (if the config says so), or by doing a normal restart.

(self, mgr)

Source from the content-addressed store, hash-verified

3302 self.ctx.daemons.get_daemon('mon', mon, self.cluster).restart()
3303
3304 def revive_mgr(self, mgr):
3305 """
3306 Restart by either power cycling (if the config says so),
3307 or by doing a normal restart.
3308 """
3309 if self.config.get('powercycle'):
3310 remote = self.find_remote('mgr', mgr)
3311 self.log('revive_mgr on mgr.{m} doing powercycle of {s}'.
3312 format(m=mgr, s=remote.name))
3313 self._assert_ipmi(remote)
3314 remote.console.power_on()
3315 self.make_admin_daemon_dir(remote)
3316 self.ctx.daemons.get_daemon('mgr', mgr, self.cluster).restart()
3317
3318 def get_crush_rule_id(self, crush_rule_name):
3319 """

Callers 2

_revive_mgrsFunction · 0.80

Calls 8

find_remoteMethod · 0.95
_assert_ipmiMethod · 0.95
make_admin_daemon_dirMethod · 0.95
getMethod · 0.45
logMethod · 0.45
formatMethod · 0.45
restartMethod · 0.45
get_daemonMethod · 0.45

Tested by 1