Ensure 413 response for security group over-quota
Fixes LP 1021748 Instead of raising the relevant webob.exc exception directly, we now follow the usual pattern of mapping in the FaultWrapper middleware from an internal exception type to the corresponding HTTP error. Change-Id: Ifb43685e4f9b0b5bd53e74747d1f87aa5e119fb5
This commit is contained in:
@@ -1039,6 +1039,10 @@ class KeypairLimitExceeded(QuotaError):
|
||||
message = _("Maximum number of key pairs exceeded")
|
||||
|
||||
|
||||
class SecurityGroupLimitExceeded(QuotaError):
|
||||
message = _("Maximum number of security groups or rules exceeded")
|
||||
|
||||
|
||||
class AggregateError(NovaException):
|
||||
message = _("Aggregate %(aggregate_id)s: action '%(action)s' "
|
||||
"caused an error: %(reason)s.")
|
||||
|
Reference in New Issue
Block a user