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/146572 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=175e86977d6 905e1e11766ca47 e30b89c88d8827
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 175e86977d6905e 1e11766ca47e30b 89c88d8827
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