Undercloud: Deprecate unused scheduler_max_attempts

The option was used to tune behavior of nova-scheduler but has had no
effect since nova was removed from undercloud.

Change-Id: Ie01f4663b944a12c8ef11addf95b6b3574cb5ee7
This commit is contained in:
Takashi Kajinami 2022-09-21 12:38:24 +09:00
parent aa8618da4f
commit e7da2e541e
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',