← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1650103] [NEW] HTTP exception thrown: Unexpected API Error

 

Public bug reported:

When I executed openstack-status, I got an error like below:
It's not easy to explain exactly the situation because I am a novice in openstack.

2016-12-14 21:42:26.834 3684 INFO nova.osapi_compute.wsgi.server [req-a7c43921-d9d6-465d-823f-56e0d106dae0 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c HTTP/1.1" status: 404 len: 264 time: 0.1577229
2016-12-14 21:42:26.845 3684 INFO nova.osapi_compute.wsgi.server [req-88af2f2e-29f7-492c-a3fb-272fb0a9ee8f ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/ HTTP/1.1" status: 200 len: 571 time: 0.0055239
2016-12-14 21:42:27.019 3684 INFO nova.osapi_compute.wsgi.server [req-665ec85a-ce4b-4843-a8dd-3117ad1cb1bd ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c/os-services HTTP/1.1" status: 200 len: 1187 time: 0.0232651
2016-12-14 21:42:28.795 3684 INFO nova.osapi_compute.wsgi.server [req-d13e2d50-9bed-4e74-985f-e49227d25d91 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c HTTP/1.1" status: 404 len: 264 time: 0.1563978
2016-12-14 21:42:28.803 3684 INFO nova.osapi_compute.wsgi.server [req-a269f49f-69f0-4ee7-abd4-5092c9694111 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/ HTTP/1.1" status: 200 len: 571 time: 0.0046468
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions [req-63893eeb-f5bb-4f1b-88c5-7610e71f4a31 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] Unexpected exception in API method
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/networks.py", line 89, in index
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     networks = self.network_api.get_all(context)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1290, in get_all
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     networks = client.list_networks().get('networks')
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 97, in with_params
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     ret = self.function(instance, *args, **kwargs)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 671, in list_networks
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     **_params)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 373, in list
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     for r in self._pagination(collection, path, **params):
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 388, in _pagination
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     res = self.get(path, params=params)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 358, in get
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     headers=headers, params=params)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 335, in retry_request
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     headers=headers, params=params)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 286, in do_request
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     resp, replybody = self.httpclient.do_request(action, method, body=body)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 306, in do_request
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return self.request(url, method, **kwargs)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 294, in request
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     resp = super(SessionClient, self).request(*args, **kwargs)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 98, in request
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return self.session.request(url, method, **kwargs)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 94, in inner
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 452, in request
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     resp = send(**kwargs)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 496, in _send_request
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     raise exceptions.ConnectFailure(msg)
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions ConnectFailure: Unable to establish connection to http://10.0.0.11:9696/v2.0/networks.json
2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions
2016-12-14 21:42:28.959 3684 INFO nova.api.openstack.wsgi [req-63893eeb-f5bb-4f1b-88c5-7610e71f4a31 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.connection.ConnectFailure'>
2016-12-14 21:42:28.962 3684 INFO nova.osapi_compute.wsgi.server [req-63893eeb-f5bb-4f1b-88c5-7610e71f4a31 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c/os-networks HTTP/1.1" status: 500 len: 455 time: 0.0125139
2016-12-14 21:42:30.754 3684 INFO nova.osapi_compute.wsgi.server [req-64646720-6bca-4562-b269-f624db5dea17 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c HTTP/1.1" status: 404 len: 264 time: 0.1559141
2016-12-14 21:42:30.764 3684 INFO nova.osapi_compute.wsgi.server [req-266689c2-1c88-4759-b0ea-8354fada6e85 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/ HTTP/1.1" status: 200 len: 571 time: 0.0050900
2016-12-14 21:42:30.935 3684 INFO nova.osapi_compute.wsgi.server [req-dd70a6e6-d440-4a8a-86f9-ea2111242df4 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c/flavors/detail HTTP/1.1" status: 200 len: 2257 time: 0.0231221

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

Title:
  HTTP exception thrown: Unexpected API Error

Status in OpenStack Compute (nova):
  New

Bug description:
  When I executed openstack-status, I got an error like below:
  It's not easy to explain exactly the situation because I am a novice in openstack.

  2016-12-14 21:42:26.834 3684 INFO nova.osapi_compute.wsgi.server [req-a7c43921-d9d6-465d-823f-56e0d106dae0 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c HTTP/1.1" status: 404 len: 264 time: 0.1577229
  2016-12-14 21:42:26.845 3684 INFO nova.osapi_compute.wsgi.server [req-88af2f2e-29f7-492c-a3fb-272fb0a9ee8f ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/ HTTP/1.1" status: 200 len: 571 time: 0.0055239
  2016-12-14 21:42:27.019 3684 INFO nova.osapi_compute.wsgi.server [req-665ec85a-ce4b-4843-a8dd-3117ad1cb1bd ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c/os-services HTTP/1.1" status: 200 len: 1187 time: 0.0232651
  2016-12-14 21:42:28.795 3684 INFO nova.osapi_compute.wsgi.server [req-d13e2d50-9bed-4e74-985f-e49227d25d91 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c HTTP/1.1" status: 404 len: 264 time: 0.1563978
  2016-12-14 21:42:28.803 3684 INFO nova.osapi_compute.wsgi.server [req-a269f49f-69f0-4ee7-abd4-5092c9694111 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/ HTTP/1.1" status: 200 len: 571 time: 0.0046468
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions [req-63893eeb-f5bb-4f1b-88c5-7610e71f4a31 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] Unexpected exception in API method
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/networks.py", line 89, in index
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     networks = self.network_api.get_all(context)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1290, in get_all
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     networks = client.list_networks().get('networks')
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 97, in with_params
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     ret = self.function(instance, *args, **kwargs)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 671, in list_networks
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     **_params)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 373, in list
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     for r in self._pagination(collection, path, **params):
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 388, in _pagination
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     res = self.get(path, params=params)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 358, in get
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     headers=headers, params=params)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 335, in retry_request
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     headers=headers, params=params)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 286, in do_request
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     resp, replybody = self.httpclient.do_request(action, method, body=body)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 306, in do_request
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return self.request(url, method, **kwargs)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 294, in request
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     resp = super(SessionClient, self).request(*args, **kwargs)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 98, in request
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return self.session.request(url, method, **kwargs)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 94, in inner
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 452, in request
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     resp = send(**kwargs)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 496, in _send_request
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions     raise exceptions.ConnectFailure(msg)
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions ConnectFailure: Unable to establish connection to http://10.0.0.11:9696/v2.0/networks.json
  2016-12-14 21:42:28.957 3684 ERROR nova.api.openstack.extensions
  2016-12-14 21:42:28.959 3684 INFO nova.api.openstack.wsgi [req-63893eeb-f5bb-4f1b-88c5-7610e71f4a31 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
  2016-12-14 21:42:28.962 3684 INFO nova.osapi_compute.wsgi.server [req-63893eeb-f5bb-4f1b-88c5-7610e71f4a31 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c/os-networks HTTP/1.1" status: 500 len: 455 time: 0.0125139
  2016-12-14 21:42:30.754 3684 INFO nova.osapi_compute.wsgi.server [req-64646720-6bca-4562-b269-f624db5dea17 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c HTTP/1.1" status: 404 len: 264 time: 0.1559141
  2016-12-14 21:42:30.764 3684 INFO nova.osapi_compute.wsgi.server [req-266689c2-1c88-4759-b0ea-8354fada6e85 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/ HTTP/1.1" status: 200 len: 571 time: 0.0050900
  2016-12-14 21:42:30.935 3684 INFO nova.osapi_compute.wsgi.server [req-dd70a6e6-d440-4a8a-86f9-ea2111242df4 ae52f67ac3474529b556ed6de7119543 534ba2401a104bc79b13f66f01ddf14c - - -] 10.0.0.11 "GET /v2/534ba2401a104bc79b13f66f01ddf14c/flavors/detail HTTP/1.1" status: 200 len: 2257 time: 0.0231221

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


Follow ups