← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1654270] [NEW] Glance image not found should be logged as WARNING and not ERROR

 

Public bug reported:

We refresh public glance images in our public cloud every month, and we
set the old images to private.

When you do:

openstack server show uuid

of course the instance knows the uuid of the glance image that was
originally used to create the instance.

We noticed that Horizon, to write on the web interface the description
of the image used to start the instance, makes a lot of requests for
public images that are not public anymore.

This is okay, but the 404 is not logged as a WARNING, but as an ERROR
with a long stack trace.

This is 18 lines for each 404 and is poisoning our log files:


2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client [req-334f1f81-c661-4dda-b69f-2e84b8a48acf 870aab4e3af6441b8b5ebfb0dcaa8412 8fcf0992e82943089de7dabe728b78fa - - -] Registry client request GET /images/b34f66bc-02ea-4125-b4ed-8eca7b90de5a raised NotFound
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 123, in do_request
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     **kwargs)
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 70, in wrapped
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 373, in do_request
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 87, in wrapped
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 528, in _do_request
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     raise exception.NotFound(read_body(res))
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client NotFound: 404 Not Found
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client The resource could not be found.
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client
2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1654270

Title:
  Glance image not found should be logged as WARNING and not ERROR

Status in Glance:
  New

Bug description:
  We refresh public glance images in our public cloud every month, and
  we set the old images to private.

  When you do:

  openstack server show uuid

  of course the instance knows the uuid of the glance image that was
  originally used to create the instance.

  We noticed that Horizon, to write on the web interface the description
  of the image used to start the instance, makes a lot of requests for
  public images that are not public anymore.

  This is okay, but the 404 is not logged as a WARNING, but as an ERROR
  with a long stack trace.

  This is 18 lines for each 404 and is poisoning our log files:

  
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client [req-334f1f81-c661-4dda-b69f-2e84b8a48acf 870aab4e3af6441b8b5ebfb0dcaa8412 8fcf0992e82943089de7dabe728b78fa - - -] Registry client request GET /images/b34f66bc-02ea-4125-b4ed-8eca7b90de5a raised NotFound
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client Traceback (most recent call last):
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 123, in do_request
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     **kwargs)
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 70, in wrapped
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 373, in do_request
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 87, in wrapped
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 528, in _do_request
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client     raise exception.NotFound(read_body(res))
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client NotFound: 404 Not Found
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client The resource could not be found.
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client
  2017-01-05 13:11:09.074 10475 ERROR glance.registry.client.v1.client

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


Follow ups