As Images API v1 has been deprecated since Newton release, this does not
seem critical enough bug to address.

https://docs.openstack.org/developer/glance/glanceapi.html#images-v1-api

** Changed in: glance
       Status: In Progress => Won't Fix

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

Title:
  NotFound exception of registry client should not show trace logs with
  ERROR

Status in Glance:
  Won't Fix

Bug description:
  registry client shows trace logs when images are not found:

  =====
  ERROR glance.registry.client.v1.client 
[req-fa5967e3-7ee8-4eb9-adc1-f6c4b152089f 
e4f950c8940da8fb3f1ac086e9550a35538da9d135813666495525abadaf9d8c 
852967d9dcb34ac3ae16452f24f4e74c - - -] Registry client request GET 
/images/26e5f7a4-84d0-41fb-b5cb-bbf04af7d90f raised NotFound
  ERROR glance.registry.client.v1.client Traceback (most recent call last):
  ERROR glance.registry.client.v1.client   File 
"/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 
121, in do_request
  ERROR glance.registry.client.v1.client     **kwargs)
  ERROR glance.registry.client.v1.client   File 
"/usr/lib/python2.7/dist-packages/glance/common/client.py", line 71, in wrapped
  ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
  ERROR glance.registry.client.v1.client   File 
"/usr/lib/python2.7/dist-packages/glance/common/client.py", line 375, in 
do_request
  ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
  ERROR glance.registry.client.v1.client   File 
"/usr/lib/python2.7/dist-packages/glance/common/client.py", line 88, in wrapped
  ERROR glance.registry.client.v1.client     return func(self, method, url, 
body, headers)
  ERROR glance.registry.client.v1.client   File 
"/usr/lib/python2.7/dist-packages/glance/common/client.py", line 521, in 
_do_request
  ERROR glance.registry.client.v1.client     raise 
exception.NotFound(res.read())
  ERROR glance.registry.client.v1.client NotFound: 404 Not Found
  ERROR glance.registry.client.v1.client
  ERROR glance.registry.client.v1.client The resource could not be found.
  ERROR glance.registry.client.v1.client
  ERROR glance.registry.client.v1.client
  ERROR glance.registry.client.v1.client
  INFO eventlet.wsgi.server [req-fa5967e3-7ee8-4eb9-adc1-f6c4b152089f 
e4f950c8940da8fb3f1ac086e9550a35538da9d135813666495525abadaf9d8c 
852967d9dcb34ac3ae16452f24f4e74c - - -] 100.72.17.170 - - [18/Nov/2015 
10:26:12] "HEAD /v1/images/26e5f7a4-84d0-41fb-b5cb-bbf04af7d90f HTTP/1.1" 404 
213 0.071243
  =====

  This is mostly caused by requests from Horizon. It requests deleted
  images to show instance details, and these logs show at every request.
  However, this is a relatively common case because users can delete old
  images even instances based on the images are running. (Of course,
  users can't create new instances based on these old images.) Logs
  should be both necessary and sufficient.

  Following HEAD shows 404 as INFO level, so I think one-line DEBUG is
  enough for this 404 error instead of trace logs. In the case of other
  status codes, registry client should show trace logs as ERROR.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to