openstack server create:Unexpected API Error

asked 2016-11-09 05:59:20 -0500

ryan_chen gravatar image

updated 2016-11-09 21:05:57 -0500

When I run: [root@controller ~]# openstack server create --flavor m1.nano --image cirros --nic net-id="f6717d42-612c-4d90-9934-bb3811340448" --security-group default --key-name mykey selfservice-instance

It get: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. (HTTP 500) (Request-ID: req-31b400f6-0aba-46a7-b052-ed86152a63bd)

nova-api log message:

2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions [req-071df557-b090-4f44-bc48-7f60781258be acb09fe5a6c74892b5ec9b3f07237da1 9a74a1045cca4d01a1fe53d6eaf12cd9 - default default] Unexpected exception in API method
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, in wrapped
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 631, in create
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     **create_kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1527, in create
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1127, in _create_instance
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions     reservation_id, max_count)
2016-11-09 19:54:33.300 3904 ERROR nova.api.openstack.extensions   File "/usr ...
(more)
edit retag flag offensive close merge delete

Comments

Probably you didn't set the auth_type config value in nova.conf:

[neutron]
auth_type = password

(or something similar)

See also http://docs.openstack.org/mitaka/inst...

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-09 21:12:04 -0500 )edit

This is an old thread, but I'm getting the same error with pike. Did you ever resolve this issue? I've double checked nova.conf and all params are set for the [neutron] section according to the installation guide.

Markvr4 gravatar imageMarkvr4 ( 2017-10-16 17:34:17 -0500 )edit