yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #67322
[Bug 1715615] Re: it throws 'Unexpected API Error ' when i try to create first instance
** 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/1715615
Title:
it throws 'Unexpected API Error ' when i try to create first instance
Status in OpenStack Compute (nova):
Invalid
Bug description:
I have finished installation nova refer to office installation guide. (Mitaka)
But when i try to create my first instance ,it throws '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-0d13ed58-6275-44fb-9a71-2284deb58739)
'
I try to print log on control node.(/var/log/nova/nova-api.log).
'
2017-09-07 18:47:40.106 6791 INFO nova.osapi_compute.wsgi.server [req-ab3bfbc2-bd0d-497a-b99c-3473f863d38d 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] 192.168.1.100 "GET /v2.1/763c4ff3f8b34d819db4a1a50680623b/images/cirros HTTP/1.1" status: 404 len: 351 time: 0.5754671
2017-09-07 18:47:40.694 6791 INFO nova.osapi_compute.wsgi.server [req-8a75afd3-273d-49d2-86f2-41abcbd19722 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] 192.168.1.100 "GET /v2.1/763c4ff3f8b34d819db4a1a50680623b/images HTTP/1.1" status: 200 len: 1283 time: 0.5862420
2017-09-07 18:47:41.277 6791 INFO nova.osapi_compute.wsgi.server [req-be9fe030-440f-449a-b3b5-e49ca77cf3ba 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] 192.168.1.100 "GET /v2.1/763c4ff3f8b34d819db4a1a50680623b/images/b0cca732-a965-404c-a3dd-c31481b11c04 HTTP/1.1" status: 200 len: 949 time: 0.5801179
2017-09-07 18:47:41.481 6791 INFO nova.api.openstack.wsgi [req-4f89e850-8571-481b-8be3-d867c8e7554f 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] HTTP exception thrown: Flavor m1.nano could not be found.
2017-09-07 18:47:41.482 6791 INFO nova.osapi_compute.wsgi.server [req-4f89e850-8571-481b-8be3-d867c8e7554f 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] 192.168.1.100 "GET /v2.1/763c4ff3f8b34d819db4a1a50680623b/flavors/m1.nano HTTP/1.1" status: 404 len: 369 time: 0.2024860
2017-09-07 18:47:41.767 6791 INFO nova.osapi_compute.wsgi.server [req-50175bed-1249-4fe6-b378-8d50d35cca4f 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] 192.168.1.100 "GET /v2.1/763c4ff3f8b34d819db4a1a50680623b/flavors HTTP/1.1" status: 200 len: 1728 time: 0.2830551
2017-09-07 18:47:42.010 6791 INFO nova.osapi_compute.wsgi.server [req-9f240a97-1d35-4d90-8114-9525806c31fc 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] 192.168.1.100 "GET /v2.1/763c4ff3f8b34d819db4a1a50680623b/flavors/0 HTTP/1.1" status: 200 len: 687 time: 0.2407122
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions [req-0d13ed58-6275-44fb-9a71-2284deb58739 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] Unexpected exception in API method
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 629, in create
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions **create_kwargs)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1563, in create
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1146, in _create_instance
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions reservation_id, max_count)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 873, in _validate_and_build_base_options
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions pci_request_info, requested_networks)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1081, in create_pci_requests_for_sriov_ports
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions neutron = get_client(context, admin=True)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 141, in get_client
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions _ADMIN_AUTH = _load_auth_plugin(CONF)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 122, in _load_auth_plugin
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions raise neutron_client_exc.Unauthorized(message=err_msg)
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions Unauthorized: Unknown auth type: None
2017-09-07 18:47:43.496 6791 ERROR nova.api.openstack.extensions
2017-09-07 18:47:43.497 6791 INFO nova.api.openstack.wsgi [req-0d13ed58-6275-44fb-9a71-2284deb58739 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] HTTP exception thrown: 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'>
2017-09-07 18:47:43.498 6791 INFO nova.osapi_compute.wsgi.server [req-0d13ed58-6275-44fb-9a71-2284deb58739 48863c2aa19b404b804659f9e7987b74 763c4ff3f8b34d819db4a1a50680623b - - -] 192.168.1.100 "POST /v2.1/763c4ff3f8b34d819db4a1a50680623b/servers HTTP/1.1" status: 500 len: 520 time: 1.2389669
'
The content of my conf file in control node is following:
[DEFAULT]
my_ip = 192.168.1.100
enabled_apis=osapi_compute,metadata
auth_strategy=keystone
firewall_driver=nova.virt.firewall.NoopFirewallDriver
use_neutron=true
security_group_api=nova
rpc_backend=rabbit
[api_database]
connection = mysql+pymysql://nova:xjtucad@nova_dbpass@controller/nova_api
[barbican]
[cache]
[cells]
[cinder]
[conductor]
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://nova:xjtucad@nova_dbpass@controller/nova
[ephemeral_storage_encryption]
[glance]
api_servers=http://controller:9292
[guestfs]
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = xjtucad@nova
[libvirt]
[matchmaker_redis]
[metrics]
[neutron]
[osapi_v21]
[oslo_concurrency]
lock_path=/var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid= openstack
rabbit_password = openstack
[oslo_middleware]
[oslo_policy]
[rdp]
[serial_console]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[vnc]
vncserver_listen=$my_ip
vncserver_proxyclient_address=$my_ip
[workarounds]
[xenserver]
the contenf of conf in compute node is following:
[DEFAULT]
my_ip=192.168.1.101
auth_strategy=keystone
firewall_driver=nova.virt.firewall.NoopFirewallDriver
use_neutron=true
security_group_api=nova
rpc_backend=rabbit
[api_database]
[barbican]
[cache]
[cells]
[cinder]
os_region_name=RegionOne
[conductor]
[cors]
[cors.subdomain]
[database]
[ephemeral_storage_encryption]
[glance]
api_servers=http://controller:9292
[guestfs]
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = xjtucad@nova
[libvirt]
virt_type=kvm
[matchmaker_redis]
[metrics]
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = xjtucad@neutron
service_metadata_proxy=true
metadata_proxy_shared_secret =xjtucad@metadata
[osapi_v21]
[oslo_concurrency]
lock_path=/var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host=controller
rabbit_userid=openstack
rabbit_password=openstack
[oslo_middleware]
[oslo_policy]
[rdp]
[serial_console]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[vnc]
enabled=true
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=$my_ip
novncproxy_base_url=http://controller:6080/vnc_auto.html
[workarounds]
[xenserver]
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1715615/+subscriptions
References