Errors found for octavia api----get listener stats

Bug #1543356 reported by min wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
Fix Released
Medium
Stephen Balukoff

Bug Description

When I tested the octavia api with postman, I found the following services are not able to work properly, need someone to take a look at them:

List Listener Statistics with endpoint url---{{url}}/v1/loadbalancers/loadbalancer_id/listeners/listener_id/stats
<html>
    <head>
        <title>404 Not Found</title>
    </head>
    <body>
        <h1>404 Not Found</h1>
  The resource could not be found.
        <br />
        <br />
    </body>
</html>

min wang (swiftwangster)
description: updated
summary: - Errors found for octavia api
+ Errors found for octavia api----get listener stats
Changed in octavia:
importance: Undecided → Medium
tags: added: lbaas
tags: added: sharedpools
removed: lbaas
Changed in octavia:
assignee: nobody → Stephen Balukoff (sbalukoff)
tags: added: target-mitaka
Revision history for this message
Stephen Balukoff (sbalukoff) wrote :

Michael-- looking at the Octavia API prior to the shared pools patch, it doesn't look like we ever actually coded a listener stats endpoint. So... even though the documentation talks about it, it looks like this has never actually worked for Octavia before. For what it's worth, it looks like the stats table in the database is being populated correctly.

Shall I go ahead an code an API endpoint which dumps the stats for a given listener, per the Octavia API docs, or, since we've never had this working before, do we want to take the chance to discuss the stats interface (ie. before we get locked into an API / stats model that we don't want to support long-term)?

Changed in octavia:
status: New → Confirmed
Revision history for this message
Michael Johnson (johnsom) wrote :

I suspect the LBaaSv2 sync populated these into the neutron DB so the scenario tests and CLI worked without this API.
Sure, we can discuss this API if we need changes.

tags: removed: sharedpools
Revision history for this message
Stephen Balukoff (sbalukoff) wrote :

Since Neutron-LBaaS already supports something very similar to this for listener stats, I'm going to go ahead and do the obvious thing here and update the Octavia API code to dump the stats as described in the Octavia API documentation.

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

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

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

Reviewed: https://review.openstack.org/281603
Committed: https://git.openstack.org/cgit/openstack/octavia/commit/?id=4b45a1081305a061757013e156a9226f589413af
Submitter: Jenkins
Branch: master

commit 4b45a1081305a061757013e156a9226f589413af
Author: Stephen Balukoff <email address hidden>
Date: Wed Feb 17 17:49:48 2016 -0800

    Add listener stats API

    Octavia has been gathering listener statistics for a long time,
    but so far has never exposed this via the API. Further, our
    documentation has shown that we should have had an API interface to
    the listener stats this whole time. This commit adds this interface,
    as described in the API documentation.

    Change-Id: I4848bb31feb03ab0599a26f600951518f2c41254
    Closes-Bug: 1543356

Changed in octavia:
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.