Cant get listener connected with l7policy through neutron api

Bug #1587901 reported by Dmitriy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Evgeny Fedoruk

Bug Description

I'm in process of adding l7policy and l7rule resources support to Heat.
In according plugins sometimes I need to check loadbalancer status.
When I try to do such check from l7rule, I have only id of l7policy.
And I have no way to get loadbalancer id through api.
Neutron api do not returns neither the listener from show_lbaas_l7policy nor l7policies from list_listeners/show_listener.

Tags: lbaas
Elena Ezhova (eezhova)
tags: added: lbaas
Revision history for this message
Evgeny Fedoruk (evgenyf) wrote :

That's because L7 is an extension.
L7-policy is a first-level citizen on lbaas API and there is no way to go up from L7-policy to its listener through API.

However, you can find the relationship between l7-policy and its listener in neutron database

Revision history for this message
Oleksii Chuprykov (ochuprykov) wrote :

Listener is required argument to create policy call, so policy knows about listener in every case. Why don't expose listener_id of the given policy to the user?

Revision history for this message
Evgeny Fedoruk (evgenyf) wrote :

You are right. It seems like a bug. Checking it

Changed in neutron:
assignee: nobody → Evgeny Fedoruk (evgenyf)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (master)

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

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
Evgeny Fedoruk (evgenyf) wrote :

With this fix, policy-show will include listeners list with the id in it

Changed in neutron:
assignee: Evgeny Fedoruk (evgenyf) → Brandon Logan (brandon-logan)
Changed in neutron:
assignee: Brandon Logan (brandon-logan) → Evgeny Fedoruk (evgenyf)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (master)

Reviewed: https://review.openstack.org/326018
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=ab59666a18c219ca7dc48eb950d36abc32f39d4c
Submitter: Jenkins
Branch: master

commit ab59666a18c219ca7dc48eb950d36abc32f39d4c
Author: Evgeny Fedoruk <email address hidden>
Date: Mon Jun 6 06:05:29 2016 -0700

    Add missing "listener_id" attribute to L7 policy

    Adding missing "listener_id" attribute to the L7 policy resource.
    Updating unit tests.

    Change-Id: I1e7a173642f87851c35dd8b644d1f06653d7776a
    Closes-Bug: 1587901

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 9.0.0.0b3

This issue was fixed in the openstack/neutron-lbaas 9.0.0.0b3 development milestone.

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.