/health endpoint returns wrong status when cassandra is offline

Bug #1382155 reported by Malini Kamalambal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppy
Fix Released
Medium
Obulapathi

Bug Description

Steps to repro:
Start poppy server with no seed values for cassandra.
Do a GET on /health endpoint

Expected Result:

{
    "storage": {
        "cassandra": {
            "online": "false",
            "links": {
                "href": "http://XXXX/v1.0/health/storage/cassandra",
                "rel": "self"
            }
        }

Actual Result:

{
    "storage": {
        "cassandra": {
            "online": "true",
            "links": {
                "href": "http://XXXX/v1.0/health/storage/cassandra",
                "rel": "self"
            }
        }
    },
    "providers": {
        "fastly": {
            "online": "true",
            "links": {
                "href": "http://XXXXX/v1.0/health/provider/fastly",
                "rel": "self"
            }
        }
    }
}

Changed in poppy:
assignee: nobody → Obulapathi (obulpathi)
importance: Undecided → Medium
Changed in poppy:
status: New → Confirmed
Changed in poppy:
milestone: none → kilo-2
Changed in poppy:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to poppy (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to poppy (master)

Reviewed: https://review.openstack.org/141884
Committed: https://git.openstack.org/cgit/stackforge/poppy/commit/?id=846ce55cfcb74d8810ce2d44af98e903faad0264
Submitter: Jenkins
Branch: master

commit 846ce55cfcb74d8810ce2d44af98e903faad0264
Author: Obulpathi <email address hidden>
Date: Mon Dec 15 14:19:48 2014 -0500

    Fixes bug 1382155: Cassandra health test

    Change-Id: Id300005171b8a7adc39fe4b7a5391ad166565aa3
    Closes-Bug: 1382155

Changed in poppy:
status: In Progress → Fix Committed
Changed in poppy:
status: Fix Committed → 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.