yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #21652
[Bug 1356157] Re: make nova floating-ip-delete atomic with neutron
** Also affects: nova/icehouse
Importance: Undecided
Status: New
** Changed in: nova
Assignee: Matt Riedemann (mriedem) => Aaron Rosen (arosen)
** Changed in: nova/icehouse
Status: New => Fix Committed
** Changed in: nova/icehouse
Importance: Undecided => High
** Changed in: nova/icehouse
Assignee: (unassigned) => Aaron Rosen (arosen)
** Also affects: nova/havana
Importance: Undecided
Status: New
** Changed in: nova/havana
Importance: Undecided => High
** Changed in: nova/havana
Status: New => In Progress
** Changed in: nova/havana
Assignee: (unassigned) => Aaron Rosen (arosen)
** Changed in: nova/havana
Milestone: None => 2013.2.4
** Tags removed: icehouse-backport-potential in-stable-icehouse
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1356157
Title:
make nova floating-ip-delete atomic with neutron
Status in OpenStack Compute (Nova):
Fix Committed
Status in OpenStack Compute (nova) havana series:
In Progress
Status in OpenStack Compute (nova) icehouse series:
Fix Committed
Bug description:
The infra guys were noticing an issue where they were leaking floating ip
addresses. One of the reasons this would occur for them is they called
nova floating-ip-delete which first disassocates the floating-ip in neutron
and then deletes it. Because it makes two calls to neutron if the first one
succeeds and the second fails it results in the instance no longer being
associated with the floatingip. They have retry logic but they base it on
the instance and when they go to retry cleaning up the instance the floatingip
is no longer on the instance so they never delete it.
This patch fixes this issue by directly calling delete_floating_ip instead
of releasing first if using neutron as neutron allows this. I looked into
doing the same thing for nova-network but the code is written to prevent this.
This allows the operation to be atomic. I know this is sorta hackish that
we're doing this in the api layer but we do this in a few other places
too fwiw.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1356157/+subscriptions
References