Unable to create key pair while launching instance

asked 2017-01-12 22:43:54 -0500

DarkKnight gravatar image

I have Mitaka openstack installed(All-in-one setup). When i try to create a key pair, while launching an instance, I am getting keypair creation error.

I have checked the nova-api.logs and below is the traceback. Can someone guide me on this.

===========

2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions [req-ae57da0e-67f3-47c6-aef8-44ae297162d0 5febd1e767a84492b138a74ad1ee9af2 83ac35d687fe49fba704dac
8c78d4392 - - -] Unexpected exception in API method
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/keypairs.py", line 111, in cre
ate
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     return self._create(req, body)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/keypairs.py", line 132, in _cr
eate
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     context, user_id, name, key_type)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 110, in wrapped
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     payload)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     self.force_reraise()
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     six.reraise(self.type_, self.value, self.tb)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     return f(self, context, *args, **kw)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 4003, in create_key_pair
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions     user_id, key_type)
2017-01-13 10:05:11.808 4365 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages ...
(more)
edit retag flag offensive close merge delete

Comments

The log seems to indicate something is wrong with the paramiko library, perhaps a version mismatch.

Bernd Bausch gravatar imageBernd Bausch ( 2017-01-13 02:41:21 -0500 )edit