Launchpad should return 503 error pages when database is unavailable
Bug #844631 reported by
Stuart Bishop
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Gary Poster |
Bug Description
When a PostgreSQL database is unavailable, we should return a 503 error code instead of a 500.
We should still log an OOPS.
We can make the page pretty. Wording might be tricky, as Launchpad will not know if this was a scheduled outage or if a power cord has been kicked out.
Related branches
lp:~gary/launchpad/bug844631
- Brad Crittenden (community): Approve (code)
- Robert Collins (community): Approve
-
Diff: 790 lines (+482/-61)9 files modifiedlib/canonical/config/schema-lazr.conf (+11/-0)
lib/canonical/launchpad/webapp/error.py (+13/-0)
lib/canonical/launchpad/webapp/tests/test_error.py (+91/-1)
lib/canonical/testing/layers.py (+1/-0)
lib/lp/app/browser/configure.zcml (+18/-0)
lib/lp/app/templates/launchpad-databaseunavailable.pt (+293/-0)
lib/lp/services/profile/profile.py (+15/-16)
lib/lp/services/profile/tests.py (+13/-44)
lib/lp/testing/fixture.py (+27/-0)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: fastdowntime-later |
Changed in launchpad: | |
assignee: | nobody → Huw Wilkins (huwshimi) |
Changed in launchpad: | |
status: | Triaged → In Progress |
Changed in launchpad: | |
assignee: | Huw Wilkins (huwshimi) → Launchpad Yellow Squad (yellow) |
status: | In Progress → Triaged |
importance: | High → Critical |
Changed in launchpad: | |
importance: | High → Critical |
tags: | added: escalatedd |
tags: |
added: escalated removed: escalatedd |
Changed in launchpad: | |
status: | Fix Committed → In Progress |
tags: |
added: qa-untestable removed: qa-needstesting |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is different to Bug #373191, as that bug is about what HAProxy or Apache should return if Launchpad is not available. This bug is about what Launchpad should return if PostgreSQL is not available.