Comment 7 for bug 1831647

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/stein)

Reviewed: https://review.opendev.org/664519
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e6cab0f414b135165f7dda41c49c9b4b485e2c31
Submitter: Zuul
Branch: stable/stein

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)