Switch default images to py3

We should be building the centos8/python3 images by default now. This
change updates the default yaml when --config-file is not specified to
`openstack overcloud image build`.  You can still build the centos7
images for older versions by specifying a centos7 based yaml set.

Change-Id: If9b1699a307d1d10eae113708a32b5841ee3e17f
This commit is contained in:
Alex Schultz 2020-03-24 17:06:47 -06:00
parent becee11a5a
commit 74a6c6eb68
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
features:
- |
Starting with "Ussuri", the default images that are built when running
the `openstack overcloud image build` action are python3 and centos8 based.

View File

@ -45,9 +45,9 @@ class TestOvercloudImageBuild(TestPluginV1):
mock_manager.assert_called_once_with(
['/usr/share/openstack-tripleo-common/image-yaml/'
'overcloud-images.yaml',
'overcloud-images-python3.yaml',
'/usr/share/openstack-tripleo-common/image-yaml/'
'overcloud-images-centos7.yaml'],
'overcloud-images-centos8.yaml'],
output_directory='.',
skip=True,
images=None)

View File

@ -44,7 +44,8 @@ class BuildOvercloudImage(command.Command):
log = logging.getLogger(__name__ + ".BuildOvercloudImage")
IMAGE_YAML_PATH = "/usr/share/openstack-tripleo-common/image-yaml"
DEFAULT_YAML = ['overcloud-images.yaml', 'overcloud-images-centos7.yaml']
DEFAULT_YAML = ['overcloud-images-python3.yaml',
'overcloud-images-centos8.yaml']
def get_parser(self, prog_name):
parser = super(BuildOvercloudImage, self).get_parser(prog_name)