placement/placement
Chris Dent 324e4f44da Allow placement to start without a config file
With oslo.config 6.7.0 configuration options may be found in environment
variables. Because of the small number of options that placement
requires to run it is straightforward to source all config from the
environment, useful in container-based environments.

However, prior to this change, placement-the-wsgi-app required that a
configuration file existed, placement.conf, either in /etc/placement or
in a custom directory.

This change makes it so that the placement.conf can be any of:

* in the custom directory
* in the default project locations (including /etc/placement)
* nowhere

The change maintains the behavior that if
[placement_database]/connection is not set the application will fail to
start.

Though this change is orthogonal to the oslo.config change, requirements
and lower-constraints are updated to ensure the desired behavior.

Closes-Bug: #1802925
Change-Id: Iefa8ad22dcb6a128293ea71ab77c377db56e8d70
2018-11-29 13:25:47 +00:00
..
cmd manage: Do not use set_defaults on parent parsers with py2 2018-11-22 14:55:53 +00:00
conf Remove [keystone] config options from placement 2018-11-28 03:07:57 +00:00
db Adapt placement fixtures for external use 2018-11-20 15:00:58 +00:00
handlers Add missing ws seperator between words 2018-11-19 15:14:19 +08:00
objects Merge "Consider root id is None in the database case" 2018-11-21 04:17:33 +00:00
policies Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00
schemas Fix alpha-ordering of imports for pep8 2018-09-04 10:31:28 -05:00
tests Add assertions to verify placement-manage error output 2018-11-22 16:33:40 +00:00
__init__.py Move the placement code to the base 2018-09-04 10:31:23 -05:00
auth.py Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00
context.py Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00
db_api.py Added alembic environment 2018-11-14 15:26:13 +00:00
deploy.py Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00
direct.py Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00
errors.py Move the placement code to the base 2018-09-04 10:31:23 -05:00
exception.py nova.exception -> placement.exception in docstrings and comment 2018-09-15 11:57:10 -06:00
fault_wrap.py Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00
handler.py Fix alpha-ordering of imports for pep8 2018-09-04 10:31:28 -05:00
i18n.py Update i18n handling to be placement oriented. 2018-09-04 10:31:25 -05:00
lib.py Merge "max-complexity=>16: refactor GET /a_c qs parsing" 2018-10-02 11:22:02 +00:00
microversion.py Move the placement code to the base 2018-09-04 10:31:23 -05:00
policy.py oslo_config fixture in policy tests and 'placement' in policy 2018-09-14 13:30:04 -06:00
rc_fields.py Add bandwidth related standard resource classes 2018-11-05 17:56:19 -05:00
requestlog.py Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00
resource_class_cache.py Added alembic environment 2018-11-14 15:26:13 +00:00
rest_api_version_history.rst Refresh maximum version info in rest history doc 2018-09-10 09:57:20 +08:00
util.py Harden placement init under wsgi 2018-11-08 12:49:14 +00:00
wsgi.py Allow placement to start without a config file 2018-11-29 13:25:47 +00:00
wsgi_wrapper.py Remove the import pathing for the old structure 2018-09-04 10:31:24 -05:00