yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #59428
[Bug 1647395] Re: Unexpected API Error while launch an instance
It's blowing up trying to connect to glance because you don't have
CONF.glance.api_servers set in nova.conf on your API node.:
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions for api_server in CONF.glance.api_servers:
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions TypeError: 'NoneType' object is not iterable
** 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/1647395
Title:
Unexpected API Error while launch an instance
Status in OpenStack Compute (nova):
Invalid
Bug description:
Server Ubuntu(16.10), VirtualBox 5.1.10 (Controller, Compute, 2 Nat Service NIC)
Compute QEMU
Openstack: Newton
Following error occurs when trying to launch any instance:
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 631, in create
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions **create_kwargs)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 154, in inner
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1527, in create
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1111, in _create_instance
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions image_id, boot_meta = self._get_image(context, image_href)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 777, in _get_image
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions image = self.image_api.get(context, image_href)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 93, in get
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 477, in show
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions _reraise_translated_image_exception(image_id)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 1069, in _reraise_translated_image_exception
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions six.reraise(new_exc, None, exc_trace)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 475, in show
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions image = self._client.call(context, 2, 'get', image_id)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 173, in call
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions version)
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 152, in _create_onetime_client
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions self.api_servers = get_api_servers()
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 114, in get_api_servers
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions for api_server in CONF.glance.api_servers:
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions TypeError: 'NoneType' object is not iterable
2016-12-05 15:32:12.150 2998 ERROR nova.api.openstack.extensions
2016-12-05 15:32:12.155 2998 INFO nova.api.openstack.wsgi [req-adef7e01-3cca-4811-be11-c51f31908ce1 5c672198e2954c3880276929668a52b9 e04babbaea404bb699f1a56d09a851b2 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.TypeError'>
2016-12-05 15:32:12.161 2998 INFO nova.osapi_compute.wsgi.server [req-adef7e01-3cca-4811-be11-c51f31908ce1 5c672198e2954c3880276929668a52b9 e04babbaea404bb699f1a56d09a851b2 - default default] 10.0.0.11 "POST /v2.1/e04babbaea404bb699f1a56d09a851b2/servers HTTP/1.1" status: 500 len: 560 time: 1.6262500 . .
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1647395/+subscriptions
References