← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1263871] [NEW] Two different Exception didn't log seperately when get images information

 

Public bug reported:

Two different Exceptions didn't log seperately when get images information.
 In glance/registry/api/v1/images.py file , Controls. _get_images:() include  codes as follows:
        try:
            return self.db_api.image_get_all(context, filters=filters,
                                             **params)
        except (exception.NotFound, exception.Forbidden) as e:
            msg = _("Invalid marker. Image could not be found.")
            raise exc.HTTPBadRequest(explanation=msg)

see
https://github.com/openstack/glance/blob/master/glance/registry/api/v1/images.py#L108

** Affects: glance
     Importance: Undecided
     Assignee: Haojie Jia (jiahaojie)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Haojie Jia (jiahaojie)

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

Title:
  Two different Exception didn't log seperately when get images
  information

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Two different Exceptions didn't log seperately when get images information.
   In glance/registry/api/v1/images.py file , Controls. _get_images:() include  codes as follows:
          try:
              return self.db_api.image_get_all(context, filters=filters,
                                               **params)
          except (exception.NotFound, exception.Forbidden) as e:
              msg = _("Invalid marker. Image could not be found.")
              raise exc.HTTPBadRequest(explanation=msg)

  see
  https://github.com/openstack/glance/blob/master/glance/registry/api/v1/images.py#L108

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


Follow ups

References