Skip to content

Commit 7a9ff37

Browse files
committed
Add RockyLinux 9 support
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/859570 Change Ifad1da69122381cec10be4a882f80dab665cfc33 has also been incorporated because it would fail to build without that. Depends-On: https://review.opendev.org/c/openstack/bifrost/+/873581 Change-Id: I7af51d07b8a939c908aa072294061def57dd67de (cherry picked from commit 0883532)
1 parent e29437d commit 7a9ff37

File tree

19 files changed

+174
-40
lines changed

19 files changed

+174
-40
lines changed

.zuul.d/base.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
- name: primary
6767
label: centos-9-stream
6868

69+
- nodeset:
70+
name: kolla-rockylinux-9
71+
nodes:
72+
- name: primary
73+
label: rockylinux-9
74+
6975
- nodeset:
7076
name: kolla-ubuntu-focal
7177
nodes:
@@ -96,6 +102,12 @@
96102
- name: primary
97103
label: debian-bullseye-arm64
98104

105+
- nodeset:
106+
name: kolla-rockylinux-9-aarch64
107+
nodes:
108+
- name: primary
109+
label: rockylinux-9-arm64
110+
99111
- nodeset:
100112
name: kolla-ubuntu-focal-aarch64
101113
nodes:

.zuul.d/rocky.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
- project:
3+
check:
4+
jobs:
5+
- kolla-build-rocky9-source
6+
- kolla-ansible-rocky9-source:
7+
vars:
8+
base_distro: "rocky"
9+
kolla_python_version: "3.9"
10+
check-arm64:
11+
jobs:
12+
- kolla-build-rocky9-aarch64
13+
gate:
14+
jobs:
15+
- kolla-build-rocky9
16+
- kolla-ansible-rocky9-source:
17+
vars:
18+
base_distro: "rocky"
19+
kolla_python_version: "3.9"
20+
experimental:
21+
jobs:
22+
- kolla-build-no-infra-wheels-rocky9
23+
24+
- job:
25+
name: kolla-build-rocky9-source
26+
parent: kolla-base
27+
nodeset: kolla-rockylinux-9
28+
vars:
29+
base_distro: rocky
30+
base_distro_version: 9
31+
install_type: source
32+
33+
- job:
34+
name: kolla-build-rocky9-source-aarch64
35+
parent: kolla-build-rocky9-source
36+
nodeset: kolla-rockylinux-9-aarch64
37+
voting: false
38+
39+
- job:
40+
name: kolla-build-no-infra-wheels-rocky9
41+
parent: kolla-build-no-infra-wheels-base
42+
nodeset: kolla-rockylinux-9
43+
vars:
44+
base_distro: rocky
45+
base_distro_version: 9
46+
47+
- job:
48+
name: kolla-publish-rocky9-source-dockerhub
49+
parent: kolla-build-rocky9-source
50+
post-run: tests/playbooks/publish.yml
51+
vars:
52+
publisher: true
53+
kolla_registry: dockerhub
54+
kolla_namespace: kolla
55+
secrets:
56+
- kolla_dockerhub_creds
57+
58+
- job:
59+
name: kolla-publish-rocky9-source-quay
60+
parent: kolla-build-rocky9-source
61+
post-run: tests/playbooks/publish.yml
62+
vars:
63+
publisher: true
64+
kolla_registry: quay.io
65+
kolla_namespace: openstack.kolla
66+
secrets:
67+
- kolla_quay_io_creds

docker/base/Dockerfile.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,17 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
145145

146146
{% block base_centos_repo_overrides_post_rpm %}{% endblock %}
147147

148-
{% if base_distro == 'centos' %}
148+
{% if base_distro in ['centos', 'rocky'] %}
149149

150150
{% block base_centos_gpg_key_import %}
151151
{% endblock %}
152152

153153
{% set base_centos_yum_repo_keys = [
154154
] %}
155155

156-
{% if base_distro == 'centos' %}
156+
{% if base_distro in ['centos', 'rocky'] %}
157157

158-
{% if base_distro_tag.startswith('stream9') %}
158+
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
159159

