Merge "Undercloud: Deprecate unused scheduler_max_attempts"

This commit is contained in:
Zuul 2022-10-18 14:10:50 +00:00 committed by Gerrit Code Review
commit 008ff277db
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
The ``[DEFAULT] scheduler_max_attempts`` option of undercloud.conf has been
deprecated. The option has had no effect since nova was removed from
undercloud.

View File

@ -287,6 +287,10 @@ class UndercloudConfig(StandaloneConfig):
),
cfg.IntOpt('scheduler_max_attempts',
default=30, min=1,
deprecated_for_removal=True,
deprecated_reason=_(
'This option has no effect since nova was removed '
'from undercloud.'),
help=_(
'Maximum number of attempts the scheduler will '
'make when deploying the instance. You should keep '

View File

@ -64,7 +64,6 @@ PARAMETER_MAPPING = {
'undercloud_debug': 'Debug',
'certificate_generation_ca': 'CertmongerCA',
'undercloud_public_host': 'CloudName',
'scheduler_max_attempts': 'NovaSchedulerMaxAttempts',
'local_mtu': 'UndercloudLocalMtu',
'clean_nodes': 'IronicAutomatedClean',
'container_healthcheck_disabled': 'ContainerHealthcheckDisabled',