policy.json is reloaded at each request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Salvatore Orlando |
Bug Description
For every request, quantum v2 API invokes quantum's policy engine (quantum.
def init():
global _POLICY_PATH
if not _POLICY_PATH:
if not _POLICY_PATH:
raise exceptions.
with open(_POLICY_PATH) as f:
This is quite inefficient and might became problematic when the quantum server is under load.
The fix for this bug might consist in the same approach adopted for nova, where the file is reloaded only if its modification time differs from the cached version.
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | folsom-3 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/9692
Review: https:/