Some projects on Grouped runs page throws error and cannot display data on Jobs table

Bug #1785736 reported by Mohan Seri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Health
Fix Released
Undecided
Trevor McCasland

Bug Description

Open health dashboard and click on openstack/tempest project from Projects ( http://status.openstack.org/openstack-health/#/g/project/openstack~2Ftempest ) and notice that the data is not being displayed in Jobs table due to the below API error:

GET http://health.openstack.org/runs/key/project/openstack/tempest?datetime_resolution=hour&start_date=2018-07-24T04:00:00.000Z&stop_date=2018-08-07T04:00:00.000Z&callback=angular.callbacks._4 500 (Internal Server Error)

angular.js:14362 Possibly unhandled rejection: {"data":false,"status":404,"config":{"method":"JSONP","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","params":{"start_date":"2018-07-24T04:00:00.000Z","stop_date":"2018-08-07T04:00:00.000Z","datetime_resolution":"hour"},"url":{},"headers":{"Accept":"application/json, text/plain, */*"}},"statusText":"error"}

Revision history for this message
Masayuki Igawa (igawa) wrote :

yeah, I've just confirmed this issue, too.

Changed in openstack-health:
status: New → Incomplete
status: Incomplete → Confirmed
Revision history for this message
Trevor McCasland (twm2016) wrote :

Hey I have a review for this, i've been trying to get it reviewed! :) https://review.openstack.org/#/c/584659/

Changed in openstack-health:
assignee: nobody → Trevor McCasland (twm2016)
Changed in openstack-health:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-health (master)

Reviewed: https://review.openstack.org/584659
Committed: https://git.openstack.org/cgit/openstack/openstack-health/commit/?id=a9bfd78f8dd72bce897d5a6657a70dba09f136ee
Submitter: Zuul
Branch: master

commit a9bfd78f8dd72bce897d5a6657a70dba09f136ee
Author: Trevor McCasland <email address hidden>
Date: Sun Jul 22 11:44:32 2018 -0500

    fix prepare for numeric data

    There is a case where there can be more than one build_name
    with the same run_at[1] and without this change the request in [1]
    will result in a KeyError[2]

    The run_aggregator method is now updated to work with runs with
    more than one build_name so that the expected_responses from
    the unit tests make more sense and it makes it more ready to be
    used for displaying run times in the grouped runs page.

    [1] http://paste.openstack.org/show/726408/
    [2] http://paste.openstack.org/show/726409/

    Closes-Bug: #1785736

    Change-Id: I66194d9fd753f2b094158103c37708148315629e

Changed in openstack-health:
status: In Progress → 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.