If Glance is temporarily unavailable, handle gracefully

Bug #951200 reported by Devin Carlen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
John Postlethwait

Bug Description

Currently if glance is unavailable an uncaught exception bubbles up and the generic 500 error is raised. This should be trapped internally and a note saying "Image Registry is currently unavailable."

Exception at /nova/images_and_snapshots/
Unknown error occurred! <html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>

Tres Henry (tres)
Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Tres Henry (tres) wrote :

If I kill Glance API in a fresh devstack here's what I see: http://i.imgur.com/ZT1RC.png

I'm wondering if the error you were seeing was from a different service being unavailable?

Changed in horizon:
assignee: Nebula (nebula) → John Postlethwait (john-postlethwait)
Revision history for this message
Tres Henry (tres) wrote :

The issue here is that 503's are not being gracefully handled. We should add some code to exceptions.handle so that 503's returned from API calls add a message instead of bubbling up to the generic 503 error page.

Revision history for this message
John Postlethwait (john-postlethwait) wrote :

This Glance issue is related to this: https://bugs.launchpad.net/glance/+bug/952618

Short of it is Glance raises Exception classed exceptions for unknown HTTP error codes. Not very easy to deal with those so I will be writing something in to api/glance.py to deal with them.

Revision history for this message
John Postlethwait (john-postlethwait) wrote :

Fixed in change id: I7cbfa74d340d25d523ab8fb18138f5cf7d33a9d9

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-rc1 → 2012.1
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.