Skip to content

Commit 6fc7628

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Drop support for CentOS Stream 9 and Rocky Linux 9"
2 parents 012f77b + a6e29d2 commit 6fc7628

File tree

26 files changed

+78
-319
lines changed

26 files changed

+78
-319
lines changed

ansible/inventory/group_vars/all/globals

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ kayobe_ansible_user: "stack"
5252
# is "rocky".
5353
os_distribution: "rocky"
5454

55-
# OS release. Valid options are "9-stream" and "10-stream" (with "9-stream"
56-
# being the default) when os_distribution is "centos", "9" and "10" (with "9"
57-
# being the default) when os_distribution is "rocky", or "noble" when
58-
# os_distribution is "ubuntu".
55+
# OS release. Valid options are "10-stream" when os_distribution is "centos",
56+
# "10" when os_distribution is "rocky", or "noble" when os_distribution is
57+
# "ubuntu".
5958
os_release: >-
60-
{{ '9-stream' if os_distribution == 'centos'
61-
else '9' if os_distribution == 'rocky'
59+
{{ '10-stream' if os_distribution == 'centos'
60+
else '10' if os_distribution == 'rocky'
6261
else 'noble' }}
6362

6463
###############################################################################

ansible/inventory/group_vars/all/infra-vms

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,18 @@ infra_vm_root_format: qcow2
4343
# Base image for the infra VM root volume. Default is
4444
# "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
4545
# when os_distribution is "ubuntu",
46-
# "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2"
47-
# when os_distribution is "rocky" and os_release is "9",
4846
# "https://dl.rockylinux.org/pub/rocky/10/images/x86_64/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2"
49-
# when os_distribution is "rocky" and os_release is "10",
50-
# "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-9-latest.x86_64.qcow2"
51-
# when os_distribution is "centos" and os_release is "9-stream", or
47+
# when os_distribution is "rocky", or
5248
# "https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2"
5349
# otherwise.
5450
infra_vm_root_image: >-
5551
{%- if os_distribution == 'ubuntu' %}
5652
https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
5753
{%- elif os_distribution == 'rocky' %}
58-
{%- if os_release == '9' %}
59-
https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2
60-
{%- else -%}
6154
https://dl.rockylinux.org/pub/rocky/10/images/x86_64/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2
62-
{%- endif %}
63-
{%- else -%}
64-
{%- if os_release == '9-stream' %}
65-
https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-9-latest.x86_64.qcow2
6655
{%- else -%}
6756
https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2
6857
{%- endif %}
69-
{%- endif %}
7058

7159
# Capacity of the infra VM data volume.
7260
infra_vm_data_capacity: 100G

ansible/inventory/group_vars/all/seed-vm

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,18 @@ seed_vm_root_format: qcow2
4343
# Base image for the seed VM root volume. Default is
4444
# "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
4545
# when os_distribution is "ubuntu",
46-
# "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2"
47-
# when os_distribution is "rocky" and os_release is "9",
4846
# "https://dl.rockylinux.org/pub/rocky/10/images/x86_64/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2"
49-
# when os_distribution is "rocky" and os_release is "10",
50-
# "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-9-latest.x86_64.qcow2"
51-
# when os_distribution is "centos" and os_release is "9-stream", or
47+
# when os_distribution is "rocky", or
5248
# "https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2"
5349
# otherwise.
5450
seed_vm_root_image: >-
5551
{%- if os_distribution == 'ubuntu' %}
5652
https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
5753
{%- elif os_distribution == 'rocky' %}
58-
{%- if os_release == '9' %}
59-
https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2
60-
{%- else -%}
6154
https://dl.rockylinux.org/pub/rocky/10/images/x86_64/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2
62-
{%- endif %}
63-
{%- else -%}
64-
{%- if os_release == '9-stream' %}
65-
https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-9-latest.x86_64.qcow2
6655
{%- else -%}
6756
https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2
6857
{%- endif %}
69-
{%- endif %}
7058

7159
# Capacity of the seed VM data volume.
7260
seed_vm_data_capacity: 100G

ansible/roles/kolla-ansible/vars/RedHat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ kolla_ansible_package_dependencies:
55
- git
66
- libffi-devel
77
- openssl-devel
8-
- "{{ 'python3.12' if ansible_facts.distribution_major_version == '9' else 'python3' }}"
9-
- "{{ 'python3.12-devel' if ansible_facts.distribution_major_version == '9' else 'python3-devel' }}"
8+
- python3
9+
- python3-devel
1010
- rsync

dev/functions

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,10 @@ function is_yum {
141141
fi
142142
}
143143

144-
function get_python {
145-
if is_dnf; then
146-
echo python3.12
147-
else
148-
echo python3
149-
fi
150-
}
151-
152144
function install_dependencies {
153145
echo "Installing package dependencies for kayobe"
154146
if is_dnf; then
155-
sudo dnf -y install gcc git vim python3-devel python3-pyyaml libffi-devel python3.12-devel python3.12 python3.12-pyyaml
147+
sudo dnf -y install gcc git vim python3-devel python3-pyyaml libffi-devel
156148
elif is_yum; then
157149
echo "CentOS 7 is no longer supported"
158150
exit 1
@@ -174,7 +166,7 @@ function install_venv {
174166
fi
175167
if [[ ! -f "${venv_path}/bin/activate" ]]; then
176168
echo "Creating virtual environment in ${venv_path}"
177-
$(get_python) -m venv "${venv_path}"
169+
python3 -m venv "${venv_path}"
178170
# NOTE: Virtualenv's activate and deactivate scripts reference an
179171
# unbound variable.
180172
set +u
@@ -200,9 +192,7 @@ function install_venv_system_site_packages {
200192
fi
201193
if [[ ! -f "${venv_path}/bin/activate" ]]; then
202194
echo "Creating virtual environment in ${venv_path}"
203-
# NOTE(wszumski): tenks doesn't currently support not using the system python
204-
# interpreter with: "Failed to detect selinux python bindings"
205-
/usr/bin/python3 -m venv --system-site-packages "${venv_path}"
195+
python3 -m venv --system-site-packages "${venv_path}"
206196
# NOTE: Virtualenv's activate and deactivate scripts reference an
207197
# unbound variable.
208198
set +u
@@ -228,9 +218,7 @@ function install_kayobe_dev_venv {
228218

229219
function upgrade_kayobe_venv {
230220
echo "Upgrading kayobe virtual environment in ${KAYOBE_VENV_PATH}"
231-
# NOTE(wszumski): We need to recreate the old virtualenv to switch to python3.12
232-
rm -rf "${KAYOBE_VENV_PATH}"
233-
$(get_python) -m venv "${KAYOBE_VENV_PATH}"
221+
python3 -m venv "${KAYOBE_VENV_PATH}"
234222
# NOTE: Virtualenv's activate and deactivate scripts reference an
235223
# unbound variable.
236224
set +u

doc/source/configuration/reference/bifrost.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ information on building disk images.
7777

7878
The default configuration builds a whole disk (partitioned) image using the
7979
selected :ref:`OS distribution <os-distribution>` with serial console enabled,
80-
and SELinux disabled if CentOS Stream is used. Rocky Linux 9 users should use
80+
and SELinux disabled if CentOS Stream is used. Rocky Linux 10 users should use
8181
the default method of building images with
8282
:ref:`Diskimage builder directly <overcloud-dib>`.
8383

doc/source/configuration/reference/network.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ String format rules (CentOS Stream/Rocky Linux only)
302302

303303
The string format of a rule is the string which would be appended to ``ip rule
304304
<add|del>`` to create or delete the rule. Note that when using NetworkManager
305-
(the default since Zed and in Yoga when using Rocky Linux 9) the table must be
306-
specified by ID.
305+
(the default when using Rocky Linux 10) the table must be specified by ID.
307306

308307
To configure a network called ``example`` with an IP routing policy rule to
309308
handle traffic from the subnet ``10.1.0.0/24`` using the routing table with ID
@@ -396,9 +395,9 @@ The following attributes are supported:
396395
``bridge_stp``
397396
.. note::
398397

399-
For Rocky Linux 9, the ``bridge_stp`` attribute is set to false to preserve
400-
backwards compatibility with network scripts. This is because the Network
401-
Manager sets STP to true by default on bridges.
398+
For Rocky Linux 10, the ``bridge_stp`` attribute is set to false to
399+
preserve backwards compatibility with network scripts. This is because
400+
the Network Manager sets STP to true by default on bridges.
402401

403402
Enable or disable the Spanning Tree Protocol (STP) on this bridge. Should be
404403
set to a boolean value. The default is not set on Ubuntu systems.

doc/source/configuration/reference/os-distribution.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ or ``rocky`` or ``ubuntu``, and defaults to ``rocky``.
1515

1616
The ``os_release`` variable in ``etc/kayobe/globals.yml`` can be used to set
1717
the release of the OS. When ``os_distribution`` is set to ``centos`` it may be
18-
set to ``9-stream`` or ``10-stream``, and ``9-stream`` is its default value.
19-
When ``os_distribution`` is set to ``rocky`` it may be set to ``9`` or ``10``,
20-
and ``9`` is its default value. When ``os_distribution`` is set to ``ubuntu``
21-
it may be set to ``noble``, and this is its default value.
18+
set to ``10-stream``, and this is its default value. When ``os_distribution``
19+
is set to ``rocky`` it may be set to ``10``, and this is its default value.
20+
When ``os_distribution`` is set to ``ubuntu`` it may be set to ``noble``, and
21+
this is its default value.
2222

2323
These variables are used to set various defaults, including:
2424

doc/source/configuration/reference/overcloud-dib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ how these images are built. Consult the
3434
information on building disk images.
3535

3636
The default configuration builds a whole disk (partitioned) image using the
37-
selected :ref:`OS distribution <os-distribution>` (Rocky Linux 9 by default)
37+
selected :ref:`OS distribution <os-distribution>` (Rocky Linux 10 by default)
3838
with serial console enabled, and SELinux disabled if CentOS Stream or Rocky
3939
Linux is used.
4040
`Cloud-init <https://cloudinit.readthedocs.io/en/latest/>`__ is used to process

doc/source/contributor/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ running kayobe's tests.
1818

1919
sudo apt-get install build-essential python3-dev libssl-dev python3-pip git
2020

21-
* Fedora or CentOS Stream 9/Rocky 9/RHEL 9::
21+
* Fedora or CentOS Stream 10/Rocky 10/RHEL 10::
2222

2323
sudo dnf install python3-devel openssl-devel python3-pip git gcc
2424

0 commit comments

Comments
 (0)