Remove deprecated fatal_exception_format_errors option

This config option was only used for internal testing. In Queens
tests were updated to always do this, regardless of the config
option. This removes the option.

No release note included since this was really only an internal
thing and mentioning there would probably just cause confusion.

Change-Id: Ib3cde34d9a181107c77c31c22d225dab073f37b0
This commit is contained in:
Sean McGinnis 2018-02-14 15:41:04 -06:00
parent 9e457255d0
commit 948f90835b
2 changed files with 0 additions and 16 deletions

View File

@ -22,7 +22,6 @@ SHOULD include dedicated exception logging.
"""
from oslo_config import cfg
from oslo_log import log as logging
from oslo_versionedobjects import exception as obj_exc
import six
@ -35,19 +34,6 @@ from cinder.i18n import _
LOG = logging.getLogger(__name__)
# TODO(smcginnis) Remove in Rocky
exc_log_opts = [
cfg.BoolOpt('fatal_exception_format_errors',
default=False,
help='Make exception message format errors fatal.',
deprecated_for_removal=True,
deprecated_since='12.0.0',
deprecated_reason='This is only used for internal testing.'),
]
CONF = cfg.CONF
CONF.register_opts(exc_log_opts)
class ConvertedException(webob.exc.WSGIHTTPException):
def __init__(self, code=500, title="", explanation=""):

View File

@ -50,7 +50,6 @@ from cinder import context as cinder_context
from cinder import coordination as cinder_coordination
from cinder.db import api as cinder_db_api
from cinder.db import base as cinder_db_base
from cinder import exception as cinder_exception
from cinder.image import glance as cinder_image_glance
from cinder.image import image_utils as cinder_image_imageutils
from cinder.keymgr import conf_key_mgr as cinder_keymgr_confkeymgr
@ -229,7 +228,6 @@ def list_opts():
cinder_context.context_opts,
cinder_db_api.db_opts,
[cinder_db_base.db_driver_opt],
cinder_exception.exc_log_opts,
cinder_image_glance.glance_opts,
cinder_image_glance.glance_core_properties_opts,
cinder_image_imageutils.image_helper_opts,