Paramiko doesn't work with Nova
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
It looks like Paramiko 2.0.0 again breaks nova which currently has a requirement for 'paramiko>=1.16.0 # LGPL'.
nova.tests.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
File "/root/
File "/root/
File "/root/
mismatch = matcher.
File "/root/
mismatch = self.exception_
File "/root/
mismatch = matcher.
File "/root/
File "/root/
result = matchee()
File "/root/
return self._callable_
File "nova/api/
return func.func(self, *args, **kwargs)
File "nova/api/
raise webob.exc.
webob.
<type 'exceptions.
Captured pythonlogging:
~~~~~~~
2016-05-25 09:55:14,571 INFO [nova.api.
2016-05-25 09:55:16,314 ERROR [nova.api.
Traceback (most recent call last):
File "nova/api/
return f(*args, **kwargs)
File "nova/api/
return func(*args, **kwargs)
File "nova/api/
return self._create(req, body, type=True, user_id=user_id)
File "nova/api/
context, user_id, name, key_type)
File "nova/exception
payload)
File "/root/
File "/root/
File "nova/exception
return f(self, context, *args, **kw)
File "nova/compute/
user_id, key_type)
File "nova/compute/
return crypto.
File "nova/crypto.py", line 152, in generate_key_pair
key = generate_key(bits)
File "nova/crypto.py", line 144, in generate_key
key = paramiko.
TypeError: __init__() got an unexpected keyword argument 'vals'
Paramiko 2.0 got released 26 days ago with [1]. Nova put a workaround in place to work with paramiko 2.x 21 days ago [2]. After that, we bumped the version in the global requirements to 2.0 [3]. I tested it locally with commit 9d99081 (Newton master) and it works for me. I also didn't find the error message in logstash. I could reproduce this issue when I used stable/Mitaka and upgraded from the pinned version paramiko 1.16 to paramiko 2.0 manually.
All of this makes me believe that your setup could be in a weird state. I'm closing this for now. If you can reproduce it, feel free to reopen.
References: /github. com/paramiko/ paramiko/ commit/ 258cc64ab36b58c 681aa974151288f c7ddc1bb31 /github. com/openstack/ nova/commit/ c05b338f163e0ba fbe564c6c7c593b 819f2f2eac /github. com/openstack/ requirements/ commit/ e379813e9ccd411 38af969f4c8e57a bd062af527
[1] https:/
[2] https:/
[3] https:/