aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-08-21 15:11:35 +0000
committerGerrit Code Review <review@openstack.org>2023-08-21 15:11:35 +0000
commit999cabd6e01eea7ac09ce16f6b44ecd1b5150fa2 (patch)
treef6a8c59a06feb1634039545b78d131e935827673
parentf000360c2d699e5b2bd9bee00e78055deb1540b4 (diff)
parent7fa2ac132cce94aae8cd3d196abba342394f6c70 (diff)
downloadkolla-999cabd6e01eea7ac09ce16f6b44ecd1b5150fa2.tar.gz
kolla-999cabd6e01eea7ac09ce16f6b44ecd1b5150fa2.zip
Merge "Move to Debian 12 'bookworm'"
-rw-r--r--.zuul.d/debian.yaml18
-rw-r--r--docker/base/Dockerfile.j22
-rw-r--r--docker/base/apt_preferences.debian17
-rw-r--r--docker/base/sources.list.debian8
-rw-r--r--kolla/common/config.py4
-rw-r--r--kolla/image/kolla_worker.py2
-rw-r--r--kolla/image/unbuildable.py2
-rw-r--r--kolla/template/repos.yaml68
-rw-r--r--kolla/tests/test_build.py2
-rw-r--r--kolla/tests/test_methods.py2
10 files changed, 63 insertions, 62 deletions
diff --git a/.zuul.d/debian.yaml b/.zuul.d/debian.yaml
index bc68a0c51..0bdb7f858 100644
--- a/.zuul.d/debian.yaml
+++ b/.zuul.d/debian.yaml
@@ -3,18 +3,28 @@
check:
jobs:
- kolla-build-debian
- - kolla-ansible-debian
- - kolla-ansible-debian-upgrade
+ - kolla-ansible-debian:
+ vars:
+ kolla_python_version: "3.11"
+ - kolla-ansible-debian-upgrade:
+ vars:
+ kolla_python_version: "3.11"
check-arm64:
jobs:
- kolla-build-debian-aarch64
- kolla-ansible-debian-aarch64:
+ vars:
+ kolla_python_version: "3.11"
voting: false
gate:
jobs:
- kolla-build-debian
- - kolla-ansible-debian
- - kolla-ansible-debian-upgrade
+ - kolla-ansible-debian:
+ vars:
+ kolla_python_version: "3.11"
+ - kolla-ansible-debian-upgrade:
+ vars:
+ kolla_python_version: "3.11"
periodic:
jobs:
- kolla-publish-debian-quay
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
index 9fc935a79..4e9fc3f28 100644
--- a/docker/base/Dockerfile.j2
+++ b/docker/base/Dockerfile.j2
@@ -254,7 +254,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_zed \
+ && extrepo enable openstack_antelope \
&& apt purge -y extrepo \
&& apt --purge autoremove -y \
&& apt clean
diff --git a/docker/base/apt_preferences.debian b/docker/base/apt_preferences.debian
index 21e99839e..394fff1fe 100644
--- a/docker/base/apt_preferences.debian
+++ b/docker/base/apt_preferences.debian
@@ -4,20 +4,5 @@ Pin-Priority: 1000
# NOTE(hrw): we do not want backports unless requested
Package: *
-Pin: release n=bullseye-backports
+Pin: release n=bookworm-backports
Pin-Priority: -1000
-
-# NOTE(hrw): let us list some backports
-# - openvswitch 2.15
-# - ovn 21.06
-# - libvirt 8
-# - qemu 7.*
-# - swtpm
-Package: openvswitch* python3-openvswitch ovn-* libvirt* qemu-* swtpm* libtpms0
-Pin: release n=bullseye-backports
-Pin-Priority: 1024
-
-# NOTE(hrw): Debian OpenStack Team repo has some backports we do not want
-Package: git*
-Pin: release n=bullseye
-Pin-Priority: 1024
diff --git a/docker/base/sources.list.debian b/docker/base/sources.list.debian
index 4c191417a..89f7a1160 100644
--- a/docker/base/sources.list.debian
+++ b/docker/base/sources.list.debian
@@ -1,11 +1,11 @@
# Default repos
-deb http://deb.debian.org/debian bullseye main
+deb http://deb.debian.org/debian bookworm main
# debian security updates
-deb http://deb.debian.org/debian-security bullseye-security main
+deb http://deb.debian.org/debian-security bookworm-security main
# debian updates
-deb http://deb.debian.org/debian bullseye-updates main
+deb http://deb.debian.org/debian bookworm-updates main
# debian backports
-deb http://deb.debian.org/debian bullseye-backports main
+deb http://deb.debian.org/debian bookworm-backports main
diff --git a/kolla/common/config.py b/kolla/common/config.py
index d8eb6846e..4f3b9da75 100644
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -25,14 +25,14 @@ BASE_OS_DISTRO = ['centos', 'debian', 'rocky', 'ubuntu']
BASE_ARCH = ['x86_64', 'aarch64']
DEFAULT_BASE_TAGS = {
'centos': {'name': 'quay.io/centos/centos', 'tag': 'stream9'},
- 'debian': {'name': 'debian', 'tag': 'bullseye'},
+ 'debian': {'name': 'debian', 'tag': 'bookworm'},
'rocky': {'name': 'quay.io/rockylinux/rockylinux', 'tag': '9'},
'ubuntu': {'name': 'ubuntu', 'tag': '22.04'},
}
# NOTE(hrw): has to match PRETTY_NAME in /etc/os-release
DISTRO_PRETTY_NAME = {
'centos': 'CentOS Stream 9',
- 'debian': 'Debian GNU/Linux 11 (bullseye)',
+ 'debian': 'Debian GNU/Linux 12 (bookworm)',
'rocky': 'Rocky Linux 9.* (Blue Onyx)',
'ubuntu': 'Ubuntu 22.04',
}
diff --git a/kolla/image/kolla_worker.py b/kolla/image/kolla_worker.py
index 1a665ddd4..b5b7dbd9b 100644
--- a/kolla/image/kolla_worker.py
+++ b/kolla/image/kolla_worker.py
@@ -118,7 +118,7 @@ class KollaWorker(object):
self.distro_package_manager = 'dnf'
self.base_package_type = 'rpm'
elif self.base in ['debian']:
- self.conf.distro_python_version = "3.9"
+ self.conf.distro_python_version = "3.11"
self.distro_package_manager = 'apt'
self.base_package_type = 'deb'
elif self.base in ['ubuntu']:
diff --git a/kolla/image/unbuildable.py b/kolla/image/unbuildable.py
index bf14583e9..1b44a6f86 100644
--- a/kolla/image/unbuildable.py
+++ b/kolla/image/unbuildable.py
@@ -32,6 +32,8 @@ UNBUILDABLE_IMAGES = {
},
'debian': {
+ "openvswitch-netcontrold",
+ # https://bugs.launchpad.net/kolla/+bug/2027668
},
'rocky': {
diff --git a/kolla/template/repos.yaml b/kolla/template/repos.yaml
index ecc52121a..d7619dbe2 100644
--- a/kolla/template/repos.yaml
+++ b/kolla/template/repos.yaml
@@ -36,26 +36,28 @@ centos-aarch64:
td-agent: "treasuredata"
debian:
- erlang:
- url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang/ubuntu"
- suite: "focal"
- component: "main"
- gpg_key: "erlang-ppa.gpg"
+ # NOTE(hrw): Debian/bookworm has Erlang 25 in repo
+ # erlang:
+ # url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang-25/ubuntu"
+ # suite: "jammy"
+ # component: "main"
+ # gpg_key: "erlang-ppa.gpg"
grafana:
url: "https://apt.grafana.com"
suite: "stable"
component: "main"
gpg_key: "grafana.asc"
influxdb:
- url: "https://repos.influxdata.com/debian"
- suite: "bullseye"
+ url: "https://repos.influxdata.com/ubuntu"
+ suite: "jammy"
component: "stable"
gpg_key: "influxdb.asc"
- mariadb:
- url: "https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian"
- suite: "bullseye"
- component: "main"
- gpg_key: "mariadb.gpg"
+ # NOTE(hrw): Debian/bookworm has MariaDB 10.11
+ # mariadb:
+ # url: "https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian"
+ # suite: "bookworm"
+ # component: "main"
+ # gpg_key: "mariadb.gpg"
opensearch:
url: "https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt/"
suite: "stable"
@@ -67,42 +69,44 @@ debian:
component: "main"
gpg_key: "opensearch.asc"
proxysql:
- url: "https://repo.proxysql.com/ProxySQL/proxysql-2.5.x/bullseye/"
+ url: "https://repo.proxysql.com/ProxySQL/proxysql-2.5.x/bookworm/"
suite: "./"
component: ""
gpg_key: "proxysql.asc"
rabbitmq:
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian"
- suite: "bullseye"
+ suite: "bookworm"
component: "main"
gpg_key: "rabbitmq.gpg"
td-agent:
- url: "http://packages.treasuredata.com/4/debian/bullseye"
- suite: "bullseye"
+ url: "http://packages.treasuredata.com/4/ubuntu/jammy"
+ suite: "jammy"
component: "contrib"
gpg_key: "treasuredata.asc"
debian-aarch64:
- erlang:
- url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang/ubuntu"
- suite: "focal"
- component: "main"
- gpg_key: "erlang-ppa.gpg"
+ # NOTE(hrw): Debian/bookworm has Erlang 25 in repo
+ # erlang:
+ # url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang-25/ubuntu"
+ # suite: "jammy"
+ # component: "main"
+ # gpg_key: "erlang-ppa.gpg"
grafana:
url: "https://apt.grafana.com"
suite: "stable"
component: "main"
gpg_key: "grafana.asc"
influxdb:
- url: "https://repos.influxdata.com/debian"
- suite: "bullseye"
+ url: "https://repos.influxdata.com/ubuntu"
+ suite: "jammy"
component: "stable"
gpg_key: "influxdb.asc"
- mariadb:
- url: "https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian"
- suite: "bullseye"
- component: "main"
- gpg_key: "mariadb.gpg"
+ # NOTE(hrw): Debian/bookworm has MariaDB 10.11
+ # mariadb:
+ # url: "https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian"
+ # suite: "bookworm"
+ # component: "main"
+ # gpg_key: "mariadb.gpg"
opensearch:
url: "https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt/"
suite: "stable"
@@ -114,18 +118,18 @@ debian-aarch64:
component: "main"
gpg_key: "opensearch.asc"
proxysql:
- url: "https://repo.proxysql.com/ProxySQL/proxysql-2.5.x/bullseye/"
+ url: "https://repo.proxysql.com/ProxySQL/proxysql-2.5.x/bookworm/"
suite: "./"
component: ""
gpg_key: "proxysql.asc"
rabbitmq:
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian"
- suite: "bullseye"
+ suite: "bookworm"
component: "main"
gpg_key: "rabbitmq.gpg"
td-agent:
- url: "http://packages.treasuredata.com/4/debian/bullseye"
- suite: "bullseye"
+ url: "http://packages.treasuredata.com/4/ubuntu/jammy"
+ suite: "jammy"
component: "contrib"
gpg_key: "treasuredata.asc"
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py
index eb42595b8..be9b7a1b5 100644
--- a/kolla/tests/test_build.py
+++ b/kolla/tests/test_build.py
@@ -637,7 +637,7 @@ class KollaWorkerTest(base.TestCase):
"""check distro_python_version for Debian"""
self.conf.set_override('base', 'debian')
kolla = build.KollaWorker(self.conf)
- self.assertEqual('3.9', kolla.distro_python_version)
+ self.assertEqual('3.11', kolla.distro_python_version)
def test_build_distro_python_version_ubuntu(self):
"""check distro_python_version for Ubuntu"""
diff --git a/kolla/tests/test_methods.py b/kolla/tests/test_methods.py
index 9574bb382..e651bb337 100644
--- a/kolla/tests/test_methods.py
+++ b/kolla/tests/test_methods.py
@@ -117,7 +117,7 @@ class MethodsTest(base.TestCase):
expectCmd += ">>/etc/apt/sources.list.d/rabbitmq.sources && "
expectCmd += "echo 'Types: deb' "
expectCmd += ">>/etc/apt/sources.list.d/rabbitmq.sources && "
- expectCmd += "echo 'Suites: bullseye' "
+ expectCmd += "echo 'Suites: bookworm' "
expectCmd += ">>/etc/apt/sources.list.d/rabbitmq.sources && "
expectCmd += "echo 'Signed-By: /etc/kolla/apt-keys/rabbitmq.gpg' "
expectCmd += ">>/etc/apt/sources.list.d/rabbitmq.sources"