Activity log for bug #1264029

Date Who What changed Old value New value Message
2013-12-25 02:30:41 David Koo bug added bug
2013-12-25 02:30:52 David Koo glance: assignee David Koo (kpublicmail)
2013-12-25 02:30:59 David Koo glance: status New In Progress
2013-12-25 02:46:29 David Koo description The Glance API layer currently doesn't catch some exceptions raised by the underlying store layer, resulting in a "500 Internal Server Error". For e.g. when using the HTTP store, if the remote HTTP server is down, then an "image-download" operation will fail and the HTTP store will raise a BadStore exception but the exception is not caught all the way to the top and results in the 500 error. Again, if the remote server is up but the specified image file is not found then the remote HTTP server will return a 404 error but the HTTP store converts all 4XX errors to a BadStore exception (HTTP store bug?) which again is not caught. I think a) underlying stores should return appropriate error codes/exceptions so that the higher layers can take meaningful action or produce meaningful error messages and b) the API layer should catch all exceptions raised by the lower layers so that the user never gets to see a 500 error. The Glance API layer currently doesn't catch some exceptions raised by the underlying store layer, resulting in a "500 Internal Server Error". For e.g. when using the HTTP store, if the remote HTTP server is down, then an "image-download" operation will fail and the HTTP store will raise a BadStoreUri exception but the exception is not caught all the way to the top and results in the 500 error. Again, if the remote server is up but the specified image file is not found then the remote HTTP server will return a 404 error but the HTTP store converts all 4XX errors to a BadStoreUri exception (HTTP store bug?) which again is not caught. I think a) underlying stores should return appropriate error codes/exceptions so that the higher layers can take meaningful action or produce meaningful error messages and b) the API layer should catch all exceptions raised by the lower layers so that the user never gets to see a 500 error.
2013-12-25 03:29:35 Zhi Yan Liu glance: importance Undecided Medium
2014-09-12 13:11:49 Erno Kuvaja tags propose-close
2014-09-12 13:11:58 Erno Kuvaja glance: assignee David Koo (kpublicmail)
2014-09-12 13:12:01 Erno Kuvaja glance: status In Progress New
2015-01-17 18:47:40 Ian Cordasco affects glance glance-store
2015-01-17 18:47:47 Ian Cordasco glance-store: importance Medium Undecided
2015-03-17 15:58:13 Cindy Pallares glance-store: assignee Cindy Pallares (cindy-pallaresq)
2015-11-23 17:50:13 Flavio Percoco glance-store: importance Undecided Medium
2015-11-23 17:50:16 Flavio Percoco glance-store: status New Triaged
2016-03-25 20:44:10 Cindy Pallares glance-store: assignee Cindy Pallares (cpallares)
2017-02-03 18:37:32 Dharini Chandrasekar glance-store: assignee Dharini Chandrasekar (dharini-chandrasekar)