From 28c91b8a64c9215ced8b3f4a36901ea44fccc45d Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Tue, 27 Oct 2020 17:42:40 +0100 Subject: [PATCH] orchestra/console: raise RuntimeError when fail to power on Fixes: https://tracker.ceph.com/issues/45570 Signed-off-by: Nathan Cutler --- teuthology/orchestra/console.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/orchestra/console.py b/teuthology/orchestra/console.py index d5be782303..2c594f279d 100644 --- a/teuthology/orchestra/console.py +++ b/teuthology/orchestra/console.py @@ -239,7 +239,8 @@ class PhysicalConsole(RemoteConsole): if self.check_power('on'): log.info('Power on for {s} completed'.format(s=self.shortname)) else: - log.error('Failed to power on {s}'.format(s=self.shortname)) + err_msg = 'Failed to power on {s}'.format(s=self.shortname) + raise RuntimeError(err_msg) def power_off(self): """ -- 2.39.5