can not create Key Pair (Mitaka allinone )

Bug #1793630 reported by alpine
2
Affects Status Importance Assigned to Milestone
python-openstack-compute (Ubuntu)
New
Undecided
Unassigned

Bug Description

when exec
[root@po03 ~(keystone_admin)]# openstack keypair create new_01
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.TypeError'> (HTTP 500) (Request-ID: req-1a3e7266-1634-4d78-bb84-d23812d4d757)

and the nova-log:
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions [req-23573c04-bc81-4dc6-ada3-69a8c96c4265 a697fc38f599436a9cb2b88871c771f7 5c4832be36c74d69adaffc5b4a733115 - - -] Unexpected exception in API method
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/keypairs.py", line 111, in create
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions return self._create(req, body)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/keypairs.py", line 132, in _create
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions context, user_id, name, key_type)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/exception.py", line 110, in wrapped
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions payload)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions self.force_reraise()
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions six.reraise(self.type_, self.value, self.tb)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions return f(self, context, *args, **kw)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 4003, in create_key_pair
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions user_id, key_type)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 4025, in _generate_key_pair
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions return crypto.generate_key_pair()
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/crypto.py", line 185, in generate_key_pair
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions key = generate_key(bits)
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/crypto.py", line 177, in generate_key
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions key = paramiko.RSAKey(vals=(rsa.e, rsa.n))
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions TypeError: __init__() got an unexpected keyword argument 'vals'
2018-09-21 20:09:22.027 20783 ERROR nova.api.openstack.extensions
2018-09-21 20:09:22.029 20783 INFO nova.api.openstack.wsgi [req-23573c04-bc81-4dc6-ada3-69a8c96c4265 a697fc38f599436a9cb2b88871c771f7 5c4832be36c74d69adaffc5b4a733115 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.TypeError'>
2018-09-21 20:09:22.031 20783 INFO nova.osapi_compute.wsgi.server [req-23573c04-bc81-4dc6-ada3-69a8c96c4265 a697fc38f599436a9cb2b88871c771f7 5c4832be36c74d69adaffc5b4a733115 - - -] 192.168.10.100 "POST /v2/5c4832be36c74d69adaffc5b4a733115/os-keypairs HTTP/1.1" status: 500 len: 424 time: 0.3867431

How to solve this ???

alpine (alpine-zq)
summary: - can create Key Pair
+ can not create Key Pair
summary: - can not create Key Pair
+ can not create Key Pair (Mitaka allinone )
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.