]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
misc: Reimplement host key scanning 1128/head
authorZack Cerza <zack@redhat.com>
Tue, 28 Nov 2017 01:57:29 +0000 (18:57 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 29 Nov 2017 00:04:25 +0000 (17:04 -0700)
commita41247c4dc48238ef779926a8df176235af50899
treed2cf60a9415fed29dbd8a8b3d2b820dd2f628be0
parent8f54ce76a969d3d6e049b3fdf5d2cf0046acf961
misc: Reimplement host key scanning

We're seeing very intermittent issues with ssh-keyscan; sometimes given
N hostnames, it only returns N-1 keys. Lack of an error message adds to
the confusion. The solution is to call ssh-keyscan once for each host
instead of batching them together - with a few retries - so that we can
easily ensure we get the right amount. If we do not, raise a
RuntimeError.

Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit daa28ae9210e1a845840ec80776bd211df2e97e9)
teuthology/misc.py