Nicely formatted offline pages for apache and haproxy

Bug #553343 reported by Tom Haddon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical SSO provider
Fix Released
Low
Stuart Metcalfe

Bug Description

We need four static offline pages - planned maintenance for apache, unplanned outage for apache, planned maintenance for haproxy and unplanned outage for haproxy. The format of the haproxy page is described here:

http://haproxy.1wt.eu/download/1.3/doc/configuration.txt

" The files are returned verbatim on the TCP socket. This allows any trick such
  as redirections to another URL or site, as well as tricks to clean cookies,
  force enable or disable caching, etc... The package provides default error
  files returning the same contents as default errors.

  The files should not exceed the configured buffer size (BUFSIZE), which
  generally is 8 or 16 kB, otherwise they will be truncated. It is also wise
  not to put any reference to local contents (eg: images) in order to avoid
  loops between the client and HAProxy when all servers are down, causing an
  error to be returned instead of an image. For better HTTP compliance, it is
  recommended that all header lines end with CR-LF and not LF alone.

  The files are read at the same time as the configuration and kept in memory.
  For this reason, the errors continue to be returned even when the process is
  chrooted, and no file change is considered while the process is running. A
  simple method for developing those files consists in associating them to the
  403 status code and interrogating a blocked URL."

I've added the offline-unplanned file from LP for haproxy.

Revision history for this message
Tom Haddon (mthaddon) wrote :
Revision history for this message
Tom Haddon (mthaddon) wrote :

When this bug is fixed, LOSAs will want to work on RT#36817

Changed in canonical-identity-provider:
milestone: none → 2.4.0
status: New → Triaged
importance: Undecided → Medium
importance: Medium → Low
Revision history for this message
Anthony Lenton (elachuni) wrote :

First attempt at a nicely formatted Ubuntu SSO haproxy error page.

Changed in canonical-identity-provider:
assignee: nobody → Anthony Lenton (elachuni)
Changed in canonical-identity-provider:
status: Triaged → In Progress
Changed in canonical-identity-provider:
status: In Progress → Fix Committed
Revision history for this message
Dave Morley (davmor2) wrote :

Spoke to Anthony this needs testing on staging for the code to be useful and not on EC2

Revision history for this message
Dave Morley (davmor2) wrote :

Still need QA steps though Anthony

Revision history for this message
Anthony Lenton (elachuni) wrote :

We'll need to ask IS to disable Apache or the app itself for a while, to see that these are in place.

Tom, do you think it's reasonable to post an RT for this?

Revision history for this message
Anthony Lenton (elachuni) wrote :

IS can confirm that the offline pages look ok once they're setup, without needing to bring Apache down.

Changed in canonical-identity-provider:
status: Fix Committed → Fix Released
Revision history for this message
Tom Haddon (mthaddon) wrote :

Currently the haproxy pages begin with a copyright notice. This won't work with haproxy - can we have those removed/moved elsewhere in the file please?

Changed in canonical-identity-provider:
status: Fix Released → In Progress
Changed in canonical-identity-provider:
assignee: Anthony Lenton (elachuni) → Stuart Metcalfe (stuartmetcalfe)
Revision history for this message
Stuart Metcalfe (stuartmetcalfe) wrote :

Revision 2 of the offline-pages branch should fix this issue. Please confirm the templates now work as expected.

Changed in canonical-identity-provider:
status: In Progress → Fix Committed
Revision history for this message
Tom Haddon (mthaddon) wrote :

All looks good. Changing to Fix Released.

Changed in canonical-identity-provider:
status: Fix Committed → Fix Released
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.