From eb955c541e83d009710df4bfb00ef1e808302ce4 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 19 Jun 2013 15:55:22 -0400 Subject: [PATCH] add a logs directory help file this adds more details on debugging at a log level, it only currently has tips for nova and cinder on the hope that others will add in tips for their services as well. Change-Id: I056979344ba8903420b8b096298cd76f6a5c75ce Reviewed-on: https://review.openstack.org/33691 Approved: Jeremy Stanley Reviewed-by: Jeremy Stanley Tested-by: Jenkins --- .../files/logs/help/tempest-logs.html | 50 +++++++++++++++++++ .../templates/logs.vhost.erb | 3 ++ 2 files changed, 53 insertions(+) create mode 100644 modules/openstack_project/files/logs/help/tempest-logs.html diff --git a/modules/openstack_project/files/logs/help/tempest-logs.html b/modules/openstack_project/files/logs/help/tempest-logs.html new file mode 100644 index 0000000000..5f73394b80 --- /dev/null +++ b/modules/openstack_project/files/logs/help/tempest-logs.html @@ -0,0 +1,50 @@ +

Guide to Devstack Gate Logs

+

+ Above is a collection of log files from + the current tempest run. Within them + should be everything you need to get to the bottom of a test + failure. The screen-* logs will be your most valuable tools in this + process. Use the timestamp of a the failed test in + the current tempest run. +

+

Nova Compute Fails

+

+ If there is a compute test failure, especially a server not getting + created correctly, or being in an unexpected state, the following is + typically the most fruitful order to look at things: +

    +
  • screen-n-api.txt.gz - the nova + api log, which will show top level failures. Make sure the request + that was being sent in actually suceeded. +
  • screen-n-cpu.txt.gz - the nova + compute log. If a libvirt or qemu issue happened during guest + creation it will be here. +
  • screen-n-sch.txt.gz - the nova + scheduler. Some times there are races in allocating resources, and + the scheduler will throw a WARNING if it couldn't allocate the + requested resources. +
  • all other nova logs +
+

Cinder Volume Fails

+

+ If there is a volume failure in the test, the following is typically + the most fruitful order to look at things: +

    +
  • screen-c-api.txt.gz - the + cinder api log, which will show top level failures. Make sure + the request that was being sent in actually suceeded. +
  • screen-c-vol.txt.gz - the + cinder agent log. If there was a local allocation error it will be + here. +
  • screen-c-sch.txt.gz - the + cinder scheduler. Some times there are races in allocating + resources, and the scheduler will throw a WARNING if it couldn't + allocate the requested resources. +
+

+

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/templates/logs.vhost.erb b/modules/openstack_project/templates/logs.vhost.erb index 53832ea4e0..d45669b7d6 100644 --- a/modules/openstack_project/templates/logs.vhost.erb +++ b/modules/openstack_project/templates/logs.vhost.erb @@ -30,6 +30,9 @@ NameVirtualHost <%= vhost_name %>:<%= port %> /*/*/*/gate-tempest-devstack*/*> ReadmeName /help/tempest-overview.html + /*/*/*/gate-tempest-devstack*/*/logs/> + ReadmeName /help/tempest-logs.html + ErrorLog /var/log/apache2/<%= name %>_error.log LogLevel warn