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

Method kill_mon

qa/tasks/ceph_manager.py:3276–3288  ·  view source on GitHub ↗

Kill the monitor by either power cycling (if the config says so), or by doing a stop.

(self, mon)

Source from the content-addressed store, hash-verified

3274 self.cluster).signal(sig, silent=silent)
3275
3276 def kill_mon(self, mon):
3277 """
3278 Kill the monitor by either power cycling (if the config says so),
3279 or by doing a stop.
3280 """
3281 if self.config.get('powercycle'):
3282 remote = self.find_remote('mon', mon)
3283 self.log('kill_mon on mon.{m} doing powercycle of {s}'.
3284 format(m=mon, s=remote.name))
3285 self._assert_ipmi(remote)
3286 remote.console.power_off()
3287 else:
3288 self.ctx.daemons.get_daemon('mon', mon, self.cluster).stop()
3289
3290 def revive_mon(self, mon):
3291 """

Callers 2

taskFunction · 0.95
_nuke_monsFunction · 0.45

Calls 7

find_remoteMethod · 0.95
_assert_ipmiMethod · 0.95
getMethod · 0.45
logMethod · 0.45
formatMethod · 0.45
stopMethod · 0.45
get_daemonMethod · 0.45

Tested by

no test coverage detected