CentOS 8: separate kolla build tag from deploy tag

Prevously the container image tag applied to built images was configured
via 'kolla_openstack_release'. This variable also controlled the tag
used for deployed images. This could cause problems during the CentOS 8
transition, where we need to build two sets of images, and Kolla Ansible
may apply a '-centos8' suffix to the tag we specify on CentOS 8.

This change separates the tag applied to built images into a different
variable - 'kolla_tag'. The default is still 'kolla_openstack_release'.

Change-Id: I8e1d877ee91a07b86cb858d25b841f8bfcd50e21
Story: 2006574
Task: 39487
This commit is contained in:
Mark Goddard 2020-03-10 17:33:32 +00:00
parent e0932bd788
commit c563f45fb7
6 changed files with 20 additions and 2 deletions

View File

@ -74,6 +74,10 @@ kolla_docker_registry_password:
# Default is {{ openstack_release }}.
kolla_openstack_release: "{{ openstack_release }}"
# Docker tag applied to built container images. Default is
# {{ kolla_openstack_release }}.
kolla_tag: "{{ kolla_openstack_release }}"
# Dict mapping names of sources to their definitions for
# kolla_install_type=source. See kolla.common.config for details.
# Example:

View File

@ -15,7 +15,7 @@ kolla_install_type:
kolla_docker_namespace:
# Valid option is Docker repository tag
kolla_openstack_release:
kolla_tag:
# Dict mapping names of sources to their definitions for
# kolla_install_type=source. See kolla.common.config for details.

View File

@ -12,7 +12,7 @@ install_type={{ kolla_install_type }}
namespace={{ kolla_docker_namespace }}
# Docker image tag to apply.
tag={{ kolla_openstack_release }}
tag={{ kolla_tag }}
# Path to a file containing template overrides.
template_override={{ kolla_build_config_path }}/template-override.j2

View File

@ -92,6 +92,9 @@ affect :ref:`Kolla Ansible configuration <configuration-kolla-ansible-global>`.
Kolla OpenStack release version. This should be a Docker image tag. Default
is the OpenStack release name (e.g. ``rocky``) on stable branches and
tagged releases, or ``master`` on the Kayobe ``master`` branch.
``kolla_tag``
Kolla container image tag. This is the tag that will be applied to built
container images. Default is ``kolla_openstack_release``.
For example, to build the Kolla ``centos`` ``binary`` images with a namespace
of ``example``, and a private Docker registry at ``registry.example.com:4000``,

View File

@ -86,6 +86,10 @@
# Default is {{ openstack_release }}.
#kolla_openstack_release:
# Docker tag applied to built container images. Default is
# {{ kolla_openstack_release }}.
#kolla_tag:
# Dict mapping names of sources to their definitions for
# kolla_install_type=source. See kolla.common.config for details.
# Example:

View File

@ -0,0 +1,7 @@
---
features:
- |
Adds a variable for controlling the tag applied to built container images -
``kolla_tag``. This separates the configuration of the tag for image
building from that used for deployment (``kolla_openstack_release``). The
default for ``kolla_tag`` is ``kolla_openstack_release``.