From 6efbc371f0b42daf846590bb3017711203d01d5a Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Fri, 29 Mar 2024 08:23:43 +0100 Subject: [PATCH] kolla-toolbox: Bump ansible-core to 2.16 2.15 patch was 2023.2 only - because we missed it last cycle [1] ansible-core 2.16 requires python3.10 which is not the default python in Rocky Linux 9 - therefore we use 2.15 there for now [1]: https://review.opendev.org/c/openstack/kolla/+/910148 Change-Id: Ic8cc29230d82f4d1f07a3c97c3dcbcd14ac76074 --- docker/kolla-toolbox/Dockerfile.j2 | 7 ++++++- .../notes/ansible-core-2_16-toolbox-8cec8f56e022731b.yaml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/ansible-core-2_16-toolbox-8cec8f56e022731b.yaml diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index c5e17a20ec..767168a456 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -64,7 +64,6 @@ RUN mkdir -p /requirements \ ENV PATH {{ venv_path }}/bin:$PATH {% set kolla_toolbox_pip_packages = [ - 'ansible-core==2.14.*', 'cmd2', 'influxdb', 'openstacksdk', @@ -77,6 +76,12 @@ ENV PATH {{ venv_path }}/bin:$PATH 'pyudev', ] %} +{% if base_package_type == 'rpm' %} +{% set kolla_toolbox_pip_packages = kolla_toolbox_pip_packages + ['ansible-core==2.15.*'] %} +{% else %} +{% set kolla_toolbox_pip_packages = kolla_toolbox_pip_packages + ['ansible-core==2.16.*'] %} +{% endif %} + RUN {{ macros.install_pip(['pip', 'wheel', 'setuptools']) }} \ && {{ macros.install_pip(kolla_toolbox_pip_packages | customizable("pip_packages")) }} \ && mkdir -p /etc/ansible /usr/share/ansible \ diff --git a/releasenotes/notes/ansible-core-2_16-toolbox-8cec8f56e022731b.yaml b/releasenotes/notes/ansible-core-2_16-toolbox-8cec8f56e022731b.yaml new file mode 100644 index 0000000000..cfbe2dbb01 --- /dev/null +++ b/releasenotes/notes/ansible-core-2_16-toolbox-8cec8f56e022731b.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Kolla toolbox is now using ``ansible-core 2.16`` for DEB + and ``ansible-core 2.15`` for RPM distros.