diff options
author | Dan Prince <dprince@redhat.com> | 2012-10-09 13:28:11 -0400 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2012-10-09 13:29:31 -0400 |
commit | ea3f31b7e9e5afb6ca7905809be520800764841d (patch) | |
tree | 7333512614becf1c1ba1de67ca405b4513ce101c /smoketests | |
parent | 36b85251ab15d97441422c0b85dc0eb025d2f0cf (diff) | |
download | nova-ea3f31b7e9e5afb6ca7905809be520800764841d.tar.gz nova-ea3f31b7e9e5afb6ca7905809be520800764841d.tar.xz nova-ea3f31b7e9e5afb6ca7905809be520800764841d.zip |
Use paramiko.AutoAddPolicy for the smoketests.
Updates the Nova smoketests so that we use Paramiko's auto
add ssh key policy. This should help quiet down warnings like
this which we previously got when running the EC2 smoketests
with Nova:
/usr/lib/python2.7/site-packages/paramiko/client.py:95: UserWarning:
Unknown ssh-rsa host key for 172.20.0.3:
adb1c2f1fe461a35cd01283eac03d6fb
Fixes LP Bug #1064550.
Change-Id: I1611a3f6b54563b6a1d64c4f8e193a636ccb1c69
Diffstat (limited to 'smoketests')
-rw-r--r-- | smoketests/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketests/base.py b/smoketests/base.py index aa0a0aae2..93f78f5dc 100644 --- a/smoketests/base.py +++ b/smoketests/base.py @@ -41,7 +41,7 @@ class SmokeTestCase(unittest.TestCase): while(True): try: client = paramiko.SSHClient() - client.set_missing_host_key_policy(paramiko.WarningPolicy()) + client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(ip, username='root', pkey=key, timeout=5) return client except (paramiko.AuthenticationException, paramiko.SSHException): |