neutron/neutron
Sławek Kapłoński a91d84cfb4 Fix error message when duplicate QoS rule is created
When user tries to create QoS rule which already exists in same
QoS policy, only check if rule is duplicated was done on DB layer.
Because of that, there was many retries of DB operations so user
waits to response from Neutron server long time.
Also error message returned from this DB related exception was not
user friendly.

This patch adds additional check of such duplicated rules before
there is attempt to save new/updated rule in database so in case
of error, response is send to user faster and it has proper
message.

Change-Id: I7d55df1eb931583c3dde064e073deb3e5479acc2
Closes-Bug: #1746526
2018-02-13 10:16:02 +01:00
..
agent Merge "ovsfw: Don't create rules if updated port doesn't exist" 2018-01-31 08:27:57 +00:00
api remove neutron.callbacks package 2018-01-16 09:32:32 -07:00
cmd More efficiently clean up OVS ports 2018-01-22 14:07:42 -06:00
common Fix error message when duplicate QoS rule is created 2018-02-13 10:16:02 +01:00
conf Merge "Remove deprecated nova_metadata_ip" 2018-01-18 12:09:06 +00:00
core_extensions use qos constants from neutron-lib 2017-10-26 19:57:19 +00:00
db Merge "l3_ha: only pass host into update_port when updating router port bindings" 2018-01-21 09:47:36 +00:00
debug Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
extensions Support filtering port with IP address substring 2018-01-12 18:22:06 +00:00
hacking hacking: Remove dead code 2017-07-19 13:43:44 +02:00
ipam Switch to use _get_subnet_object in neutrondb_ipam driver 2017-12-12 13:42:15 +01:00
locale Imported Translations from Zanata 2017-07-18 08:36:04 +00:00
notifiers use callback payloads for REQUEST/RESPONSE events 2017-12-24 07:27:11 +00:00
objects Fix error message when duplicate QoS rule is created 2018-02-13 10:16:02 +01:00
pecan_wsgi Fixes minor typo in neutron 2018-01-18 14:27:59 +08:00
plugins Merge "Integration of (Distributed) Port Binding OVO" 2018-01-18 19:21:14 +00:00
privileged Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
quota CountableResource: try count/get functions for all plugins 2017-09-08 10:50:12 -07:00
scheduler Merge "use l3 api def from neutron-lib" 2017-12-16 13:01:14 +00:00
server Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
services Fix error message when duplicate QoS rule is created 2018-02-13 10:16:02 +01:00
tests Fix error message when duplicate QoS rule is created 2018-02-13 10:16:02 +01:00
__init__.py
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Merge "Remove deprecated cache_url" 2018-01-03 06:35:59 +00:00
policy.py Merge "Log policy filters in one line" 2017-08-23 11:09:37 +00:00
service.py use callback payloads for _SPAWN events 2017-12-21 11:03:36 -07:00
version.py
worker.py replace WorkerSupportServiceMixin with neutron-lib's WorkerBase 2017-06-14 06:56:48 -06:00
wsgi.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00