placement/setup.cfg
Ghanshyam Mann fa95ef8772 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ia7365cc3ae09e2ff916ab9f9ff0ba4fef0dc446b
2021-01-15 20:34:51 +00:00

57 lines
1.9 KiB
INI

[metadata]
name = openstack-placement
summary = Resource provider inventory usage and allocation service
description-file =
README.rst
author = OpenStack
author-email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/placement/latest/
project_urls =
Bug Tracker = https://storyboard.openstack.org/#!/project/openstack/placement
Documentation = https://docs.openstack.org/placement/latest/
API Reference = https://docs.openstack.org/api-ref/placement/
Source Code = https://opendev.org/openstack/placement
Release Notes = https://docs.openstack.org/releasenotes/placement/
python-requires = >=3.6
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
[files]
packages =
placement
placement_db_tools
[entry_points]
oslo.config.opts =
placement.conf = placement.conf.opts:list_opts
oslo.config.opts.defaults =
nova.conf = placement.conf.base:set_lib_defaults
oslo.policy.enforcer =
placement = placement.policy:get_enforcer
oslo.policy.policies =
# The sample policies will be ordered by entry point and then by list
# returned from that entry point. If more control is desired split out each
# list_rules method into a separate entry point rather than using the
# aggregate method.
placement = placement.policies:list_rules
console_scripts =
placement-manage = placement.cmd.manage:main
placement-status = placement.cmd.status:main
wsgi_scripts =
placement-api = placement.wsgi:init_application