In case when network was shared with specified project
by RBAC rule and it was also set as "shared" there was
a bug which forbid to set such network as not shared even
if only projects which still used network was owner and
project with specified RBAC rule.
This patch fixes it by adding additional check in
NeutronDbPluginV2._validate_shared_update() in such case.
Change-Id: I6ab05a8f0ece454f5bef8ba978af05f5fa1354d8
Closes-Bug: #1764330
(cherry picked from commit 7aa941cc09aef8efe54f5bac111248d296e9c8ef)
Reviewed: https:/ /review. openstack. org/563509 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=1d3568da772 dfba989f6b0f18a 99f6d02860c2a6
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 1d3568da772dfba 989f6b0f18a99f6 d02860c2a6
Author: Sławek Kapłoński <email address hidden>
Date: Mon Apr 16 13:17:17 2018 +0200
[RBAC] Fix setting network as not shared
In case when network was shared with specified project
by RBAC rule and it was also set as "shared" there was
a bug which forbid to set such network as not shared even
if only projects which still used network was owner and
project with specified RBAC rule.
This patch fixes it by adding additional check in uginV2. _validate_ shared_ update( ) in such case.
NeutronDbPl
Change-Id: I6ab05a8f0ece45 4f5bef8ba978af0 5f5fa1354d8 fe54f5bac111248 d296e9c8ef)
Closes-Bug: #1764330
(cherry picked from commit 7aa941cc09aef8e