generic NotFound exception is often raised when image is not found

Bug #1247633 reported by Alex Meade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Wishlist
Auktavian Garrett

Bug Description

Numerous places such as glance/db/__init__.py, glance/store/swift.py, and glance/store/__init__py raise and catch a NotFound exception when an image can not be found. It would be better to have something like an ImageNotFound exception raised and caught to be sure that it was an Image that could not be found and to have image specific information in the exception.

For example, tasks use a TaskNotFound exception that allows for a task_id kwarg to be passed in.

Jennifer Parak (jparak1)
Changed in glance:
assignee: nobody → Jennifer Parak (jparak1)
Jennifer Parak (jparak1)
Changed in glance:
status: New → In Progress
Jennifer Parak (jparak1)
Changed in glance:
status: In Progress → Fix Committed
Jennifer Parak (jparak1)
Changed in glance:
status: Fix Committed → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :
Revision history for this message
Jennifer Parak (jparak1) wrote : Invitación a conectarse en LinkedIn

LinkedIn
------------

Julie:

Jennifer Parak
Software Engineer Intern en Raiffeisen Bank
Sheffield, Reino Unido

Confirma que conoces a Jennifer Parak:
https://www.linkedin.com/e/xq8026-hq0zaad7-5d/isd/19044734809/GM6dm4WP/?hs=false&tok=0gBTjF9xmLcS41

--
Estás recibiendo invitaciones a conectar. Haz clic para darte de baja:
http://www.linkedin.com/e/xq8026-hq0zaad7-5d/Ho4qfIfaQGZVde-nowCn-wRtj7f28SMVkf99ATjT/goo/1247633%40bugs%2Elaunchpad%2Enet/20061/I6189193991_1/?hs=false&tok=1pGVGAgFSLcS41

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, EE.UU.

Revision history for this message
Erno Kuvaja (jokke) wrote :

Old and abandoned, might be fixed already.

Changed in glance:
assignee: Jennifer Parak (jparak1) → nobody
status: In Progress → New
tags: added: propose-close
Changed in glance:
assignee: nobody → Roman Vasilets (rvasilets)
Ian Cordasco (icordasc)
Changed in glance:
assignee: Roman Vasilets (rvasilets) → nobody
status: New → Triaged
tags: removed: propose-close
Changed in glance:
assignee: nobody → Cindy Pallares (cindy-pallaresq)
Changed in glance:
assignee: Cindy Pallares (cindy-pallaresq) → nobody
Revision history for this message
Auktavian Garrett (augarret) wrote :
Changed in glance:
assignee: nobody → Auktavian Garrett (augarret)
Changed in glance:
status: Triaged → In Progress
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: liberty-2 → 11.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.