Looks like the nova-api service isn't configured properly for
authenticating to neutron, make sure the [neutron] section of your nova
configuration is set for working with neutron. See:

https://docs.openstack.org/neutron/latest/install/controller-install-
ubuntu.html#configure-the-compute-service-to-use-the-networking-service

** 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/1840430

Title:
  创建虚拟机出错

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  2019-08-16 17:13:51.274 8884 INFO nova.osapi_compute.wsgi.server 
[req-71681a14-7b44-471f-8060-30419a0924b2 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] 192.168.1.115 "GET /v2.1 
HTTP/1.1" status: 302 len: 249 time: 0.1194441
  2019-08-16 17:13:51.279 8884 INFO nova.osapi_compute.wsgi.server 
[req-45b7dc8c-f676-40ee-9c41-6698fce3a636 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] 192.168.1.115 "GET /v2.1/ 
HTTP/1.1" status: 200 len: 720 time: 0.0041459
  2019-08-16 17:13:51.402 8884 INFO nova.api.openstack.wsgi 
[req-15a014b2-b96a-43bf-b0c7-dd378bb551b3 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] HTTP 异常抛出:云主机类型 m1.tiny 
没有找到。
  2019-08-16 17:13:51.403 8884 INFO nova.osapi_compute.wsgi.server 
[req-15a014b2-b96a-43bf-b0c7-dd378bb551b3 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] 192.168.1.115 "GET 
/v2.1/flavors/m1.tiny HTTP/1.1" status: 404 len: 472 time: 0.0161059
  2019-08-16 17:13:51.422 8884 INFO nova.osapi_compute.wsgi.server 
[req-9136c449-1258-44ce-abbd-46e560724f29 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] 192.168.1.115 "GET 
/v2.1/flavors?is_public=None HTTP/1.1" status: 200 len: 1780 time: 0.0171521
  2019-08-16 17:13:51.437 8884 INFO nova.osapi_compute.wsgi.server 
[req-66e55bfa-f1de-4727-9853-d6bc833abf36 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] 192.168.1.115 "GET 
/v2.1/flavors/cadf12b6-fa82-4e33-a933-b222a2525622 HTTP/1.1" status: 200 len: 
800 time: 0.0120480
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions 
[req-752381d2-f28e-4907-a536-7169473f9698 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] 在API方法中发生未预料的异常
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions Traceback 
(most recent call last):
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, 
in wrapped
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     return 
f(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     return 
func(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     return 
func(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     return 
func(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     return 
func(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     return 
func(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     return 
func(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 
642, in create
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     
**create_kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     rv = 
f(*args, **kwargs)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1634, in create
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     
check_server_group_quota=check_server_group_quota)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1197, in 
_create_instance
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     
reservation_id, max_count)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/compute/api.py", line 913, in 
_validate_and_build_base_options
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     
pci_request_info, requested_networks)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1478, in 
create_pci_requests_for_sriov_ports
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     neutron 
= get_client(context, admin=True)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 151, in 
get_client
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     
_ADMIN_AUTH = _load_auth_plugin(CONF)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 74, in 
_load_auth_plugin
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions     raise 
neutron_client_exc.Unauthorized(message=err_msg)
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions 
Unauthorized: Unknown auth type: None
  2019-08-16 17:13:51.709 8884 ERROR nova.api.openstack.extensions 
  2019-08-16 17:13:51.713 8884 INFO nova.api.openstack.wsgi 
[req-752381d2-f28e-4907-a536-7169473f9698 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] HTTP 异常抛出:发生意外 API 错误。请在 
http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
  <class 'neutronclient.common.exceptions.Unauthorized'>
  2019-08-16 17:13:51.713 8884 INFO nova.osapi_compute.wsgi.server 
[req-752381d2-f28e-4907-a536-7169473f9698 7a29e10f16db4e4a938f9b73b2599310 
81018e90418c4a708459ee88bf9a734c - default default] 192.168.1.115 "POST 
/v2.1/servers HTTP/1.1" status: 500 len: 693 time: 0.2751999

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to