Default value of 'CONF.oslo_policy.policy_file' config option
has been changed from 'policy.json' to 'policy.yaml'. If new default
file 'policy.yaml' does not exist but old default 'policy.json' exist
then fallback to use old default file.
An upgrade checks is added to check the policy_file format and
fail upgrade checks if it is JSON formatted.
Added a warning in policy doc about JSON formatted file is deprecated,
also removed all the reference to policy.json file in doc as well as
in tests.
Reviewed: https:/ /review. opendev. org/748059 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=fe545dbe5fb 434d5fce2d4d0f2 4c6c4a6bdd7d21
Committed: https:/
Submitter: Zuul
Branch: master
commit fe545dbe5fb434d 5fce2d4d0f24c6c 4a6bdd7d21
Author: Ghanshyam Mann <email address hidden>
Date: Thu Sep 3 14:25:43 2020 -0500
Migrate default policy file from JSON to YAML
Default value of 'CONF.oslo_ policy. policy_ file' config option
has been changed from 'policy.json' to 'policy.yaml'. If new default
file 'policy.yaml' does not exist but old default 'policy.json' exist
then fallback to use old default file.
An upgrade checks is added to check the policy_file format and
fail upgrade checks if it is JSON formatted.
Added a warning in policy doc about JSON formatted file is deprecated,
also removed all the reference to policy.json file in doc as well as
in tests.
Related Blueprint: policy-json-to-yaml
Closes-Bug: #1875418
Change-Id: Ic4d3b998bb9701 cb1e3ef12d9bb6f 4d91cc19c18