Public bug reported: This bug is related to https://bugs.launchpad.net/neutron/+bug/1954763.
There is a problem with the IPAM module, [1] and ML2 OVN driver. When a port is created in "create_port_bulk", we first create the IPAM allocations [1], to save time and DB accesses. However, if one port fails in the driver call, the port is deleted. In this port deletion, the IPAM reservation is deleted too. At the end of "create_port_bulk", the previously created IPAM reservations are deleted too (again). This is what is triggering the error in the Neutron server [2]. The DB now has a port register, a IP allocation register but not an IPAM allocation register. That prevents from deleting manually this port (error 500). Red Hat bugzilla reference: https://bugzilla.redhat.com/show_bug.cgi?id=2065634 [1]https://review.opendev.org/q/I8877c658446fed155130add6f1c69f2772113c27 [2]https://paste.opendev.org/show/b6e3INfzhPTkOFW5fhPb/ ** Affects: neutron Importance: Medium Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez) Status: New ** Changed in: neutron Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez) ** Changed in: neutron Importance: Undecided => Medium -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1965807 Title: Bulk port creation breaks IPAM module when driver port creation fails Status in neutron: New Bug description: This bug is related to https://bugs.launchpad.net/neutron/+bug/1954763. There is a problem with the IPAM module, [1] and ML2 OVN driver. When a port is created in "create_port_bulk", we first create the IPAM allocations [1], to save time and DB accesses. However, if one port fails in the driver call, the port is deleted. In this port deletion, the IPAM reservation is deleted too. At the end of "create_port_bulk", the previously created IPAM reservations are deleted too (again). This is what is triggering the error in the Neutron server [2]. The DB now has a port register, a IP allocation register but not an IPAM allocation register. That prevents from deleting manually this port (error 500). Red Hat bugzilla reference: https://bugzilla.redhat.com/show_bug.cgi?id=2065634 [1]https://review.opendev.org/q/I8877c658446fed155130add6f1c69f2772113c27 [2]https://paste.opendev.org/show/b6e3INfzhPTkOFW5fhPb/ To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1965807/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

