undercloud: wire ContainerHealthcheckDisabled

Add a new parameter to undercloud.conf to disable the container
healthchecks.

The parameter is: container_healthcheck_disabled and it's False by
default, so the healthchecks are enabled by default.

Depends-On: Id8d7e21d58cf5ab155404db597d96665b94d7c2a
Change-Id: Icebfad41cc286a2e209511c147d74f1a933c66a2
This commit is contained in:
Emilien Macchi 2019-04-12 15:50:31 -04:00
parent 9f3f6c8028
commit cefb2df8c3
4 changed files with 13 additions and 0 deletions

View File

@ -319,6 +319,11 @@ class UndercloudConfig(StandaloneConfig):
'(Experimental) Whether to clean undercloud rpms '
'after an upgrade to a containerized '
'undercloud.')),
cfg.BoolOpt('container_healthcheck_disabled',
default=False,
help=_(
'Whether or not we disable the container '
'healthchecks.')),
cfg.ListOpt('enabled_hardware_types',
default=['ipmi', 'redfish', 'ilo', 'idrac'],
help=_('List of enabled bare metal hardware types '

View File

@ -0,0 +1,5 @@
---
features:
- |
Disable the container healthchecks on the Undercloud in the undercloud.conf
with the new option container_healthcheck_disabled, false by default.

View File

@ -30,6 +30,7 @@ class TestUndercloudConfig(base.TestCase):
'clean_nodes',
'cleanup',
'container_cli',
'container_healthcheck_disabled',
'container_images_file',
'container_insecure_registries',
'container_registry_mirror',
@ -84,6 +85,7 @@ class TestUndercloudConfig(base.TestCase):
'clean_nodes',
'cleanup',
'container_cli',
'container_healthcheck_disabled',
'container_images_file',
'container_insecure_registries',
'container_registry_mirror',

View File

@ -69,6 +69,7 @@ PARAMETER_MAPPING = {
'local_mtu': 'UndercloudLocalMtu',
'clean_nodes': 'IronicAutomatedClean',
'upgrade_cleanup': 'UpgradeRemoveUnusedPackages',
'container_healthcheck_disabled': 'ContainerHealthcheckDisabled',
'local_subnet': 'UndercloudCtlplaneLocalSubnet',
'enable_routed_networks': 'UndercloudEnableRoutedNetworks',
'local_interface': 'NeutronPublicInterface',