← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1761487] Re: Nova, Unexpected API Error while creating VM

 

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-ae6c230c62da 04d3da9cc34a42dcbae24a380d04bffd fc6d09cb92104842b7e7f843a953fec8 - default default] Unexpected exception in API method: Unauthorized: Unknown auth type: None
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 788, in wrapped
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return f(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 553, in create
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     **create_kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 154, in inner
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     rv = f(*args, **kwargs)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1639, in create
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     tags=tags, supports_multiattach=supports_multiattach)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1086, in _create_instance
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     reservation_id, max_count)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 830, in _validate_and_build_base_options
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     pci_request_info, requested_networks)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1566, in create_pci_requests_for_sriov_ports
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     neutron = get_client(context, admin=True)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 153, in get_client
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     _ADMIN_AUTH = _load_auth_plugin(CONF)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 76, in _load_auth_plugin
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi     raise neutron_client_exc.Unauthorized(message=err_msg)
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi Unauthorized: Unknown auth type: None
2018-04-05 11:27:05.821 4205 ERROR nova.api.openstack.wsgi 

** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1761487

Title:
  Nova, Unexpected API Error while creating VM

Status in OpenStack Compute (nova):
  Invalid

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://bugs.launchpad.net/nova/ and attach the Nova API log if
  possible. <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP
  500) (Request-ID: req-70a6cb07-72d9-41f3-80aa-ae6c230c62da)

  The same error from command line:

  openstack server create --flavor Basic --image cirros \
  >   --nic net-id=f5f0b96c-ab0d-4025-aca3-d2de8f0e6139 --security-group default \
  >   --key-name demo selfservice-instance
  Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-3050043e-0baa-471b-8c64-3015b38cef56)

  Openstack: Queens

  root@controller:~# dpkg -l | grep nova
  ii  nova-api                            2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - API frontend
  ii  nova-common                         2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - common files
  ii  nova-conductor                      2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - conductor service
  ii  nova-consoleauth                    2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - Console Authenticator
  ii  nova-novncproxy                     2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - NoVNC proxy
  ii  nova-placement-api                  2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - placement API frontend
  ii  nova-scheduler                      2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - virtual machine scheduler
  ii  python-nova                         2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute Python libraries
  ii  python-novaclient                   2:9.1.1-0ubuntu1~cloud0                    all          client library for OpenStack Compute API - Python 2.7

  Libvirt + KVM

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1761487/+subscriptions


References