Reset policies after RESOURCE_ATTRIBUTE_MAP is populated
The REST API relies on neutron-specific policy checking logic that is
only available after the extensions are loaded and the
RESOURCE_ATTRIBUTE_MAP is populated. This patch resets the policies
immediately after these steps are done. This ensures that in the event
the policies are prematurely loaded for any reason, the on-demand
loading of the policies will reload the policies and properly configure
the neutron specific checks on the next policy check.
Reviewed: https:/ /review. openstack. org/146603 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c9cb001626e 90239b1ffe5583a b9a4349280856c
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit c9cb001626e9023 9b1ffe5583ab9a4 349280856c
Author: Brent Eagles <email address hidden>
Date: Fri Oct 10 13:27:51 2014 -0230
Reset policies after RESOURCE_ ATTRIBUTE_ MAP is populated
The REST API relies on neutron-specific policy checking logic that is ATTRIBUTE_ MAP is populated. This patch resets the policies
only available after the extensions are loaded and the
RESOURCE_
immediately after these steps are done. This ensures that in the event
the policies are prematurely loaded for any reason, the on-demand
loading of the policies will reload the policies and properly configure
the neutron specific checks on the next policy check.
Change-Id: Ic2ab3f0179b0c1 92e63af0bc4268d 92aa26bdabe 9813091926dd8ce f58680ad8f)
Closes-Bug: #1398566
Related-Bug: #1254555
(cherry picked from commit eeff5d06b2099ed