yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74956
[Bug 1794914] [NEW] Nova API error when launch an instance
Public bug reported:
Steps to reproduce
==================
* I follow the guide of https://docs.openstack.org/install-guide/ install OpenStack Minimal deployment for Rocky
* When I launch an instance I received an error report(When following https://docs.openstack.org/install-guide/launch-instance-provider.html)
'''
发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-b79a0fb3-b899-4ff6-8729-28749be72261)
'''
Actual result
=============
An instance will be create.
Logs & Configs
==============
nova-api.log
'''
2018-09-28 11:31:22.307 20243 INFO nova.api.openstack.wsgi [req-8088fbc3-a73c-4eb8-ad62-e90930378eef 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] HTTP exception thrown: 云主机类型 m1.nano 没有找到。
2018-09-28 11:31:22.309 20243 INFO nova.osapi_compute.wsgi.server [req-8088fbc3-a73c-4eb8-ad62-e90930378eef 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "GET /v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 536 time: 0.0148969
2018-09-28 11:31:22.328 20243 INFO nova.osapi_compute.wsgi.server [req-5e8cab5a-08a6-4514-8d99-6ee6d34f6ad2 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "GET /v2.1/flavors HTTP/1.1" status: 200 len: 586 time: 0.0147769
2018-09-28 11:31:22.346 20243 INFO nova.osapi_compute.wsgi.server [req-c6b3ca90-82ce-44ac-afbb-e9d87e4c3c8d 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "GET /v2.1/flavors/0 HTTP/1.1" status: 200 len: 752 time: 0.0135961
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi [req-b79a0fb3-b899-4ff6-8729-28749be72261 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] Unexpected exception in API method: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-231cf4cb-26cb-43e5-a54f-977a6ccd4287)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 801, in wrapped
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return f(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 576, in create
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi **create_kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi rv = f(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1714, in create
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi trusted_certs=trusted_certs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1161, in _create_instance
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi reservation_id, max_count)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 818, in _validate_and_build_base_options
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi context, requested_networks, pci_request_info)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1875, in create_resource_requests
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi context, neutron, network_id)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1771, in _get_physnet_tunneled_info
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi if self._has_multi_provider_extension(context, neutron=neutron):
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1186, in _has_multi_provider_extension
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi self._refresh_neutron_extensions_cache(context, neutron=neutron)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1180, in _refresh_neutron_extensions_cache
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi extensions_list = neutron.list_extensions()['extensions']
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 776, in list_extensions
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.get(self.extensions_path, params=_params)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 354, in get
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi headers=headers)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 343, in do_request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.request(url, method, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 331, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi resp = super(SessionClient, self).request(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 213, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.session.request(url, method, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 684, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi auth_headers = self.get_auth_headers(auth)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1071, in get_auth_headers
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return auth.get_headers(self, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 95, in get_headers
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi token = self.get_token(session)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 88, in get_token
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.get_access(session).auth_token
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi self.auth_ref = self.get_auth_ref(session)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self._plugin.get_auth_ref(session, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 178, in get_auth_ref
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi authenticated=False, log=False, **rkwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1019, in post
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.request(url, 'POST', **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 869, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi raise exceptions.from_response(resp, method, url)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-231cf4cb-26cb-43e5-a54f-977a6ccd4287)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi
2018-09-28 11:31:23.339 20243 INFO nova.api.openstack.wsgi [req-b79a0fb3-b899-4ff6-8729-28749be72261 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] HTTP exception thrown: 发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<class 'keystoneauth1.exceptions.http.Unauthorized'>
2018-09-28 11:31:23.340 20243 INFO nova.osapi_compute.wsgi.server [req-b79a0fb3-b899-4ff6-8729-28749be72261 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "POST /v2.1/servers HTTP/1.1" status: 500 len: 755 time: 0.7916760
'''
nova.conf
'''
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:6289426f9f3f422fef37@controller
my_ip = 10.0.150.201
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy = keystone
[api_database]
connection = mysql+pymysql://nova:5d27bade0a879cc005fa@controller/nova_api
[barbican]
[cache]
[cells]
[cinder]
[compute]
[conductor]
[console]
[consoleauth]
[cors]
[database]
connection = mysql+pymysql://nova:5d27bade0a879cc005fa@controller/nova
[devices]
[ephemeral_storage_encryption]
[filter_scheduler]
[glance]
api_servers = http://controller:9292
[guestfs]
[healthcheck]
[hyperv]
[ironic]
[key_manager]
[keystone]
[keystone_authtoken]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = 8d7f57a16f5b2e7f5dfc
[libvirt]
[matchmaker_redis]
[metrics]
[mks]
[neutron]
url = http://controller:9696
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = NEUTRON_PASS
service_metadata_proxy = true
metadata_proxy_shared_secret = d666412a885bc0e8ffa6
[notifications]
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[pci]
[placement]
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:5000/v3
username = placement
password = c463be092c5116a180c8
[placement_database]
connection = mysql+pymysql://placement:5b892a85ba18d5df043c@controller/placement
[powervm]
[profiler]
[quota]
[rdp]
[remote_debug]
[scheduler]
[serial_console]
[service_user]
[spice]
[upgrade_levels]
[vault]
[vendordata_dynamic_auth]
[vmware]
[vnc]
enabled = true
server_listen = 10.0.150.201
server_proxyclient_address = 10.0.150.201
[workarounds]
[wsgi]
[xenserver]
[xvp]
[zvm]
'''
** Affects: nova
Importance: Undecided
Status: New
--
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/1794914
Title:
Nova API error when launch an instance
Status in OpenStack Compute (nova):
New
Bug description:
Steps to reproduce
==================
* I follow the guide of https://docs.openstack.org/install-guide/ install OpenStack Minimal deployment for Rocky
* When I launch an instance I received an error report(When following https://docs.openstack.org/install-guide/launch-instance-provider.html)
'''
发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-b79a0fb3-b899-4ff6-8729-28749be72261)
'''
Actual result
=============
An instance will be create.
Logs & Configs
==============
nova-api.log
'''
2018-09-28 11:31:22.307 20243 INFO nova.api.openstack.wsgi [req-8088fbc3-a73c-4eb8-ad62-e90930378eef 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] HTTP exception thrown: 云主机类型 m1.nano 没有找到。
2018-09-28 11:31:22.309 20243 INFO nova.osapi_compute.wsgi.server [req-8088fbc3-a73c-4eb8-ad62-e90930378eef 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "GET /v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 536 time: 0.0148969
2018-09-28 11:31:22.328 20243 INFO nova.osapi_compute.wsgi.server [req-5e8cab5a-08a6-4514-8d99-6ee6d34f6ad2 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "GET /v2.1/flavors HTTP/1.1" status: 200 len: 586 time: 0.0147769
2018-09-28 11:31:22.346 20243 INFO nova.osapi_compute.wsgi.server [req-c6b3ca90-82ce-44ac-afbb-e9d87e4c3c8d 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "GET /v2.1/flavors/0 HTTP/1.1" status: 200 len: 752 time: 0.0135961
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi [req-b79a0fb3-b899-4ff6-8729-28749be72261 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] Unexpected exception in API method: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-231cf4cb-26cb-43e5-a54f-977a6ccd4287)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 801, in wrapped
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return f(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 576, in create
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi **create_kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi rv = f(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1714, in create
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi trusted_certs=trusted_certs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1161, in _create_instance
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi reservation_id, max_count)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 818, in _validate_and_build_base_options
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi context, requested_networks, pci_request_info)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1875, in create_resource_requests
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi context, neutron, network_id)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1771, in _get_physnet_tunneled_info
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi if self._has_multi_provider_extension(context, neutron=neutron):
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1186, in _has_multi_provider_extension
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi self._refresh_neutron_extensions_cache(context, neutron=neutron)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1180, in _refresh_neutron_extensions_cache
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi extensions_list = neutron.list_extensions()['extensions']
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 776, in list_extensions
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.get(self.extensions_path, params=_params)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 354, in get
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi headers=headers)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 343, in do_request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.request(url, method, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 331, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi resp = super(SessionClient, self).request(*args, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 213, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.session.request(url, method, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 684, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi auth_headers = self.get_auth_headers(auth)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1071, in get_auth_headers
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return auth.get_headers(self, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 95, in get_headers
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi token = self.get_token(session)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 88, in get_token
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.get_access(session).auth_token
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi self.auth_ref = self.get_auth_ref(session)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self._plugin.get_auth_ref(session, **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 178, in get_auth_ref
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi authenticated=False, log=False, **rkwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1019, in post
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi return self.request(url, 'POST', **kwargs)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 869, in request
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi raise exceptions.from_response(resp, method, url)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-231cf4cb-26cb-43e5-a54f-977a6ccd4287)
2018-09-28 11:31:23.337 20243 ERROR nova.api.openstack.wsgi
2018-09-28 11:31:23.339 20243 INFO nova.api.openstack.wsgi [req-b79a0fb3-b899-4ff6-8729-28749be72261 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] HTTP exception thrown: 发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<class 'keystoneauth1.exceptions.http.Unauthorized'>
2018-09-28 11:31:23.340 20243 INFO nova.osapi_compute.wsgi.server [req-b79a0fb3-b899-4ff6-8729-28749be72261 752b17edb56d4f62bf2332420e640b39 aea3205a1c29470297040acfd40a6bac - default default] 10.0.150.201 "POST /v2.1/servers HTTP/1.1" status: 500 len: 755 time: 0.7916760
'''
nova.conf
'''
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:6289426f9f3f422fef37@controller
my_ip = 10.0.150.201
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy = keystone
[api_database]
connection = mysql+pymysql://nova:5d27bade0a879cc005fa@controller/nova_api
[barbican]
[cache]
[cells]
[cinder]
[compute]
[conductor]
[console]
[consoleauth]
[cors]
[database]
connection = mysql+pymysql://nova:5d27bade0a879cc005fa@controller/nova
[devices]
[ephemeral_storage_encryption]
[filter_scheduler]
[glance]
api_servers = http://controller:9292
[guestfs]
[healthcheck]
[hyperv]
[ironic]
[key_manager]
[keystone]
[keystone_authtoken]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = 8d7f57a16f5b2e7f5dfc
[libvirt]
[matchmaker_redis]
[metrics]
[mks]
[neutron]
url = http://controller:9696
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = NEUTRON_PASS
service_metadata_proxy = true
metadata_proxy_shared_secret = d666412a885bc0e8ffa6
[notifications]
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[pci]
[placement]
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:5000/v3
username = placement
password = c463be092c5116a180c8
[placement_database]
connection = mysql+pymysql://placement:5b892a85ba18d5df043c@controller/placement
[powervm]
[profiler]
[quota]
[rdp]
[remote_debug]
[scheduler]
[serial_console]
[service_user]
[spice]
[upgrade_levels]
[vault]
[vendordata_dynamic_auth]
[vmware]
[vnc]
enabled = true
server_listen = 10.0.150.201
server_proxyclient_address = 10.0.150.201
[workarounds]
[wsgi]
[xenserver]
[xvp]
[zvm]
'''
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1794914/+subscriptions
Follow ups