summaryrefslogtreecommitdiff
path: root/kolla
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-02-21 09:12:29 +0000
committerGerrit Code Review <review@openstack.org>2020-02-21 09:12:29 +0000
commitea8f03da6efe48665d56fdefd8aac37f9dee145d (patch)
tree9249a9861890b83226e17f3165f975c641a575bf /kolla
parent0b3a67eb4b97517497b4ae258cd541e69c510f02 (diff)
parentf775700a768a010141fa6c82ea94b2bb10a9fe7d (diff)
downloadkolla-ea8f03da6efe48665d56fdefd8aac37f9dee145d.tar.gz
kolla-ea8f03da6efe48665d56fdefd8aac37f9dee145d.zip
Merge "CentOS 8: Add zuul build and publish jobs" into stable/train
Diffstat (limited to 'kolla')
-rwxr-xr-xkolla/image/build.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 6d7824538..0bdcfb5e3 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -143,6 +143,12 @@ UNBUILDABLE_IMAGES = {
'centos': {
"ovsdpdk",
},
+
+ # NOTE(mgoddard): Mark all images unbuildable for CentOS 8.
+ 'centos8': {
+ "base",
+ },
+
'debian': {
"bifrost-base", # tries to install 'mysql-server' which is not in
# Debian 'buster'
@@ -1043,7 +1049,15 @@ class KollaWorker(object):
filter_ += self.conf.profiles[profile]
# mark unbuildable images and their children
- tag_element = r'(%s|%s|%s)' % (self.base,
+
+ # NOTE(mgoddard): Use a base of centos8 to allow a different set of
+ # unbuildable images for CentOS 8.
+ # TODO(mgoddard): Remove this after CentOS 8 transition.
+ base = self.base
+ if base == 'centos' and self.distro_package_manager == 'dnf':
+ base = 'centos8'
+
+ tag_element = r'(%s|%s|%s)' % (base,
self.install_type,
self.base_arch)
tag_re = re.compile(r'^%s(\+%s)*$' % (tag_element, tag_element))