160160
{% set base_centos_yum_repo_packages = [
161161
'centos-release-openstack-yoga',
@@ -185,9 +185,9 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
185185
{% set base_centos_yum_repos_to_enable = [
186186
] %}
187187

188-
{% if base_distro == 'centos' %}
188+
{% if base_distro in ['centos', 'rocky'] %}
189189

190-
{% if base_distro_tag.startswith('stream9') %}
190+
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
191191

192192
{% set base_centos_yum_repos_to_disable = [
193193
'centos-ceph-pacific',

docker/base/httpd_setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ if [[ "$(whoami)" == 'root' ]]; then
1919
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
2020
fi
2121

22-
# CentOS 8 has an issue with mod_ssl which produces an invalid Apache
22+
# CentOS/Rocky have an issue with mod_ssl which produces an invalid Apache
2323
# configuration in /etc/httpd/conf.d/ssl.conf. This causes the following error
2424
# on startup:
2525
# SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
2626
# Work around this by generating certificates manually.
27-
if [[ ${KOLLA_BASE_DISTRO} = centos ]] && [[ ! -e /etc/pki/tls/certs/localhost.crt ]]; then
27+
if [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]] && [[ ! -e /etc/pki/tls/certs/localhost.crt ]]; then
2828
/usr/libexec/httpd-ssl-gencerts
2929
fi
3030
fi

docker/collectd/Dockerfile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
5454
'collectd-write_prometheus',
5555
] %}
5656

57-
{% if not base_distro_tag.startswith('stream9') %}
57+
{% if not base_distro_tag.startswith('stream9') and not base_distro == 'rocky' %}
5858
{% set collectd_packages = collectd_packages + [
5959
'collectd-generic-jmx',
6060
'collectd-memcachec'
@@ -70,7 +70,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
7070
'collectd-turbostat'
7171
] %}
7272

73-
{% if not base_distro_tag.startswith('stream9') %}
73+
{% if not base_distro_tag.startswith('stream9') and not base_distro == 'rocky' %}
7474
{% set collectd_packages = collectd_packages + [
7575
'collectd-iptables'
7676
] %}

docker/cron/Dockerfile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1313
'logrotate'
1414
] %}
1515

16-
{% if base_distro_tag.startswith('stream9') %}
16+
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
1717
# NOTE(hrw): In RHEL 9 family it is done by systemd timer, we want cron to
1818
# handle it.
1919
COPY logrotate /etc/cron.daily/logrotate
@@ -28,7 +28,7 @@ COPY logrotate /etc/cron.daily/logrotate
2828

2929
{{ macros.install_packages(cron_packages | customizable("packages")) }}
3030

31-
{% if base_distro_tag.startswith('stream9') %}
31+
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
3232
COPY extend_start_el9.sh /usr/local/bin/kolla_extend_start
3333
{% else %}
3434
COPY extend_start.sh /usr/local/bin/kolla_extend_start

docker/ironic/ironic-pxe/extend_start.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function prepare_pxe_pxelinux {
77
cp /usr/lib/PXELINUX/pxelinux.0 \
88
/usr/lib/syslinux/modules/bios/{chain.c32,ldlinux.c32} \
99
${TFTPBOOT_PATH}/
10-
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos ]]; then
10+
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]]; then
1111
if [[ "${TFTPBOOT_PATH}" != /tftpboot ]]; then
1212
cp /tftpboot/{pxelinux.0,chain.c32,ldlinux.c32} \
1313
${TFTPBOOT_PATH}/
@@ -20,7 +20,7 @@ function prepare_pxe_grub {
2020
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
2121
shim_src_file="/usr/lib/shim/shim*64.efi.signed"
2222
grub_src_file="/usr/lib/grub/*-efi-signed/grubnet*64.efi.signed"
23-
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos ]]; then
23+
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]]; then
2424
shim_src_file="/boot/efi/EFI/centos/shim*64.efi"
2525
grub_src_file="/boot/efi/EFI/centos/grub*64.efi"
2626
fi
@@ -51,7 +51,7 @@ function prepare_ipxe {
5151
elif [[ ! -e ${TFTPBOOT_PATH}/snponly.efi ]]; then
5252
ln -s ${TFTPBOOT_PATH}/ipxe.efi ${TFTPBOOT_PATH}/snponly.efi
5353
fi
54-
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos ]]; then
54+
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]]; then
5555
cp /usr/share/ipxe/{undionly.kpxe,ipxe*.efi} ${TFTPBOOT_PATH}/
5656
if [[ ! -e ${TFTPBOOT_PATH}/ipxe.efi ]]; then
5757
ln -s ${TFTPBOOT_PATH}/ipxe-${KOLLA_BASE_ARCH}.efi ${TFTPBOOT_PATH}/ipxe.efi

docker/keystone/keystone-base/Dockerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RUN mkdir -p /var/www/cgi-bin/keystone \
4949
'openldap-devel',
5050
] %}
5151

52-
{% if not base_distro_tag.startswith('stream9') %}
52+
{% if not base_distro_tag.startswith('stream9') and not base_distro == 'rocky' %}
5353
RUN dnf module enable mod_auth_openidc -y
5454
{% endif %}
5555

docker/mariadb/mariadb-clustercheck/Dockerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
55

66
{% import "macros.j2" as macros with context %}
77

8-
{% if not base_distro_tag.startswith('stream9') %}
8+
{% if not base_distro_tag.startswith('stream9') and not base_distro == 'rocky' %}
99

1010
{% set mariadb_clustercheck_packages = [
1111
'xinetd'

docker/neutron/neutron-base/Dockerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ RUN ln -s neutron-base-source/* neutron \
121121
{% endif %}
122122

123123
COPY neutron_sudoers /etc/sudoers.d/kolla_neutron_sudoers
124-
{% if base_distro_tag.startswith('stream9') %}
124+
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
125125
COPY extend_start_el9.sh /usr/local/bin/kolla_extend_start
126126
{% else %}
127127
COPY extend_start.sh /usr/local/bin/kolla_extend_start

0 commit comments

Comments
 (0)