Merge "Remove deprecated [DEFAULT]fatal_exception_format_errors"

This commit is contained in:
Zuul 2020-05-28 12:09:39 +00:00 committed by Gerrit Code Review
commit 81e8f819f2
4 changed files with 6 additions and 12 deletions

View File

@ -273,7 +273,6 @@ default:
no-raid
enabled_vendor_interfaces =
no-vendor
fatal_exception_format_errors = False
force_raw_images = True
graceful_shutdown_timeout = 60
grub_config_template = /opt/stack/ironic/ironic/common/grub_conf.template

View File

@ -153,18 +153,9 @@ driver_opts = [
]
exc_log_opts = [
cfg.BoolOpt('fatal_exception_format_errors',
default=False,
help=_('Used if there is a formatting error when generating '
'an exception message (a programming error). If True, '
'raise an exception; if False, use the unformatted '
'message.'),
deprecated_for_removal=True,
deprecated_reason=_('Same option in the ironic_lib section '
'should be used instead.')),
cfg.IntOpt('log_in_db_max_size', default=4096,
help=_('Max number of characters of any node '
'last_error/maintenance_reason pushed to database.')),
'last_error/maintenance_reason pushed to database.'))
]
hash_opts = [

View File

@ -120,7 +120,6 @@ class TestCase(oslo_test_base.BaseTestCase):
def _set_config(self):
self.cfg_fixture = self.useFixture(config_fixture.Config(CONF))
self.config(use_stderr=False,
fatal_exception_format_errors=True,
tempdir=tempfile.tempdir)
self.config(cleaning_network=uuidutils.generate_uuid(),
group='neutron')

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
The ``[DEFAULT]fatal_exception_format_errors`` was removed,
use ``[ironic_lib]fatal_exception_format_errors`` instead.