From 878b00013b01e3d02a704ce7c9fac1629cd1a705 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Tue, 5 Apr 2022 16:53:34 +0200 Subject: Move to CentOS Stream 9 OpenStack 'zed' requires Python 3.8+ so RHEL 8 family has to go. This changeset moves to CentOS Stream 9 while move to RockyLinux 9 is planned as final solution. CI moved to CentOS Stream 9 nodes. Depends-on: https://review.opendev.org/c/openstack/kolla-ansible/+/839715 Change-Id: I113b9984294cf8663d3fc0c8840320e1d40ea731 --- kolla/tests/test_build.py | 5 ++--- kolla/tests/test_methods.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'kolla/tests') diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py index ab6e37432..bf9896465 100644 --- a/kolla/tests/test_build.py +++ b/kolla/tests/test_build.py @@ -529,11 +529,10 @@ class KollaWorkerTest(base.TestCase): self.assertEqual('3.10', kolla.distro_python_version) def test_build_distro_python_version_centos(self): - """check distro_python_version for CentOS 8.0.1905""" + """check distro_python_version for CentOS Stream 9""" self.conf.set_override('base', 'centos') - self.conf.set_override('base_tag', '8.0.1905') kolla = build.KollaWorker(self.conf) - self.assertEqual('3.6', kolla.distro_python_version) + self.assertEqual('3.9', kolla.distro_python_version) def test_build_distro_package_manager(self): """check distro_package_manager conf value is taken""" diff --git a/kolla/tests/test_methods.py b/kolla/tests/test_methods.py index 16b40c17f..d98fa8825 100644 --- a/kolla/tests/test_methods.py +++ b/kolla/tests/test_methods.py @@ -55,7 +55,7 @@ class MethodsTest(base.TestCase): result = methods.handle_repos(template_vars, ['grafana', 'ceph'], 'enable') expectCmd = 'RUN dnf config-manager --enable grafana ' - expectCmd += '--enable centos-ceph-pacific || true' + expectCmd += '--enable centos-ceph-quincy || true' self.assertEqual(expectCmd, result) def test_enable_repos_debian(self): @@ -145,7 +145,7 @@ class MethodsTest(base.TestCase): result = methods.handle_repos(template_vars, ['grafana', 'ceph'], 'disable') expectCmd = 'RUN dnf config-manager --disable grafana ' - expectCmd += '--disable centos-ceph-pacific || true' + expectCmd += '--disable centos-ceph-quincy || true' self.assertEqual(expectCmd, result) # NOTE(hrw): there is no disabling of repos for Debian/Ubuntu -- cgit v1.2.3