Merge "debian: Use {{ openstack_release_codename }} for extrepo"

This commit is contained in:
Zuul
2025-10-06 14:17:59 +00:00
committed by Gerrit Code Review
3 changed files with 11 additions and 1 deletions

View File

@@ -209,7 +209,7 @@ COPY sources.list /etc/apt/sources.list.d/kolla-custom.list
RUN apt update \
&& apt install -y --no-install-recommends extrepo \
&& extrepo enable openstack_epoxy \
&& extrepo enable openstack_{{ openstack_release_codename | lower }} \
&& apt purge -y extrepo \
&& apt --purge autoremove -y \
&& apt clean

View File

@@ -37,7 +37,11 @@ DISTRO_PRETTY_NAME = {
'rocky': 'Rocky Linux 10.* (Red Quartz)',
'ubuntu': 'Ubuntu 24.04.* LTS',
}
OPENSTACK_RELEASE = '2025.2'
# NOTE(mnasiadka): Using Epoxy here, since Debian OpenStack builds Flamingo
# only for Trixie
OPENSTACK_RELEASE_CODENAME = 'Epoxy'
# TODO(mandre) check for file integrity instead of downloading from an HTTPS
# source
@@ -242,6 +246,9 @@ _CLI_OPTS = [
cfg.StrOpt('openstack-release', default=OPENSTACK_RELEASE,
help='OpenStack release for building kolla source images and '
'kolla-toolbox image'),
cfg.StrOpt('openstack-release-codename',
default=OPENSTACK_RELEASE_CODENAME,
help='OpenStack release codename for Debian OpenStack extrepo'),
cfg.StrOpt('openstack-branch',
help='Branch for source images (internal; with a dash; '
'please set openstack-release instead)'),

View File

@@ -106,6 +106,7 @@ class KollaWorker(object):
self.debian_arch = 'amd64'
self.images = list()
self.openstack_release = conf.openstack_release
self.openstack_release_codename = conf.openstack_release_codename
self.openstack_branch = conf.openstack_branch
self.openstack_branch_slashed = conf.openstack_branch_slashed
self.docker_healthchecks = conf.docker_healthchecks
@@ -323,6 +324,8 @@ class KollaWorker(object):
'image_prefix': self.image_prefix,
'namespace': self.namespace,
'openstack_release': self.openstack_release,
'openstack_release_codename':
self.openstack_release_codename,
'openstack_branch': self.openstack_branch,
'openstack_branch_slashed':
self.openstack_branch_slashed,