protect for dhcp agent cache out of sync with neutron server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Antonio Ojea |
Bug Description
If DHCP agent port cache is out of sync with neutron server, new VM may not get it's IP. when DHCP agent execute port_create_end method, port's IP should be checked before being used.
The scenario might be:
1)create a VM, neutron server notify DHCP agent port_create_end
2)destroy this VM, neutron server notify DHCP agent port_delete_end
if rpc message of port_delete_end lost at this step, neutron server will be out of sync with DHCP agent cache. The port will still exit in DHCP agent cache, Dnsmasq will still have port's mac-host-ip record in host file.
3)create a new VM, neutron server may allocate the IP which cached in DHCP agent, this VM will not get IP when it start, because Dnsmasq have two records about this IP.
tags: | added: l3-ipam-dhcp |
summary: |
- dhcp agent dosen't update port cache after database recovery + protect for dhcp agent cache out of sync with neutron server |
description: | updated |
Changed in neutron: | |
assignee: | nobody → Antonio Ojea (itsuugo) |
Changed in neutron: | |
assignee: | Antonio Ojea (itsuugo) → Darragh O'Reilly (darragh-oreilly) |
Changed in neutron: | |
assignee: | Darragh O'Reilly (darragh-oreilly) → Antonio Ojea (itsuugo) |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
I am not sure if the scenario is real with the message bus we use. Do you see it happening in real life?