From: Kyr Shatskyy Date: Mon, 4 Feb 2019 18:07:40 +0000 (+0100) Subject: openstack: dump console log if ssh_keyscan failed X-Git-Tag: 1.1.0~272^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1254%2Fhead;p=teuthology.git openstack: dump console log if ssh_keyscan failed Dump server's console log if ssh_keyscan failed Signed-off-by: Kyr --- diff --git a/teuthology/provision/openstack.py b/teuthology/provision/openstack.py index b16041e50..49adaf0fa 100644 --- a/teuthology/provision/openstack.py +++ b/teuthology/provision/openstack.py @@ -158,6 +158,9 @@ class ProvisionOpenStack(OpenStack): instance['ID']) fqdn = name + '.' + config.lab_domain if not misc.ssh_keyscan_wait(fqdn): + console_log = misc.sh("openstack console log show %s " + "|| true" % instance['ID']) + log.error(console_log) raise ValueError('ssh_keyscan_wait failed for ' + fqdn) time.sleep(15) if not self.cloud_init_wait(instance):