Build and deploy source type images by default

Source images get the most test coverage, so it makes sense to build and
deploy these by default.

Change-Id: I297b83985b09e888c5ee64c1a39f8a1dfcacc5c1
This commit is contained in:
Mark Goddard 2021-09-30 09:09:01 +01:00 committed by Pierre Riteau
parent 00f422c785
commit b8abf706d4
6 changed files with 18 additions and 5 deletions

View File

@ -57,7 +57,7 @@ kolla_node_custom_config_path: "{{ kolla_config_path }}/config"
kolla_base_distro: "{{ os_distribution }}"
# Kolla container image type: binary or source.
kolla_install_type: "binary"
kolla_install_type: "source"
# Docker namespace to use for Kolla images.
kolla_docker_namespace: "kolla"

View File

@ -116,7 +116,7 @@ accessed.
Kolla base container image distribution. Default is ``centos``.
``kolla_install_type``
Kolla container image type: ``binary`` or ``source``. Default is
``binary``.
``source``.
``kolla_docker_registry``
URL of docker registry to use for Kolla images. Default is not set, in
which case Dockerhub will be used.

View File

@ -77,7 +77,7 @@ affect :ref:`Kolla Ansible configuration <configuration-kolla-ansible-global>`.
``debian``, or ``ubuntu``. Default is ``{{ os_distribution }}``.
``kolla_install_type``
Kolla container image type: ``binary`` or ``source``. Default is
``binary``.
``source``.
``kolla_docker_namespace``
Docker namespace to use for Kolla images. Default is ``kolla``.
``kolla_docker_registry``

View File

@ -65,7 +65,7 @@
# "ubuntu". Default is {{ os_distribution }}.
#kolla_base_distro:
# Kolla container image type: binary or source. Default is 'binary'.
# Kolla container image type: binary or source. Default is 'source'.
#kolla_install_type:
# URL of docker registry to use for Kolla images. Default is not set, in which

View File

@ -7,7 +7,6 @@ disable_selinux_do_reboot: false
docker_registry_mirrors:
- "http://{{ zuul_site_mirror_fqdn }}:8082/"
kolla_install_type: "{{ 'source' if ansible_distribution == 'Ubuntu' else 'binary' }}"
kolla_docker_namespace: "openstack.kolla"
# use the published images from a site mirror of quay.io
kolla_docker_registry: "{{ zuul_site_mirror_fqdn }}:4447"

View File

@ -0,0 +1,14 @@
---
upgrade:
- |
Updates the default image type to ``source``. Users wishing to build and
deploy ``binary`` type images should set ``kolla_install_type`` to
``binary`` in ``kolla.yml``. This change is to reflect the reality that
source images are tested more thoroughly and we (as OpenStack community)
have better control over them.
issues:
- |
Switching an existing deployment from ``binary`` to ``source`` images can
break Horizon, which can be resolved by flushing contents of ``memcached``
with ``docker restart memcached``. See `Kolla Ansible bug 1886549
<https://bugs.launchpad.net/kolla-ansible/+bug/1886549>`__ for details.