Remove pecan_debug option
There's no need to expose that option to users. Change-Id: If122b2aa4ea3269236bb54e161d374de1de5993a
This commit is contained in:
parent
e8eafdbba7
commit
d24dff237f
@ -23,9 +23,6 @@ OPTS = [
|
|||||||
cfg.IntOpt('workers', default=1,
|
cfg.IntOpt('workers', default=1,
|
||||||
min=1,
|
min=1,
|
||||||
help='Number of workers for aodh API server.'),
|
help='Number of workers for aodh API server.'),
|
||||||
cfg.BoolOpt('pecan_debug',
|
|
||||||
default=False,
|
|
||||||
help='Toggle Pecan Debug Middleware.'),
|
|
||||||
cfg.BoolOpt('enable_combination_alarms',
|
cfg.BoolOpt('enable_combination_alarms',
|
||||||
default=False,
|
default=False,
|
||||||
help="Enable deprecated combination alarms.",
|
help="Enable deprecated combination alarms.",
|
||||||
|
@ -51,7 +51,6 @@ def setup_app(pecan_config=PECAN_CONFIG, conf=None):
|
|||||||
|
|
||||||
app = pecan.make_app(
|
app = pecan.make_app(
|
||||||
pecan_config['app']['root'],
|
pecan_config['app']['root'],
|
||||||
debug=conf.api.pecan_debug,
|
|
||||||
hooks=app_hooks,
|
hooks=app_hooks,
|
||||||
wrap_app=middleware.ParsableErrorMiddleware,
|
wrap_app=middleware.ParsableErrorMiddleware,
|
||||||
guess_content_type_from_ext=False
|
guess_content_type_from_ext=False
|
||||||
|
@ -72,9 +72,6 @@ class ConfigFixture(fixture.GabbiFixture):
|
|||||||
group='api',
|
group='api',
|
||||||
)
|
)
|
||||||
|
|
||||||
conf.set_override('pecan_debug', True, group='api',
|
|
||||||
enforce_type=True)
|
|
||||||
|
|
||||||
parsed_url = urlparse.urlparse(db_url)
|
parsed_url = urlparse.urlparse(db_url)
|
||||||
if parsed_url.scheme != 'sqlite':
|
if parsed_url.scheme != 'sqlite':
|
||||||
parsed_url = list(parsed_url)
|
parsed_url = list(parsed_url)
|
||||||
|
@ -238,7 +238,6 @@ function configure_aodh {
|
|||||||
# NOTE: This must come after database configuration as those can
|
# NOTE: This must come after database configuration as those can
|
||||||
# call cleanup_aodh which will wipe the WSGI config.
|
# call cleanup_aodh which will wipe the WSGI config.
|
||||||
if [ "$AODH_DEPLOY" == "mod_wsgi" ]; then
|
if [ "$AODH_DEPLOY" == "mod_wsgi" ]; then
|
||||||
iniset $AODH_CONF api pecan_debug "False"
|
|
||||||
_aodh_config_apache_wsgi
|
_aodh_config_apache_wsgi
|
||||||
elif [ "$AODH_DEPLOY" == "uwsgi" ]; then
|
elif [ "$AODH_DEPLOY" == "uwsgi" ]; then
|
||||||
# iniset creates these files when it's called if they don't exist.
|
# iniset creates these files when it's called if they don't exist.
|
||||||
|
@ -51,16 +51,3 @@ work with a copy of Aodh installed via devstack.
|
|||||||
On rpm-based systems::
|
On rpm-based systems::
|
||||||
|
|
||||||
$ service httpd reload
|
$ service httpd reload
|
||||||
|
|
||||||
|
|
||||||
Limitation
|
|
||||||
==========
|
|
||||||
|
|
||||||
As Aodh 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
|
|
||||||
``aodh.conf``.
|
|
||||||
|
|
||||||
For other WSGI setup you can refer to the `pecan deployment`_ documentation.
|
|
||||||
.. _`pecan deployment`: http://pecan.readthedocs.org/en/latest/deployment.html#deployment
|
|
||||||
|
@ -60,15 +60,3 @@ Run the server:
|
|||||||
|
|
||||||
uwsgi_python --master --die-on-term --logto /var/log/aodh/aodh-api.log \
|
uwsgi_python --master --die-on-term --logto /var/log/aodh/aodh-api.log \
|
||||||
--http-socket :8042 --wsgi-file /usr/share/aodh-common/app.wsgi
|
--http-socket :8042 --wsgi-file /usr/share/aodh-common/app.wsgi
|
||||||
|
|
||||||
Limitation
|
|
||||||
==========
|
|
||||||
|
|
||||||
As Aodh 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
|
|
||||||
``aodh.conf``.
|
|
||||||
|
|
||||||
For other WSGI setup you can refer to the `pecan deployment`_ documentation.
|
|
||||||
.. _`pecan deployment`: http://pecan.readthedocs.org/en/latest/deployment.html#deployment
|
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- The api.pecan_debug option has been removed.
|
Loading…
Reference in New Issue
Block a user