Browse Source

Remove Floating IP DNS record upon associated port deletion

Port deletion triggers disassociate_floatingips. This patch ensures
that method not only clears the port association for a Floating IP,
but also removes any DNS record associated with it.

Change-Id: Ia6202610c09811f240af35e2523126447bf02ca5
Closes-Bug: #1812168
(cherry picked from commit 4379310846)
tags/14.0.4
Salvatore Orlando 1 year ago
committed by Adit Sarfaty
parent
commit
a9b4a4553e
2 changed files with 9 additions and 0 deletions
  1. +3
    -0
      neutron/db/l3_db.py
  2. +6
    -0
      releasenotes/notes/bug-1812168-4866066106c566f4.yaml

+ 3
- 0
neutron/db/l3_db.py View File

@@ -1654,6 +1654,9 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase,
'context': context,
'router_ids': router_ids,
}
# Process DNS record removal after committing the transaction
if self._is_dns_integration_supported:
self._process_dns_floatingip_delete(context, fip.to_dict())
registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE, self,
**assoc_result)
return router_ids


+ 6
- 0
releasenotes/notes/bug-1812168-4866066106c566f4.yaml View File

@@ -0,0 +1,6 @@
---
fixes:
- |
[`bug 1812168 <https://bugs.launchpad.net/neutron/+bug/1812168>`_]
Remove Floating IP DNS record upon associated port deletion.


Loading…
Cancel
Save