neutron-lbaas V2 lbaas-member-list returns all members, not just those for the specified pool
Bug #1483100 reported by
Al Miller
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Brandon Logan |
Bug Description
Boot 4 webserver instances.
Create two loadbalancer stacks:
lb1/listener1/
lb2/listener2/
Do "neutron lbaas-member-list pool1" and you will get all 4 instances. Likewise, "neutron lbaas-member-list pool2" will return the same 4 instances.
The pool_id is being properly provided to the LBaaS API by the neutron client, but is not being assigned to the filter on the DB query.
Changed in neutron: | |
assignee: | nobody → Al Miller (al-miller) |
description: | updated |
tags: | added: lbaas liberty-rc-potential |
Changed in neutron: | |
assignee: | Al Miller (al-miller) → Brandon Logan (brandon-logan) |
Changed in neutron: | |
importance: | Undecided → High |
Changed in neutron: | |
milestone: | none → liberty-rc2 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
tags: | added: kilo-backport-potential |
Changed in neutron: | |
milestone: | liberty-rc2 → 7.0.0 |
To post a comment you must log in.
neutron lbaas-loadbalan cer-create --name lb1 ${SUBNET_NAME} cer-create --name lb2 ${SUBNET_NAME} create --loadbalancer lb1 --protocol HTTP --protocol-port 80 --name listener1 create --loadbalancer lb2 --protocol HTTP --protocol-port 80 --name listener2
neutron lbaas-loadbalan
neutron lbaas-listener-
neutron lbaas-listener-
neutron lbaas-pool-create --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP --name pool1
neutron lbaas-pool-create --lb-algorithm ROUND_ROBIN --listener listener2 --protocol HTTP --name pool2
neutron lbaas-member-create --subnet ${SUBNET_NAME} --address ${IP1} --protocol-port 80 pool1
neutron lbaas-member-create --subnet ${SUBNET_NAME} --address ${IP2} --protocol-port 80 pool1
neutron lbaas-member-create --subnet ${SUBNET_NAME} --address ${IP3} --protocol-port 80 pool2
neutron lbaas-member-create --subnet ${SUBNET_NAME} --address ${IP4} --protocol-port 80 pool2
ubuntu@ devstack1: ~/devstack$ nova list ------- ------- ------- ------- ----+-- -----+- ------- +------ ------+ ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- + ------- ------- ------- ------- ----+-- -----+- ------- +------ ------+ ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- + e41c-48ce- a301-fdd7e44c3b 81 | node1 | ACTIVE | - | Running | private= fd18:1a78: 8e53:0: f816:3eff: fe62:a363, 10.0.0.4 | b5bc-4069- 885f-85e4840c19 10 | node2 | ACTIVE | - | Running | private= fd18:1a78: 8e53:0: f816:3eff: fe0f:694b, 10.0.0.5 | b665-46a6- bdac-98e2ac7470 30 | node3 | ACTIVE | - | Running | private= fd18:1a78: 8e53:0: f816:3eff: feb0:904a, 10.0.0.6 | b902-4fa4- 9af1-df0860948f b3 | node4 | ACTIVE | - | Running | private= fd18:1a78: 8e53:0: f816:3eff: fe4d:4b10, 10.0.0.7 | ------- ------- ------- ------- ----+-- -----+- ------- +------ ------+ ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- + devstack1: ~/devstack$ neutron lbaas-loadbalan cer-list ------- ------- ------- ------- ----+-- ----+-- ------- ----+-- ------- ------- -----+- ------- --+ ------- ------- ------- ------- ----+-- ----+-- ------- ----+-- ------- ------- -----+- ------- --+ d692-47af- ae92-dd0572d7a9 63 | lb2 | 10.0.0.9 | ACTIVE | haproxy | 82d7-4120- b744-b9be2ca02d 24 | lb1 | 10.0.0.8 | ACTIVE | haproxy | ------- ------- ------- ------- ----+-- ----+-- ------- ----+-- ------- ------- -----+- ------- --+
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 9c015292-
| 83ec028e-
| 114a0929-
| c396edab-
+------
ubuntu@
+------
| id | name | vip_address | provisioning_status | provider |
+------
| 43505db3-
| e16bcc14-
+------
ubuntu@ devstack1: ~/devstack$ neutron lbaas-listener-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ---+--- ------- -----+- ------- ------- -+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ---+--- ------. ..
+------
| id | default_pool_id | name | protocol | protocol_port | admin_state_up |
+------