Use the new image naming scheme by default

Adds a relevant reno to inform users about the change and the
possibility to customise the prefix.

Additionally, this patch includes the fix to Ubuntu image builds
regarding rabbitmq and erlang.

Both the changes are required to fix master CI.

Change-Id: I6bc8b489a810849744c8bead6b9e350c5d3e36b7
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/843752
This commit is contained in:
Radosław Piliszek 2022-05-26 10:27:53 +02:00
parent a51ebc9e7f
commit 9d5bdbf36d
7 changed files with 31 additions and 22 deletions

View File

@ -313,8 +313,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
] %}
{% set base_apt_keys = [
{'name': 'erlang', 'keyid': 'F77F1EDA57EBB1CC'},
{'name': 'rabbitmq', 'keyid': 'F6609E60DC62814E'},
{'name': 'erlang', 'keyid': 'E495BB49CC4BBE5B'},
{'name': 'rabbitmq', 'keyid': '9F4587F226208342'},
{'name': 'haproxy', 'keyid': 'CFFB779AADC995E4F350A060505D97A41C61B9CD'},
] %}

View File

@ -249,9 +249,8 @@ _CLI_OPTS = [
help='Enable images marked as unbuildable'),
cfg.BoolOpt('summary', default=True,
help='Show summary at the end of build'),
cfg.BoolOpt('use-new-naming-scheme', default=False,
help='Use the new naming scheme (transitional option, '
'not to be set by end users)'),
cfg.StrOpt('image-name-prefix', default='',
help='Prefix prepended to image names'),
]
_BASE_OPTS = [

View File

@ -650,10 +650,7 @@ class KollaWorker(object):
self.clean_package_cache = self.conf.clean_package_cache
if self.conf.use_new_naming_scheme:
self.image_prefix = ''
else:
self.image_prefix = self.base + '-'
self.image_prefix = self.conf.image_name_prefix
self.regex = conf.regex
self.image_statuses_bad = dict()

View File

@ -47,9 +47,8 @@ debian:
component: "main"
gpg_key: "elasticsearch.asc"
erlang:
# NOTE(mnasiadka): Erlang repo - Debian Buster/Bullseye needs to use bionic as per RabbitMQ docs
url: "http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu"
suite: "bionic"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian"
suite: "bullseye"
component: "main"
gpg_key: "erlang.gpg"
grafana:
@ -78,7 +77,7 @@ debian:
component: "main"
gpg_key: "mariadb.gpg"
rabbitmq:
url: "https://packagecloud.io/rabbitmq/rabbitmq-server/debian/"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian"
suite: "bullseye"
component: "main"
gpg_key: "rabbitmq.gpg"
@ -100,9 +99,8 @@ debian-aarch64:
component: "main"
gpg_key: "elasticsearch.asc"
erlang:
# NOTE(mnasiadka): Erlang repo - Debian Buster/Bullseye needs to use bionic as per RabbitMQ docs
url: "http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu"
suite: "bionic"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian"
suite: "bullseye"
component: "main"
gpg_key: "erlang.gpg"
grafana:
@ -131,7 +129,7 @@ debian-aarch64:
component: "main"
gpg_key: "mariadb.gpg"
rabbitmq:
url: "https://packagecloud.io/rabbitmq/rabbitmq-server/debian/"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian"
suite: "bullseye"
component: "main"
gpg_key: "rabbitmq.gpg"
@ -153,7 +151,7 @@ ubuntu:
component: "main"
gpg_key: "elasticsearch.asc"
erlang:
url: "http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu"
suite: "focal"
component: "main"
gpg_key: "erlang.gpg"
@ -188,7 +186,7 @@ ubuntu:
component: "main"
gpg_key: "mariadb.gpg"
rabbitmq:
url: "https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu"
suite: "focal"
component: "main"
gpg_key: "rabbitmq.gpg"
@ -210,7 +208,7 @@ ubuntu-aarch64:
component: "main"
gpg_key: "elasticsearch.asc"
erlang:
url: "http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu"
suite: "focal"
component: "main"
gpg_key: "erlang.gpg"
@ -240,7 +238,7 @@ ubuntu-aarch64:
component: "main"
gpg_key: "mariadb.gpg"
rabbitmq:
url: "https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu"
suite: "focal"
component: "main"
gpg_key: "rabbitmq.gpg"

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
Kolla Build no longer prepends the base (distro) name to image names.
Instead, the user is able to choose any prefix they wish via the
``image_name_prefix`` setting.

View File

@ -0,0 +1,10 @@
---
fixes:
- |
Fixes the Debian and Ubuntu images to use rabbitmq and erlang from
cloudsmith so that the images are still buildable and use proper versions.
upgrade:
- |
The Debian and Ubuntu images use rabbitmq and erlang from cloudsmith now.
Operators might want to mirror/proxy this new source as it provides the
correct set of packages unlike the previous combination.

View File

@ -28,7 +28,6 @@
DEFAULT:
namespace: "{{ kolla_namespace }}"
tag: "{{ zuul.branch | basename }}-{{ base_distro }}-{{ base_distro_version }}{{ tag_suffix }}"
use_new_naming_scheme: true
set_fact:
kolla_build_config: "{{ kolla_build_config | combine(kolla_publisher_config, recursive=True) }}"
when: