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/562963 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d604e831e8a 5f3fc8fd489fade 5dd821cec84de9
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit d604e831e8a5f3f c8fd489fade5dd8 21cec84de9
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