Merge "Don't install weak dependencies in overcloud image build" into stable/wallaby

This commit is contained in:
Zuul 2023-02-28 05:53:08 +00:00 committed by Gerrit Code Review
commit 8f01143da4
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,8 @@ class TestOvercloudImageBuild(TestPluginV1):
output_directory='.',
skip=True,
images=None)
cmd = ['sudo', 'dnf', 'install', '-y'] + self.cmd.REQUIRED_PACKAGES
cmd = ['sudo', 'dnf', 'install', '-y',
'--setopt=install_weak_deps=False'] + self.cmd.REQUIRED_PACKAGES
self.mock_run_command.assert_called_once_with(
cmd, name="Install required packages")

View File

@ -98,7 +98,8 @@ class BuildOvercloudImage(command.Command):
return parser
def _ensure_packages_installed(self):
cmd = ['sudo', 'dnf', 'install', '-y'] + self.REQUIRED_PACKAGES
cmd = ['sudo', 'dnf', 'install', '-y',
'--setopt=install_weak_deps=False'] + self.REQUIRED_PACKAGES
output = plugin_utils.run_command(cmd,
name="Install required packages")
self.log.info(output)