Comment 3 for bug 1585515

Revision history for this message
Sam Morrison (sorrison) wrote :

I'm using stable/mitaka and the requirements have:

paramiko>=1.16.0

This currently pulls in

paramiko==2.0.2

Which breaks nova when trying to create a keypair with the following stacktrace:

Traceback (most recent call last):
  File "/opt/nova/nova/api/openstack/extensions.py", line 478, in wrapped
    return f(*args, **kwargs)
  File "/opt/nova/nova/api/validation/__init__.py", line 73, in wrapper
    return func(*args, **kwargs)
  File "/opt/nova/nova/api/validation/__init__.py", line 73, in wrapper
    return func(*args, **kwargs)
  File "/opt/nova/nova/api/openstack/compute/keypairs.py", line 111, in create
    return self._create(req, body)
  File "/opt/nova/nova/api/openstack/compute/keypairs.py", line 132, in _create
    context, user_id, name, key_type)
  File "/opt/nova/nova/exception.py", line 110, in wrapped
    payload)
  File "/opt/mitaka/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/opt/mitaka/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/opt/nova/nova/exception.py", line 89, in wrapped
    return f(self, context, *args, **kw)
  File "/opt/nova/nova/compute/api.py", line 4073, in create_key_pair
    user_id, key_type)
  File "/opt/nova/nova/compute/api.py", line 4095, in _generate_key_pair
    return crypto.generate_key_pair()
  File "/opt/nova/nova/crypto.py", line 185, in generate_key_pair
    key = generate_key(bits)
  File "/opt/nova/nova/crypto.py", line 177, in generate_key
    key = paramiko.RSAKey(vals=(rsa.e, rsa.n))
TypeError: __init__() got an unexpected keyword argument 'vals'