diff --git a/modules/openstack_project/files/logs/help/tempest-overview.html b/modules/openstack_project/files/logs/help/tempest-overview.html new file mode 100644 index 0000000000..c783be3120 --- /dev/null +++ b/modules/openstack_project/files/logs/help/tempest-overview.html @@ -0,0 +1,42 @@ +

Guide to Tempest Results Runs

+

+The directory here contains the full results of a devstack setup and +tempest run for the OpenStack gate, as well as all the logs of all the +relevant services that were running during that tempest test run. From +them you should have enough information to debug. +

+

File Overview

+

console.html

+This file contains the stdout/stderr console of the devstack-gate +job. The basic flow of the file goes as follows: + +

+ All the devstack setup is done under bash tracing, so + is extremely verbose. This is to ensure enough data is captured + so that you can debug failures in the gate with the information provided. +

+

+ The tempest tests are the last 1% of the console.html. When looking + at failures it is typical best to start at the end of the file and + work backwards. +

+

logs

+

+ The logs directory contains all the screen logs + from all the services during the devstack-gate run. +

+ +

About this Help

+

+ This help file is part of the openstack-infra/config project, and + can be updated by pushing a review request to + https://github.com/openstack-infra/config/tree/master/modules/openstack_project/files/logs/help +

diff --git a/modules/openstack_project/manifests/static.pp b/modules/openstack_project/manifests/static.pp index 768394105e..2aeebd3e1f 100644 --- a/modules/openstack_project/manifests/static.pp +++ b/modules/openstack_project/manifests/static.pp @@ -97,6 +97,16 @@ class openstack_project::static ( require => File['/srv/static/logs'], } + file { '/srv/static/logs/help': + ensure => directory, + recurse => true, + owner => 'root', + group => 'root', + mode => '0755', + source => 'puppet:///modules/openstack_project/logs/help', + require => File['/srv/static/logs'], + } + file { '/usr/local/sbin/log_archive_maintenance.sh': ensure => present, owner => 'root', diff --git a/modules/openstack_project/templates/logs.vhost.erb b/modules/openstack_project/templates/logs.vhost.erb index 4ee66e850f..53832ea4e0 100644 --- a/modules/openstack_project/templates/logs.vhost.erb +++ b/modules/openstack_project/templates/logs.vhost.erb @@ -27,6 +27,10 @@ NameVirtualHost <%= vhost_name %>:<%= port %> Order allow,deny allow from all + /*/*/*/gate-tempest-devstack*/*> + ReadmeName /help/tempest-overview.html + + ErrorLog /var/log/apache2/<%= name %>_error.log LogLevel warn CustomLog /var/log/apache2/<%= name %>_access.log combined