Merge "Remove pecan_debug option"

This commit is contained in:
Jenkins 2016-10-13 19:38:17 +00:00 committed by Gerrit Code Review
commit 05e41ab764
5 changed files with 3 additions and 19 deletions

View File

@ -39,9 +39,6 @@ OPTS = [
]
API_OPTS = [
cfg.BoolOpt('pecan_debug',
default=False,
help='Toggle Pecan Debug Middleware.'),
cfg.IntOpt('default_api_return_limit',
min=1,
default=100,
@ -74,7 +71,6 @@ def setup_app(pecan_config=None, conf=None):
app = pecan.make_app(
pecan_config['app']['root'],
debug=conf.api.pecan_debug,
hooks=app_hooks,
wrap_app=middleware.ParsableErrorMiddleware,
guess_content_type_from_ext=False

View File

@ -103,7 +103,6 @@ class ConfigFixture(fixture.GabbiFixture):
conf.set_override('metering_connection', '', group='database')
conf.set_override('event_connection', '', group='database')
conf.set_override('pecan_debug', True, group='api')
conf.set_override('gnocchi_is_enabled', False, group='api')
conf.set_override('aodh_is_enabled', False, group='api')
conf.set_override('panko_is_enabled', False, group='api')

View File

@ -340,7 +340,6 @@ function configure_ceilometer {
fi
if is_service_enabled ceilometer-api && [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
iniset $CEILOMETER_CONF api pecan_debug "False"
_ceilometer_config_apache_wsgi
fi

View File

@ -51,16 +51,3 @@ work with a copy of ceilometer installed via devstack.
On rpm-based systems::
$ service httpd reload
Limitation
==========
As Ceilometer is using Pecan and Pecan's DebugMiddleware doesn't support
multiple processes, there is no way to set debug mode in the multiprocessing
case. To allow multiple processes the DebugMiddleware may be turned off by
setting ``pecan_debug`` to ``False`` in the ``api`` section of
``ceilometer.conf``.
For other WSGI setup you can refer to the `pecan deployment`_ documentation.
.. _`pecan deployment`: http://pecan.readthedocs.org/en/latest/deployment.html

View File

@ -0,0 +1,3 @@
---
upgrade:
- The api.pecan_debug option has been removed.