delete-subnets in the same network at concurrency, dhcp port may be reallocated ip in deleting subnet

Bug #1828755 reported by zjf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
Undecided
Unassigned

Bug Description

Scenario:
 When delete 10 subnets in the same network at concurrency, every thread will delete ip that belongs to the deleting subnet on the dhcp port, than neutron-server will send delete-sbunet notification to dhcp agent. After dhcp agent recieved the notification, dhcp agent will reconfigure the network dhcp process.

Steps:

  In thread(A), dhcp agent received the delete-subnet(A) notification, than requests the newest dhcp port and subnets information from neutron-server.

  In thread(B), neutron-server just deleted ips that belogs to the deleting subnet(B) on dhcp port, but the subnet(B) still exist.

  In thread(A), dhcp agent recieved the newest dhcp port and subnets information from neutron-server, than it find subnet(B) exists, but dhcp port doesn't have fixed_ip under the subnet(B), the fixed_ip had deleted in thread(B).

In this case, dhcp agent will request neutron-server to allocat a fresh IP for subnet(B). https://github.com/openstack/neutron/blob/master/neutron/agent/linux/dhcp.py : _setup_existing_dhcp_port

zjf (zjf)
summary: - delete-subnets in one network at concurrency, dhcp port may be
+ delete-subnets in the same network at concurrency, dhcp port may be
reallocated ip in deleting subnet
description: updated
description: updated
zjf (zjf)
description: updated
description: updated
description: updated
zjf (zjf)
description: updated
description: updated
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :
Revision history for this message
zjf (zjf) wrote :

yes, I think so.

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.