diff --git a/tripleoclient/tests/v2/container_image/test_tripleo_container_image.py b/tripleoclient/tests/v2/container_image/test_tripleo_container_image.py index 707cdfd64..0bfccd071 100644 --- a/tripleoclient/tests/v2/container_image/test_tripleo_container_image.py +++ b/tripleoclient/tests/v2/container_image/test_tripleo_container_image.py @@ -269,8 +269,8 @@ class TestContainerImages(deploy_fakes.TestDeployOvercloud): mock_find_image.return_value = rtn_value cfgs = self.cmd.process_images(expected_images, parsed_args, image_configs) - mock_find_image.assert_called_once_with(self.cmd, 'foo', - '/foo/tcib', 'ubi8') + mock_find_image.assert_called_once_with( + self.cmd, 'foo', '/foo/tcib', 'centos:stream9') self.assertEqual(cfgs, {'foo': rtn_value}) diff --git a/tripleoclient/v2/tripleo_container_image.py b/tripleoclient/v2/tripleo_container_image.py index 4069ca2a0..a6ee06e21 100644 --- a/tripleoclient/v2/tripleo_container_image.py +++ b/tripleoclient/v2/tripleo_container_image.py @@ -69,7 +69,7 @@ class Build(command.Command): "--base", dest="base", metavar="", - default="ubi8", + default="centos:stream9", help=_( "Base image name, with optional version. Can be 'centos:8', " "base name image will be 'centos' but 'centos:8' will be " @@ -105,8 +105,19 @@ class Build(command.Command): default="centos", metavar="", help=_( - "Distro name, if undefined the system will build using the " - "host distro. (default: %(default)s)" + "Distro name which sets tcib_distro, if undefined the " + "system will build using the host distro. " + "(default: %(default)s)" + ), + ) + parser.add_argument( + "--release", + dest="release", + default="9", + metavar="", + help=_( + "Distro major release version which sets tcib_release. " + "(default: %(default)s)" ), ) parser.add_argument( @@ -577,6 +588,7 @@ class Build(command.Command): { "workdir": self.image_paths.get(image, work_dir), "tcib_distro": parsed_args.distro, + "tcib_release": parsed_args.release, "tcib_path": self.image_paths.get(image, work_dir), "tcib_meta": {"name": image_parsed_name}, "ansible_connection": "local",