* modules/openstack_project/templates/logs-dev.vhost.erb
* modules/openstack_project/templates/logs.vhost.erb: With the
recent advent of an additional parent node in the job log path, the
ReadmeName was no longer being applied to new log directories. This
corrects it by adding duplicate Directory blocks for them with the
new pattern. Note that ReadmeName does not work inside regular
expression blocks like DirectoryMatch, but the old Directory blocks
can be removed when those logs expire in about 6 months time. Also
added patterns to provide readme files for equivalent periodic jobs.
Change-Id: Ib12f1d6f033b8129af38d694f7b221bea9614ecd
ensure that path of the file we're going to open is actually
inside our log root. If not return a 400.
escape dates in the regex so they are easier to pass around,
unencoded spaces kind of suck for that.
catch the possible IOError of openning a file that doesn't exist,
be nice and give people a 404 in that case.
move the content negotiation into a function, for readability
Change-Id: I334e1ac0419cd140c6af35c78634a2d7c05dcf01
this adds a wsgi application which processes all the txt.gz log
files and htmlifies them on the fly before sending them to the
user. It uses content negotiation to only do this if the client
says it Accepts text/html, otherwise it just dumps them back out
as text/plain.
In either case the content is compressed with mod_deflate, which
provides a 15x-20x bandwidth savings vs. if we left it
uncompressed on the wire.
Should get more testing before general deployment, but this is
getting close to the approach I think we want to use.
This enables the functionality on a new logs-dev.openstack.org
vhost so that we can do live testing that this works before
switching over the main site to it.
Change-Id: I12a06c4b55be05fb8060b76f5aea9ebc801c0537