Drop explicit description about default values

The default values defined in code are automatically picked up by
oslo-config-generator and added to the config file generated by
the tool.

Change-Id: I4a8db8905baea9d10b49e24a85bb506102cc00ee
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-02 00:14:20 +09:00
parent 76fcfd7a09
commit f1c903904f
8 changed files with 31 additions and 41 deletions

View File

@@ -276,7 +276,7 @@ opts = [
default=True, default=True,
mutable=True, mutable=True,
help=_('Allow deleting nodes which are in state ' help=_('Allow deleting nodes which are in state '
'\'available\'. Defaults to True.')), '\'available\'.')),
cfg.BoolOpt('enable_mdns', default=False, cfg.BoolOpt('enable_mdns', default=False,
help=_('Whether to enable publishing the baremetal API ' help=_('Whether to enable publishing the baremetal API '
'endpoint via multicast DNS.')), 'endpoint via multicast DNS.')),
@@ -370,8 +370,8 @@ opts = [
min=0, min=0,
mutable=True, mutable=True,
help=_('Maximum number of history entries which will be stored ' help=_('Maximum number of history entries which will be stored '
'in the database per node. Default is 300. This setting ' 'in the database per node. This setting excludes '
'excludes the minimum number of days retained using the ' 'the minimum number of days retained using the '
'[conductor]node_history_minimum_days setting.')), '[conductor]node_history_minimum_days setting.')),
cfg.IntOpt('node_history_cleanup_interval', cfg.IntOpt('node_history_cleanup_interval',
min=0, min=0,
@@ -379,8 +379,7 @@ opts = [
mutable=False, mutable=False,
help=_('Interval in seconds at which node history entries ' help=_('Interval in seconds at which node history entries '
'can be cleaned up in the database. Setting to 0 ' 'can be cleaned up in the database. Setting to 0 '
'disables the periodic task. Defaults to once a day, ' 'disables the periodic task.')),
'or 86400 seconds.')),
cfg.IntOpt('node_history_cleanup_batch_count', cfg.IntOpt('node_history_cleanup_batch_count',
min=0, min=0,
default=1000, default=1000,
@@ -389,9 +388,8 @@ opts = [
'from the database when performing clean-up. ' 'from the database when performing clean-up. '
'Deletes are performed by node, and a node with excess ' 'Deletes are performed by node, and a node with excess '
'records for a node will still be deleted. ' 'records for a node will still be deleted. '
'Defaults to 1000. Operators who find node history ' 'Operators who find node history building up may wish '
'building up may wish to ' 'to lower this threshold and decrease the time between '
'lower this threshold and decrease the time between '
'cleanup operations using the ' 'cleanup operations using the '
'``node_history_cleanup_interval`` setting.')), '``node_history_cleanup_interval`` setting.')),
cfg.IntOpt('node_history_minimum_days', cfg.IntOpt('node_history_minimum_days',
@@ -410,26 +408,23 @@ opts = [
mutable=False, mutable=False,
help=_('Interval in seconds at which stale conductor entries ' help=_('Interval in seconds at which stale conductor entries '
'can be cleaned up from the database. Setting to 0 ' 'can be cleaned up from the database. Setting to 0 '
'disables the periodic task. Defaults to 86400 (1 day).' 'disables the periodic task.')),
)),
cfg.IntOpt('conductor_cleanup_timeout', cfg.IntOpt('conductor_cleanup_timeout',
min=60, min=60,
default=1209600, default=1209600,
mutable=True, mutable=True,
help=_('Timeout in seconds after which offline conductors ' help=_('Timeout in seconds after which offline conductors '
'are considered stale and can be cleaned up from the ' 'are considered stale and can be cleaned up from the '
'database. It defaults to two weeks (1209600 seconds) ' 'database. THis is always required to be at least 3x '
'and is always required to be at least 3x larger than ' 'larger than [conductor]heartbeat_timeout since if '
'[conductor]heartbeat_timeout since if otherwise, ' 'otherwise, active conductors might be mistakenly '
'active conductors might be mistakenly removed from ' 'removed from the database.')),
'the database.')),
cfg.IntOpt('conductor_cleanup_batch_size', cfg.IntOpt('conductor_cleanup_batch_size',
min=1, min=1,
default=50, default=50,
mutable=True, mutable=True,
help=_('The maximum number of stale conductor records to clean ' help=_('The maximum number of stale conductor records to clean '
'up from the database in a single cleanup operation. ' 'up from the database in a single cleanup operation.')),
'Defaults to 50.')),
cfg.MultiOpt('verify_step_priority_override', cfg.MultiOpt('verify_step_priority_override',
item_type=types.Dict(), item_type=types.Dict(),
default={}, default={},

View File

@@ -453,8 +453,7 @@ webserver_opts = [
'certificate for SSL verification. If the path does ' 'certificate for SSL verification. If the path does '
'not exist, the behavior is same as when this value ' 'not exist, the behavior is same as when this value '
'is set to True i.e the certificates present in the ' 'is set to True i.e the certificates present in the '
'standard path are used for SSL verification.' 'standard path are used for SSL verification.')),
'Defaults to True.')),
cfg.IntOpt('webserver_connection_timeout', cfg.IntOpt('webserver_connection_timeout',
default=60, default=60,
help=_('Connection timeout when accessing/interacting with ' help=_('Connection timeout when accessing/interacting with '

View File

@@ -69,15 +69,14 @@ opts = [
default=True, default=True,
mutable=True, mutable=True,
help=_('Whether to support the use of ATA Secure Erase ' help=_('Whether to support the use of ATA Secure Erase '
'during the cleaning process. Defaults to True.')), 'during the cleaning process.')),
cfg.BoolOpt('enable_nvme_secure_erase', cfg.BoolOpt('enable_nvme_secure_erase',
default=True, default=True,
mutable=True, mutable=True,
help=_('Whether to support the use of NVMe Secure Erase ' help=_('Whether to support the use of NVMe Secure Erase '
'during the cleaning process. Currently nvme-cli ' 'during the cleaning process. Currently nvme-cli '
'format command is supported with user-data and ' 'format command is supported with user-data and '
'crypto modes, depending on device capabilities.' 'crypto modes, depending on device capabilities.')),
'Defaults to True.')),
cfg.IntOpt('erase_devices_priority', cfg.IntOpt('erase_devices_priority',
mutable=True, mutable=True,
help=_('Priority to run in-band erase devices via the Ironic ' help=_('Priority to run in-band erase devices via the Ironic '
@@ -115,7 +114,7 @@ opts = [
mutable=True, mutable=True,
help=_('During shred, overwrite all block devices N times with ' help=_('During shred, overwrite all block devices N times with '
'random data. This is only used if a device could not ' 'random data. This is only used if a device could not '
'be ATA Secure Erased. Defaults to 1.')), 'be ATA Secure Erased.')),
cfg.BoolOpt('shred_final_overwrite_with_zeros', cfg.BoolOpt('shred_final_overwrite_with_zeros',
default=True, default=True,
mutable=True, mutable=True,
@@ -124,7 +123,7 @@ opts = [
"the device even when " "the device even when "
"deploy.shred_random_overwrite_iterations is 0. This " "deploy.shred_random_overwrite_iterations is 0. This "
"option is only used if a device could not be ATA " "option is only used if a device could not be ATA "
"Secure Erased. Defaults to True.")), "Secure Erased.")),
cfg.BoolOpt('continue_if_disk_secure_erase_fails', cfg.BoolOpt('continue_if_disk_secure_erase_fails',
default=False, default=False,
mutable=True, mutable=True,
@@ -145,8 +144,7 @@ opts = [
cfg.BoolOpt('power_off_after_deploy_failure', cfg.BoolOpt('power_off_after_deploy_failure',
default=True, default=True,
mutable=True, mutable=True,
help=_('Whether to power off a node after deploy failure. ' help=_('Whether to power off a node after deploy failure.')),
'Defaults to True.')),
cfg.StrOpt('default_boot_mode', cfg.StrOpt('default_boot_mode',
choices=[(boot_modes.UEFI, _('UEFI boot mode')), choices=[(boot_modes.UEFI, _('UEFI boot mode')),
(boot_modes.LEGACY_BIOS, _('Legacy BIOS boot mode'))], (boot_modes.LEGACY_BIOS, _('Legacy BIOS boot mode'))],

View File

@@ -40,17 +40,16 @@ opts = [
cfg.IntOpt('swift_temp_url_duration', cfg.IntOpt('swift_temp_url_duration',
default=1200, default=1200,
help=_('The length of time in seconds that the temporary URL ' help=_('The length of time in seconds that the temporary URL '
'will be valid for. Defaults to 20 minutes. If some ' 'will be valid for. If some deploys get a 401 response '
'deploys get a 401 response code when trying to ' 'code when trying to download from the temporary URL, '
'download from the temporary URL, try raising this ' 'try raising this duration. This value must be greater '
'duration. This value must be greater than or equal to ' 'than or equal to the value for '
'the value for '
'swift_temp_url_expected_download_start_delay')), 'swift_temp_url_expected_download_start_delay')),
cfg.BoolOpt('swift_temp_url_cache_enabled', cfg.BoolOpt('swift_temp_url_cache_enabled',
default=False, default=False,
help=_('Whether to cache generated Swift temporary URLs. ' help=_('Whether to cache generated Swift temporary URLs. '
'Setting it to true is only useful when an image ' 'Setting it to true is only useful when an image '
'caching proxy is used. Defaults to False.')), 'caching proxy is used.')),
cfg.IntOpt('swift_temp_url_expected_download_start_delay', cfg.IntOpt('swift_temp_url_expected_download_start_delay',
default=0, min=0, default=0, min=0,
help=_('This is the delay (in seconds) from the time of the ' help=_('This is the delay (in seconds) from the time of the '
@@ -62,8 +61,7 @@ opts = [
'temporary URL caching is enabled this will determine ' 'temporary URL caching is enabled this will determine '
'if a cached entry will still be valid when the ' 'if a cached entry will still be valid when the '
'download starts. swift_temp_url_duration value must be ' 'download starts. swift_temp_url_duration value must be '
'greater than or equal to this option\'s value. ' 'greater than or equal to this option\'s value.')),
'Defaults to 0.')),
cfg.URIOpt( cfg.URIOpt(
'swift_endpoint_url', 'swift_endpoint_url',
schemes=['http', 'https'], schemes=['http', 'https'],
@@ -79,7 +77,7 @@ opts = [
'swift_api_version', 'swift_api_version',
default='v1', default='v1',
help=_('The Swift API version to create a temporary URL for. ' help=_('The Swift API version to create a temporary URL for. '
'Defaults to "v1". Swift temporary URL format: ' 'Swift temporary URL format: '
'"endpoint_url/api_version/account/container/object_id"')), '"endpoint_url/api_version/account/container/object_id"')),
cfg.StrOpt( cfg.StrOpt(
'swift_account', 'swift_account',

View File

@@ -90,7 +90,7 @@ opts = [
'if False the driver will ignore verifying the SSL ' 'if False the driver will ignore verifying the SSL '
'certificate. If it\'s a path the driver will use the ' 'certificate. If it\'s a path the driver will use the '
'specified certificate or one of the certificates in ' 'specified certificate or one of the certificates in '
'the directory. Defaults to True.')), 'the directory.')),
cfg.StrOpt('default_boot_mode', cfg.StrOpt('default_boot_mode',
default='auto', default='auto',
choices=[('auto', _('based on boot mode settings on the ' choices=[('auto', _('based on boot mode settings on the '

View File

@@ -78,8 +78,9 @@ opts = [
cfg.BoolOpt('store_cred_in_env', cfg.BoolOpt('store_cred_in_env',
default=False, default=False,
help=_('Boolean flag to determine IPMI password persistence ' help=_('Boolean flag to determine IPMI password persistence '
'method. Defaults to False (file-based persistence). ' 'method. When True, credentials are stored in '
)), 'environemnt variables, Otherwise, credentials are '
'stored in a file')),
cfg.ListOpt('cipher_suite_versions', cfg.ListOpt('cipher_suite_versions',
default=[], default=[],
help=_('List of possible cipher suites versions that can ' help=_('List of possible cipher suites versions that can '

View File

@@ -152,7 +152,7 @@ opts = [
cfg.IntOpt('ipxe_timeout', cfg.IntOpt('ipxe_timeout',
default=0, default=0,
help=_('Timeout value (in seconds) for downloading an image ' help=_('Timeout value (in seconds) for downloading an image '
'via iPXE. Defaults to 0 (no timeout)')), 'via iPXE. Timeout is disabled when this value is 0')),
cfg.IntOpt('boot_retry_timeout', cfg.IntOpt('boot_retry_timeout',
min=60, min=60,
help=_('Timeout (in seconds) after which PXE boot should be ' help=_('Timeout (in seconds) after which PXE boot should be '

View File

@@ -42,8 +42,7 @@ opts = [
'browser page ' 'browser page '
'(for example, "http://127.0.0.1:6090/vnc_auto.html"). ' '(for example, "http://127.0.0.1:6090/vnc_auto.html"). '
'If the API is operating behind a proxy, you ' 'If the API is operating behind a proxy, you '
'will want to change this to represent the proxy\'s URL. ' 'will want to change this to represent the proxy\'s URL.'),
'Defaults to None. '),
cfg.BoolOpt( cfg.BoolOpt(
'enable_ssl', 'enable_ssl',
default=False, default=False,