<div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>For Puppet OpenStack projects I have submitted a series of changes to use policy.yaml instead of policy.json[1].</div><div> [1] <a href="https://review.opendev.org/q/topic:%22policy-yaml%22+(status:open%20OR%20status:merged)">https://review.opendev.org/q/topic:%22policy-yaml%22+(status:open%20OR%20status:merged)</a></div><div><br></div><div>One problem I noticed during making these patches is that Gnocchi still uses policy.json.</div><div>IIUC that policy-in-code is not implemented in gnocchi and the default contents should</div><div>be migrated to policy.yaml appropriately to keep its functionality.<br></div><div>I have submitted a pull request to introduce policy.yaml to replace policy.json to replace</div><div>policy.json by policy.yaml.<br></div><div> [2] <a href="https://github.com/gnocchixyz/gnocchi/pull/1108">https://github.com/gnocchixyz/gnocchi/pull/1108</a></div><div><br></div><div>I know that Gnocchi is not a part of OpenStack projects but we should be careful about it</div><div>before we make any changes in oslo.policy because Gnocchi is currently consuming the library.<br></div><div><br></div><div>Thank you,</div><div>Takashi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 29, 2020 at 4:58 PM Dmitriy Rabotyagov <<a href="mailto:noonedeadpunk@ya.ru">noonedeadpunk@ya.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Hi!</div><div> </div><div>Regarding OpenStack-Ansible I was planning to land patches early January. We eventually need to patch every role to change "dest" and "config_type" for placing template, ie. [1]</div><div> </div><div>Also we will need to think through removal of old json file for ppl that will perform upgrade, to avoid any possible conflicts and confusions because of the prescence of both files.</div><div> </div><div>[1] <a href="https://opendev.org/openstack/openstack-ansible-os_glance/src/branch/master/tasks/glance_post_install.yml#L78-L82" target="_blank">https://opendev.org/openstack/openstack-ansible-os_glance/src/branch/master/tasks/glance_post_install.yml#L78-L82</a></div><div><br></div></div><div> </div><div>26.12.2020, 00:41, "Ghanshyam Mann" <<a href="mailto:gmann@ghanshyammann.com" target="_blank">gmann@ghanshyammann.com</a>>:</div><blockquote><p>Hello Everyone,<br><br>Please find the week's R-16 updates on 'Migrate RBAC Policy Format from JSON to YAML' community-wide goals.<br><br>Tracking: <a href="https://etherpad.opendev.org/p/migrate-policy-format-from-json-to-yaml" rel="noopener noreferrer" target="_blank">https://etherpad.opendev.org/p/migrate-policy-format-from-json-to-yaml</a><br><br>Gerrit Topic: <a href="https://review.opendev.org/q/topic:%22policy-json-to-yaml%22+(status:open%20OR%20status:merged)" rel="noopener noreferrer" target="_blank">https://review.opendev.org/q/topic:%22policy-json-to-yaml%22+(status:open%20OR%20status:merged)</a><br><br>Progress:<br>=======<br>* Projects completed: 5<br>* Projects left to merge the patches: 25<br>* Projects left to push the patches: 2 (horizon and Openstackansible)<br>* Projects do not need any work: 17<br><br>Updates:<br>=======<br>* I have pushed the patches for all the required service projects.<br><br>** Because of many services gate is already broken for lower constraints job, these patches might not be green in the<br>test results. I request projects to fix the gate so that we can merge this goal work before m-2.<br><br>** There are many project tests where CONF object was not fully initialized before the policy is init. This was working till now<br>as policy init did not use the CONF object but oslo_policy 3.6.0 onwards it needs fully initialized CONF object during init only.<br><br>** Aodh work for this goal is blocked because it needs oslo_policy 3.6.0 but gnocchi is capped for oslo_policy 3.4.0 [1]<br>- <a href="https://review.opendev.org/c/openstack/aodh/+/768499" rel="noopener noreferrer" target="_blank">https://review.opendev.org/c/openstack/aodh/+/768499</a><br><br>* Horizon and Openstackansible work is pending to use/deploy the YAML formatted policy file. I will start exploring this<br>next week or so.<br><br>[1] <a href="https://github.com/gnocchixyz/gnocchi/blob/e19fda590c7f7f07f1df0ba93177df07d9802300/setup.cfg#L33" rel="noopener noreferrer" target="_blank">https://github.com/gnocchixyz/gnocchi/blob/e19fda590c7f7f07f1df0ba93177df07d9802300/setup.cfg#L33</a><br><br>Merry Christmas and Happy Holidays!<br><br>-gmann<br> </p></blockquote><div> </div><div> </div><div>-- <br>Kind Regards,</div><div>Dmitriy Rabotyagov</div><div> </div></blockquote></div></div>