]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: dump console log if ssh_keyscan failed 1254/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 4 Feb 2019 18:07:40 +0000 (19:07 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Mon, 4 Feb 2019 23:13:15 +0000 (00:13 +0100)
Dump server's console log if ssh_keyscan failed

Signed-off-by: Kyr <kyrylo.shatskyy@gmail.com>
teuthology/provision/openstack.py

index b16041e502922a35916aa1aaaac59938c19083cd..49adaf0fa65679e396991a737afcf4a3950de5aa 100644 (file)
@@ -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):