Asymmetric floating IP notifications
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Medium
|
Brian Haley |
Bug Description
Dear all,
we are using `oslo_messaging
receive updates about floating ip (FIP) associations and disassociations to process
them with an in-house tool. This works well in almost all cases, except one.
The cases that are working:
1) associate FIP to router (event router.create.end, router.update.end)
2) delete router that still has a FIP (router.delete.end)
3) associate FIP to VM
4) disassociate FIP from VM
Now, the interesting case that *does not work* is the deletion of a VM that
still has a FIP associated to it. We would like to have this case covered and
be notified about the disassociation. Is there a way to capture this event
via a notification?
There is one more case that also does not seem to work: when clearing the
gateway of a router ("Clear Gateway" in the Horizon dashboard), I am also
not notified of the FIP being released. However, this happens much less
frequently, so we're not overly worried about it.
We do need the information to update an internal, site-wide database of
registered addresses and responsible contacts. There are solutions that
periodically poll the information from the API and report changes as
compared to the previously recorded state. The notification solution allows
us to update our central DB in a more timely manner.
Thanks for any help and best regards,
Björn
tags: | added: l3-dvr-backlog |
Changed in neutron: | |
importance: | Undecided → Medium |
Changed in neutron: | |
assignee: | nobody → Brian Haley (brian-haley) |
Strange, when a port is deleted the floating IP will be dis-associated and two events notifications should happen according to the code in disassociate_ floatingips( ). Was the port associated with the VM deleted? I haven't tried that locally yet.
Regarding the second issue, trying to clear the gateway when a router has an associated floating IP should generate an error. I just tried this using horizon on got this:
"Error: Unable to clear gateway for router router1. Most possible reason is because the gateway is required by one or more floating IPs"
Can you confirm the version of Neutron you're running? Thanks