aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorPierre Riteau <pierre@stackhpc.com>2026-01-22 09:20:50 +0100
committerPierre Riteau <pierre@stackhpc.com>2026-02-10 12:25:03 +0000
commit20f1a2c1deca2e0ed1c9ea6e8dc45b6dd32a7c72 (patch)
tree5d524610317ba3cbb8daaed459b90d750eac6325 /docker
parentdd8ab606be6eb53813b4f04373ba6bb91e5eb178 (diff)
downloadkolla-20f1a2c1deca2e0ed1c9ea6e8dc45b6dd32a7c72.tar.gz
kolla-20f1a2c1deca2e0ed1c9ea6e8dc45b6dd32a7c72.zip
Remove special handling for python3.12
This is not required anymore since we have switched to Rocky Linux 10. Change-Id: I10b68c2d3afa91cabf9341df75d8cf9f626c0f9b Signed-off-by: Pierre Riteau <pierre@stackhpc.com> (cherry picked from commit 64475a0b1b4dccbc3b817c78453e1d027b3f0d68)
Diffstat (limited to 'docker')
-rw-r--r--docker/bifrost/bifrost-base/Dockerfile.j25
-rw-r--r--docker/kolla-toolbox/Dockerfile.j218
2 files changed, 0 insertions, 23 deletions
diff --git a/docker/bifrost/bifrost-base/Dockerfile.j2 b/docker/bifrost/bifrost-base/Dockerfile.j2
index e31a12b32..720f3542e 100644
--- a/docker/bifrost/bifrost-base/Dockerfile.j2
+++ b/docker/bifrost/bifrost-base/Dockerfile.j2
@@ -19,11 +19,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{# NOTE(mgoddard): EPEL required for nginx #}
{{ macros.enable_extra_repos(['epel']) }}
-
- {% set bifrost_base_packages = bifrost_base_packages + [
- 'python3.12',
- 'python3.12-devel'
- ] %}
{% endif %}
{{ macros.install_packages(bifrost_base_packages | customizable("packages")) }}
diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2
index 9f97ed386..a77924075 100644
--- a/docker/kolla-toolbox/Dockerfile.j2
+++ b/docker/kolla-toolbox/Dockerfile.j2
@@ -61,24 +61,6 @@ COPY apt_preferences_rabbitmq.{{ base_distro }} /etc/apt/preferences.d/rabbitmq
{% endif %}
{{ macros.install_packages(kolla_toolbox_packages | customizable("packages")) }}
-{# NOTE(kevko):
- In all distros, there is always a /usr/bin/python3 -> python3.X.
- However, this is disrupted for RHEL-based systems because, unlike
- other distros, we upgrade Python above [1], but we forget to set
- the default python3 to the new python3.X. As a result also, everything
- outside of the virtual environment ends up running on Python 3.9.
-
- So, let's correctly set python3 -> python3.X since we had to install
- it and now have default python3 points to the new version.
-
- [1] https://review.opendev.org/c/openstack/kolla/+/924245
-#}
-{% if base_package_type == 'rpm' %}
-RUN cd /usr/bin && \
- rm -f python3 && \
- ln -s python3.12 python3
-{% endif %}
-
{% block kolla_toolbox_pip_conf %}
ENV UPPER_CONSTRAINTS_FILE=https://releases.openstack.org/constraints/upper/{{ openstack_release }}
{% endblock %}