Public bug reported: This is based on code inspection at the moment, but attaching an interface (port) to a server by providing a network and having nova- compute create the port on that network can result in an over-quota failure from neutron:
https://github.com/openstack/nova/blob/6ebb2c4cae65cb437e17a8c02fe5174a9825d8e0/nova/network/neutronv2/api.py#L565 Which is not handled in the API controller: https://github.com/openstack/nova/blob/6ebb2c4cae65cb437e17a8c02fe5174a9825d8e0/nova/api/openstack/compute/attach_interfaces.py#L168 So it will result in a 500 response from the API when it should really be something like 403. ** Affects: nova Importance: Undecided Status: New ** Tags: api neutron -- 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/1823203 Title: PortLimitExceeded results in 500 error from POST /servers/{server_id }/os-interface Status in OpenStack Compute (nova): New Bug description: This is based on code inspection at the moment, but attaching an interface (port) to a server by providing a network and having nova- compute create the port on that network can result in an over-quota failure from neutron: https://github.com/openstack/nova/blob/6ebb2c4cae65cb437e17a8c02fe5174a9825d8e0/nova/network/neutronv2/api.py#L565 Which is not handled in the API controller: https://github.com/openstack/nova/blob/6ebb2c4cae65cb437e17a8c02fe5174a9825d8e0/nova/api/openstack/compute/attach_interfaces.py#L168 So it will result in a 500 response from the API when it should really be something like 403. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1823203/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

