<div dir="ltr"><div><div>Hi Oslo and Neutron folks,<br><br></div><div>Why is policy_dirs option deprecated in oslo.policy?<br></div><div>In Neutron we have multiple repositories which consist of Neutron services<br></div><div>and we would like to maintain policy.json separately.<br></div><div>policy_dirs option looks useful for this purpose.<br></div><div><br>== Detail ==<br></div><div><br>Neutron project now consists of several repositories and<br></div>they are imported when neutron-server runs.<br></div><div><div>There are cases where it makes sense that each repository manages its policy.json<br></div>and the neutron-server wants to load all related policy.json files.<br>- advanced services have separate repositories and they evolve their API independently<br></div><div>- vendor plugins/drivers in separate repositories (can) have vendor-specific extension API.<br></div><div>  (It is not a good thing from the point of the current API discussion, but we have now.)<br><br></div><div>An easy way is to put all related policy.json into a single directory<br></div><div>lile /etc/neutron/policy.d and specify this to policy_dirs option.<br></div><div><br></div>Looking at oslo.policy (oslo_policy/opts), <br><div>we have a comment policy_dirs option will be removed in M cycle.<br></div><div>I read the commit message where this message was added but<br></div><div>I am not sure why it is a problem.<br></div><div>I would like to know the reason of the deprecation and<br></div><div>discuss how we can handle our use cases.<br><br></div><div>Thanks,<br></div><div>Akihiro<br></div><div><br></div></div>