commit e6cab0f414b135165f7dda41c49c9b4b485e2c31
Author: Jakub Libosvar <email address hidden>
Date: Thu Jun 6 18:58:20 2019 +0000
rbac: Catch correct exception for duplicated entry
RBAC network policy is uniquely identified by network ID. That means
when attempting to create such network policy, we should not retry when
such policy already exists in the database.
Before we switched in rbac to use OVO, we translated DB DBDuplicateEntry
on such ocasions into dedicated RBAC exception to avoid DB retry
mechanism (see bug/1551473). After introducing OVO layer for RBAC, the
exception was not changed to the one coming from OVO. This patch
replaces the exception from DB to the exception from OVO.
Another patch will go to neutron-tempest-plugin to limit time API needs
to reply with failure to user, when attempting to create an existing
policy.
Closes-Bug: #1831647
Change-Id: I7c65376f6fd6fc29d510ea532a684917ed95deb1
(cherry picked from commit 26b3e6b1c4622087a2aaa542cb5ac5e477bd47b8)
Reviewed: https:/ /review. opendev. org/664519 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=e6cab0f414b 135165f7dda41c4 9c9b4b485e2c31
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit e6cab0f414b1351 65f7dda41c49c9b 4b485e2c31
Author: Jakub Libosvar <email address hidden>
Date: Thu Jun 6 18:58:20 2019 +0000
rbac: Catch correct exception for duplicated entry
RBAC network policy is uniquely identified by network ID. That means
when attempting to create such network policy, we should not retry when
such policy already exists in the database.
Before we switched in rbac to use OVO, we translated DB DBDuplicateEntry
on such ocasions into dedicated RBAC exception to avoid DB retry
mechanism (see bug/1551473). After introducing OVO layer for RBAC, the
exception was not changed to the one coming from OVO. This patch
replaces the exception from DB to the exception from OVO.
Another patch will go to neutron- tempest- plugin to limit time API needs
to reply with failure to user, when attempting to create an existing
policy.
Closes-Bug: #1831647
Change-Id: I7c65376f6fd6fc 29d510ea532a684 917ed95deb1 7a2aaa542cb5ac5 e477bd47b8)
(cherry picked from commit 26b3e6b1c462208