Functional tests should record the logs of the services they started.

Bug #1162933 reported by John Bresnahan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Wishlist
John Bresnahan

Bug Description

Many functional tests for out a glance services. The logs for these services should be recorded so that they can be viewed via the jenkins interface. One approach to this would be to dump the logs to standard out on error.

Revision history for this message
Mark Washenberger (markwash) wrote :

+1 This is a constant annoyance for me.

I will also note, I've created a blueprint that would address this bug along with other related issues.

Revision history for this message
Mark Washenberger (markwash) wrote :
Changed in glance:
assignee: nobody → John Bresnahan (jbresnah)
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/25837

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/25837
Committed: http://github.com/openstack/glance/commit/6ea699bb8431a63f53c4ad7425916d491d7d6517
Submitter: Jenkins
Branch: master

commit 6ea699bb8431a63f53c4ad7425916d491d7d6517
Author: John Bresnahan <email address hidden>
Date: Mon Apr 1 10:24:12 2013 -1000

    Functional tests display the logs of the services they started

    Function tests fork out processes that run glance-{api,registry,etc}.
    These services are started with a conf file that directs logging
    to a different file. Unfortunately that logged information is not
    recorded by the test frameworks that run these tests. This change
    opens the log file and dumps it out to a logger created for that
    service. In this way a developer can inspect the logs of all the
    services created by a failed tests using the test frameworks interface
    (like Jenkins web interface).

    Fixes bug: 1162933

    Change-Id: Ie699baaa376ca4ec848a8600f9fc5da6484b24f0

Changed in glance:
status: In Progress → Fix Committed
Changed in glance:
importance: Undecided → Wishlist
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-1 → 2013.2
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.