New exception QosPlacementAllocationConflict

In case the update of placement allocation fails with conflict and with
message like: "The requested amount would exceed the capacity" this new
exception can indicate it for neuton users.

Change-Id: I2460e7d8025cedd2e92abdc9d769d2ad0b84838b
Related-Bug: #1882804
This commit is contained in:
elajkat 2020-08-26 14:06:09 +02:00 committed by Slawek Kaplonski
parent 41e6b9bed8
commit 0380f0c860
1 changed files with 6 additions and 0 deletions

View File

@ -105,3 +105,9 @@ class RouterQosBindingNotFound(e.NotFound):
class RouterQosBindingError(e.NeutronException):
message = _("QoS binding for router %(router_id)s gateway and policy "
"%(policy_id)s could not be created: %(db_error)s.")
class QosPlacementAllocationConflict(e.Conflict):
message = _("Allocation for consumer %(consumer)s is not possible on "
"resource provider %(rp)s, the requested amount of bandwidth "
"would exceed the capacity available.")