neutron lbaas-member-list with pool id shows all members

Bug #1454986 reported by Evgeny Fedoruk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Undecided
Adrien Vergé

Bug Description

In neutron, when using cli command "lbaas-member-list" with pool id as a parameter expecting to get only members of the specific pool, all members are shown
same problem for lbaas-member-show CLI command
members are shown whithout minding their pool belonging

Example:

mysql> select id, pool_id from lbaas_members;
+--------------------------------------+--------------------------------------+
| id | pool_id |
+--------------------------------------+--------------------------------------+
| 479db14d-6368-4a9a-9892-4c19dc07c291 | 4ca0a46f-640c-497f-9860-89f705d955f8 |
| b0b6b998-6031-4dfb-b6b3-0a77a3052d1c | 4ca0a46f-640c-497f-9860-89f705d955f8 |
| dcdf3b94-16c7-4d3a-a80c-24ce727fb508 | 95e87b8f-2d6e-442d-b761-87ea3a446f17 |
| b77a2059-7950-4355-9409-1af7bef9057f | 95e87b8f-2d6e-442d-b761-87ea3a446f17 |
+--------------------------------------+--------------------------------------+
First 2 members belong to pool 4ca0a46f-640c-497f-9860-89f705d955f8
Last 2 members belong to pool 95e87b8f-2d6e-442d-b761-87ea3a446f17

CLI commands output:

neutron lbaas-pool-list
+--------------------------------------+------------+----------+----------------+
| id | name | protocol | admin_state_up |
+--------------------------------------+------------+----------+----------------+
| 4ca0a46f-640c-497f-9860-89f705d955f8 | HTTP pool | HTTP | True |
| 95e87b8f-2d6e-442d-b761-87ea3a446f17 | HTTPS pool | HTTP | True |
+--------------------------------------+------------+----------+----------------+

neutron lbaas-member-list 4ca0a46f-640c-497f-9860-89f705d955f8
+--------------------------------------+---------------+---------------+--------+--------------------------------------+----------------+
| id | address | protocol_port | weight | subnet_id | admin_state_up |
+--------------------------------------+---------------+---------------+--------+--------------------------------------+----------------+
| 479db14d-6368-4a9a-9892-4c19dc07c291 | 192.168.23.3 | 80 | 1 | 2ed7e070-89bf-401d-b8d9-4a61522d0101 | True |
| b0b6b998-6031-4dfb-b6b3-0a77a3052d1c | 192.168.23.38 | 80 | 1 | 2ed7e070-89bf-401d-b8d9-4a61522d0101 | True |
| b77a2059-7950-4355-9409-1af7bef9057f | 192.168.23.40 | 80 | 1 | 2ed7e070-89bf-401d-b8d9-4a61522d0101 | True |
| dcdf3b94-16c7-4d3a-a80c-24ce727fb508 | 192.168.23.39 | 80 | 1 | 2ed7e070-89bf-401d-b8d9-4a61522d0101 | True |
+--------------------------------------+---------------+---------------+--------+--------------------------------------+----------------+

All members are shown

neutron lbaas-member-show 479db14d-6368-4a9a-9892-4c19dc07c291 95e87b8f-2d6e-442d-b761-87ea3a446f17
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| address | 192.168.23.3 |
| admin_state_up | True |
| id | 479db14d-6368-4a9a-9892-4c19dc07c291 |
| protocol_port | 80 |
| subnet_id | 2ed7e070-89bf-401d-b8d9-4a61522d0101 |
| tenant_id | 2d83e8e0f4584e3cacab9b2c38ac9e5e |
| weight | 1 |
+----------------+--------------------------------------+

Same here, member is shown while it actually belongs to other pool

Tags: lbaas
Evgeny Fedoruk (evgenyf)
description: updated
Changed in neutron:
assignee: nobody → Adrien Vergé (adrien-verge)
affects: neutron → python-neutronclient
Changed in python-neutronclient:
status: New → In Progress
Revision history for this message
Adrien Vergé (adrienverge) wrote :

A fix is currently in review: https://review.openstack.org/#/c/183563/

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

Reviewed: https://review.openstack.org/183563
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=e3f61c97be1ebaf3b93b6bbd65259b73916be0f3
Submitter: Jenkins
Branch: master

commit e3f61c97be1ebaf3b93b6bbd65259b73916be0f3
Author: Adrien Vergé <email address hidden>
Date: Fri May 15 17:03:05 2015 +0200

    LBaaS v2: Fix listing pool members

    The command `neutron lbaas-member-list POOLID` should list members that
    belong to a given pool. Instead, it lists all members for all pools.
    This patch corrects this behavior.

    Change-Id: Ida80e17831865924a0e114417371faa437cce2ba
    Closes-Bug: #1454986

Changed in python-neutronclient:
status: In Progress → Fix Committed
Changed in python-neutronclient:
milestone: none → 3.0.0
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.