Over quota errors originating from Neutron result in 500 error in Nova

Bug #1210598 reported by Phil Day
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
jichenjc

Bug Description

When using the floating IP and SecGroup extensions in Nova with Neutron, and a quota limit is exceeded in Neutron, the exception from the Neutron client results in Nova generating a 500 error.

This is unhelpful to to user, and not consistent with nova-networking

melanie witt (melwitt)
tags: added: api network
Changed in nova:
status: New → Incomplete
Changed in nova:
status: Incomplete → Confirmed
jichenjc (jichenjc)
Changed in nova:
assignee: nobody → jichencom (jichenjc)
Revision history for this message
jichenjc (jichenjc) wrote :

from network/security_group/neutron_driver.py

def create_security_group(self, context, name, description):

security group problem might be fixed now, floating IP issue is still there, let me know your comment, will fix floating ip problem

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/62581

Changed in nova:
status: Confirmed → In Progress
Changed in nova:
milestone: none → icehouse-rc1
importance: Undecided → Low
tags: added: icehouse-rc-potential
Changed in nova:
milestone: icehouse-rc1 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/48606
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8cd0a4120649d7dfa067731c7018afcfa5c7f833
Submitter: Jenkins
Branch: master

commit 8cd0a4120649d7dfa067731c7018afcfa5c7f833
Author: Chris Yeoh <email address hidden>
Date: Fri Sep 27 17:27:18 2013 +0930

    Handle IpAddressGenerationClient neutron

    Handles IpAddressGenerationClient neutron exception which
    can occur when allocating a floating ip fails because
    the pool has been exhausted. Convert the exception
    to a nova NoMoreFloatingIps exception which will be handled
    by the api layer and converted to a 404.

    Change-Id: Ib5320a13b5cc0c493ef0763d0e2b4575dc699bdf
    Partial-Bug: 1210598

Thierry Carrez (ttx)
tags: added: icehouse-backport-potential
removed: icehouse-rc-potential
jichenjc (jichenjc)
no longer affects: python-neutronclient
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/62581
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=9f06c76645a56d66cce5f33a5fd5a3b96a7eb421
Submitter: Jenkins
Branch: master

commit 9f06c76645a56d66cce5f33a5fd5a3b96a7eb421
Author: Huang Rui <email address hidden>
Date: Mon Dec 16 22:14:55 2013 -0500

    Handle over quota exception from Neutron

    When using the floating IP in Nova with Neutron, and
    a quota limit is exceeded in Neutron, the exception from
    the Neutron client results in Nova generating a 500 error.
    This is unhelpful to user, and not consistent with nova-networking
    Return FloatingIPExceedLimit exception when quota exceeded.

    Change I8788993578ac872da9f676fe3e2fb8f98414289d at neutronclient
    add OverQuotaClient exception and it is used in this patch

    Change-Id: Ieb90521cf231acae8b5a9920acf6c77f2e34ef67
    Closes-Bug: #1210598
    Closes-Bug: #1301117

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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