bulk-delete-floating-ip does not free used quota

Bug #1254174 reported by David Ripton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
David Ripton
Havana
Won't Fix
Medium
Yaguang Tang

Bug Description

The bulk-create-floating-ip and bulk-delete-floating-ip commands do not interact with floating_ip quotas. This is by design, since they're for admins rather than tenants.

However, in one case this causes a bug. If a tenant initially allocates the floating IP with create-floating-ip and consumed quota, and the admin later deletes the floating Ip with bulk-delete-floating-ip, the floating IP is freed but the quota is still consumed.

So we should change bulk-delete-floating-ip to release any quota that was associated with those floating IP addresses. (In many cases there will not be any so we need to check.)

This is https://bugzilla.redhat.com/show_bug.cgi?id=1029756 (but that bug is mostly private so won't people outside Red Hat much good).

Tags: network
David Ripton (dripton)
Changed in nova:
assignee: nobody → David Ripton (dripton)
importance: Undecided → Medium
milestone: none → icehouse-1
tags: added: havana-backport-potential network
Changed in nova:
milestone: icehouse-1 → icehouse-2
Changed in nova:
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/65029

Changed in nova:
status: Triaged → In Progress
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-2 → icehouse-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/65029
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=384cce84fde784f9e2f39db49502c66e20ff0b4c
Submitter: Jenkins
Branch: master

commit 384cce84fde784f9e2f39db49502c66e20ff0b4c
Author: David Ripton <email address hidden>
Date: Sun Jan 5 23:15:14 2014 -0500

    Make floating_ip_bulk_destroy deallocate quota if not auto_assigned

    The expected use case for floating_ip_bulk_destroy is to destroy
    auto_assigned floating IPs, for which no quota is used so no quota
    needs to be recovered. But it can also be used to destroy other
    (not auto_assigned) floating IPs, in which case the previously used
    quota was not recovered. This fixes the quota leak in that unusual
    case.

    Closes-Bug: #1254174

    Change-Id: Ibff80d9ebac8d4422e401909033da12d9ec0b593

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/72549

Yaguang Tang (heut2008)
tags: removed: havana-backport-potential
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.