Skip to content

Commit b22feb6

Browse files
authored
Merge pull request #206 from stackhpc/upstream/yoga-2023-02-27
Synchronise yoga with upstream
2 parents 536c666 + c7164c8 commit b22feb6

File tree

22 files changed

+259
-46
lines changed

22 files changed

+259
-46
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/centos.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
gate:
1919
jobs:
2020
- kolla-build-centos8s-source
21-
- kolla-build-centos9s-source
2221
- kolla-ansible-centos8s-source
23-
- kolla-ansible-centos9s-source:
24-
vars:
25-
kolla_python_version: "3.9"
2622
- kolla-ansible-centos8s-source-upgrade
2723
periodic:
2824
jobs:
@@ -109,6 +105,7 @@
109105
name: kolla-build-centos9s-source
110106
parent: kolla-base
111107
nodeset: kolla-centos-9-stream
108+
voting: false
112109
vars:
113110
base_distro: centos
114111
install_type: source

.zuul.d/rocky.yaml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
periodic:
21+
jobs:
22+
- kolla-publish-rocky9-source-quay
23+
periodic-weekly:
24+
jobs:
25+
- kolla-publish-rocky9-source-dockerhub
26+
experimental:
27+
jobs:
28+
- kolla-build-no-infra-wheels-rocky9
29+
30+
- job:
31+
name: kolla-build-rocky9-source
32+
parent: kolla-base
33+
nodeset: kolla-rockylinux-9
34+
vars:
35+
base_distro: rocky
36+
base_distro_version: 9
37+
install_type: source
38+
39+
- job:
40+
name: kolla-build-rocky9-source-aarch64
41+
parent: kolla-build-rocky9-source
42+
nodeset: kolla-rockylinux-9-aarch64
43+
voting: false
44+
45+
- job:
46+
name: kolla-build-no-infra-wheels-rocky9
47+
parent: kolla-build-no-infra-wheels-base
48+
nodeset: kolla-rockylinux-9
49+
vars:
50+
base_distro: rocky
51+
base_distro_version: 9
52+
53+
- job:
54+
name: kolla-publish-rocky9-source-dockerhub
55+
parent: kolla-build-rocky9-source
56+
post-run: tests/playbooks/publish.yml
57+
vars:
58+
publisher: true
59+
kolla_registry: dockerhub
60+
kolla_namespace: kolla
61+
secrets:
62+
- kolla_dockerhub_creds
63+
64+
- job:
65+
name: kolla-publish-rocky9-source-quay
66+
parent: kolla-build-rocky9-source
67+
post-run: tests/playbooks/publish.yml
68+
vars:
69+
publisher: true
70+
kolla_registry: quay.io
71+
kolla_namespace: openstack.kolla
72+
secrets:
73+
- 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: 5 additions & 5 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,9 +20,9 @@ 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
24-
shim_src_file="/boot/efi/EFI/centos/shim*64.efi"
25-
grub_src_file="/boot/efi/EFI/centos/grub*64.efi"
23+
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]]; then
24+
shim_src_file="/boot/efi/EFI/${KOLLA_BASE_DISTRO}/shim*64.efi"
25+
grub_src_file="/boot/efi/EFI/${KOLLA_BASE_DISTRO}/grub*64.efi"
2626
fi
2727

2828
if [[ "${KOLLA_BASE_ARCH}" == "x86_64" ]]; then
@@ -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'

0 commit comments

Comments
 (0)