Install guide and error message in logs is not clear that [neutron] auth must be configured in nova.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Pike |
Confirmed
|
Medium
|
Unassigned | ||
Queens |
Confirmed
|
Medium
|
Unassigned |
Bug Description
While trying to launch new instance on newly installed test OpenStack I get this error:
Unexpected API Error. Please report this at http://
The same error from command line:
openstack server create --flavor Basic --image cirros \
> --nic net-id=
> --key-name demo selfservice-
Unexpected API Error. Please report this at http://
<class 'neutronclient.
Openstack: Queens
root@controller:~# dpkg -l | grep nova
ii nova-api 2:17.0.
ii nova-common 2:17.0.
ii nova-conductor 2:17.0.
ii nova-consoleauth 2:17.0.
ii nova-novncproxy 2:17.0.
ii nova-placement-api 2:17.0.
ii nova-scheduler 2:17.0.
ii python-nova 2:17.0.
ii python-novaclient 2:9.1.1-
Libvirt + KVM
You don't have the [neutron] user credentials section of nova.conf configured:
2018-04-05 11:27:05.821 4205 ERROR nova.api. openstack. wsgi [req-70a6cb07- 72d9-41f3- 80aa-ae6c230c62 da 04d3da9cc34a42d cbae24a380d04bf fd fc6d09cb9210484 2b7e7f843a953fe c8 - default default] Unexpected exception in API method: Unauthorized: Unknown auth type: None openstack. wsgi Traceback (most recent call last): openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ openstack/ wsgi.py" , line 788, in wrapped openstack. wsgi return f(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ validation/ __init_ _.py", line 108, in wrapper openstack. wsgi return func(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/api/ openstack/ compute/ servers. py", line 553, in create openstack. wsgi **create_kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dist- packages/ nova/hooks. py", line 154, in inner openstack. wsgi rv = f(*args, **kwargs) openstack. wsgi File "/usr/lib/ python2. 7/dis.. .
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.
2018-04-05 11:27:05.821 4205 ERROR nova.api.