DHCP Worker skips queued tasks if earlier tasks fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Security Advisory |
Incomplete
|
Undecided
|
Unassigned | ||
neutron |
New
|
Critical
|
Unassigned |
Bug Description
Steps to reproduce:
1.Create a network with several subnets and a router.
2.Delete the router and quickly afterwards delete the subnets and finally the network.
Expected behavior:
- Subnet and networks should be deleted as expected after deleting the router.
Actual behavior:
1.Router is not deleted properly (the port is not deleted)
2.Because of the above, the subnet and network deletion tasks are dropped because of the design of the task management in DHCP agent.
RCA:
1. Router deletion failure:
a. Eventually the task port_delete_end is called from the router deletion for the port: https:/
b. As part of the event queue, the resource __lt__ function is called to check for the IP:
https:/
c. The __lt__ function fails because when a router uses the port_delete_end, the fixed_ip 'ip_address' key is not accessible.
https:/
d. Since there is no error handling in the primary loop, all other tasks that were within the queue are forgotten
https:/
As far as I understand, there are two problems:
1. In this commit https:/
2. The primary worker loop mechanism does not support unexpected behavior like crashes and such. Is it by design that all other tasks will drop in this case?
Here's a small visualization: TBD
Version:
Yoga
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → Critical |
description: | updated |
information type: | Private Security → Public Security |
https:/ /imgur. com/a/8whcswp