]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid loading policy when processing rpc requests
authorEugene Nikanorov <enikanorov@mirantis.com>
Thu, 28 Nov 2013 08:46:41 +0000 (12:46 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Thu, 28 Nov 2013 09:02:02 +0000 (13:02 +0400)
commit572ca29a0c8d8c832b2fa45895f4b58fd74d2fba
tree0b7251d3bd5a652fd5f0e79311490e528bddcd5f
parenta191781e7d0a413a207930f35db0ad0d66518def
Avoid loading policy when processing rpc requests

When Neutron server is restarted in the environment where multiple agents
are sending rpc requests to Neutron, it causes loading of policy.json
before API extensions are loaded. That causes different policy check
failures later on.
This patch avoids loading policy when creating a Context in rpc layer.

Change-Id: I66212baa937ec1457e0d284b5445de5243a8931f
Partial-Bug: 1254555
neutron/common/rpc.py