Kill the monitor by either power cycling (if the config says so), or by doing a stop.
(self, mon)
| 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 | """ |
no test coverage detected