Neutron-LBaaS v2: Providing invalid subnet_id to add member causing LB to go into pending_update indefinitely
Bug #1573828 reported by
Franklin Naval
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Elena Ezhova |
Bug Description
1. Create Load Balancer
2. Create Listener
3. Create Pool
4. Add member to Pool with a subnet_id that does not exist (but has a valid uuid format)
5. Check Load Balancer provisioning_status
Result: Load Balancer stays in provisioning_status PENDING_UPDATE for more than 10 minutes.
Expected: Load Balancer should give an error that the subnet_id does not exist.
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: lbaas low-hanging-fruit |
To post a comment you must log in.
Neutronclient validates that subnet exists [1] before sending request to neutron server so attempt to add a member with a non-existent subnet_id leads to an error:
dev-user@ eezhova- devstack- 2:~/devstack$ neutron lbaas-member-create --subnet d5709bff- b2fe-4df3- 85ad-5a350a130e 98 --address 10.0.0.6 --protocol-port 80 pool1 b2fe-4df3- 85ad-5a350a130e 98' eezhova- devstack- 2:~/devstack$ neutron lbaas-loadbalan cer-show lb1 ------- ------- -+----- ------- ------- ------- ------- ------- ------- -+ ------- ------- -+----- ------- ------- ------- ------- ------- ------- -+ 2e3b-4f2d- 9c61-a5a2f8d82c 51 | fd56-4cfd- 9b6f-37f12ca62f 1a"} | bb50-45c7- ba5a-928d19ea0d ca"} | 09ba613b1d656f6 67 | 7198-4c56- a656-dfe7cb007b 9b | b2fe-4df3- 85ad-5a350a130e 90 | ------- ------- -+----- ------- ------- ------- ------- ------- ------- -+
Unable to find subnet with name or id 'd5709bff-
dev-user@
+------
| Field | Value |
+------
| admin_state_up | True |
| description | |
| id | 47f878fe-
| listeners | {"id": "f2e4c75c-
| name | lb1 |
| operating_status | ONLINE |
| pools | {"id": "e5cc91a3-
| provider | octavia |
| provisioning_status | ACTIVE |
| tenant_id | 28d5aad6535e4ba
| vip_address | 10.0.0.3 |
| vip_port_id | 1af6a5cf-
| vip_subnet_id | d5709bff-
+------
Could you please provide more info on how this can be reproduced?
[1] https:/ /github. com/openstack/ python- neutronclient/ blob/master/ neutronclient/ neutron/ v2_0/lb/ v2/member. py#L112- L113