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.
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?
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: /github. com/openstack/ neutron/ blob/stable/ yoga/neutron/ agent/dhcp/ agent.py /github. com/openstack/ neutron/ blob/cf096344b0 7b80524c3888e44 e0b895465598a74 /neutron/ agent/common/ resource_ processing_ queue.py# L177C1- L178C1 /github. com/openstack/ neutron/ blob/cf096344b0 7b80524c3888e44 e0b895465598a74 /neutron/ agent/dhcp/ agent.py# L86 /github. com/openstack/ neutron/ blob/cf096344b0 7b80524c3888e44 e0b895465598a74 /neutron/ agent/common/ resource_ processing_ queue.py# L156
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: /github. com/openstack/ neutron/ commit/ 53000704f211bbb d5e439890015891 039ef6752e the __lt__ functionality was changed but did not support the router port deleteion.
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