Remove deprecated [DEFAULT]fatal_exception_format_errors

The `ironic_lib` section has the same option that should
be used instead.

Change-Id: I61a4fe1c4f59119fc79142e74a9744af31ba6392
This commit is contained in:
Iury Gregory Melo Ferreira 2020-05-14 16:24:09 +02:00
parent a5d120c8c3
commit dc2a2da1f5
4 changed files with 6 additions and 12 deletions

View File

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

View File

@ -152,18 +152,9 @@ driver_opts = [
] ]
exc_log_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, cfg.IntOpt('log_in_db_max_size', default=4096,
help=_('Max number of characters of any node ' help=_('Max number of characters of any node '
'last_error/maintenance_reason pushed to database.')), 'last_error/maintenance_reason pushed to database.'))
] ]
hash_opts = [ hash_opts = [

View File

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