Merge "undercloud: configure ContainerImagePrepareDebug based on undercloud_debug"

This commit is contained in:
Zuul 2019-02-20 15:43:30 +00:00 committed by Gerrit Code Review
commit 1e6c2f0803
2 changed files with 4 additions and 1 deletions

View File

@ -264,7 +264,8 @@ class UndercloudConfig(StandaloneConfig):
default=True,
help=_(
'Whether to enable the debug log level for '
'Undercloud OpenStack services.')
'Undercloud OpenStack services and Container '
'Image Prepare step.')
),
cfg.BoolOpt('undercloud_enable_selinux',
default=True,

View File

@ -371,6 +371,8 @@ def prepare_undercloud_deploy(upgrade=False, no_validations=False,
env_data['PythonInterpreter'] = sys.executable
env_data['ContainerImagePrepareDebug'] = CONF['undercloud_debug']
for param_key, param_value in PARAMETER_MAPPING.items():
if param_key in CONF.keys():
env_data[param_value] = CONF[param_key]