Skip to content

Commit 5f35b50

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add support for CentOS 8 Stream" into stable/victoria
2 parents 3978b25 + 2877c2c commit 5f35b50

File tree

8 files changed

+136
-11
lines changed

8 files changed

+136
-11
lines changed

.zuul.d/base.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@
5757
- name: primary
5858
label: centos-8
5959

60+
- nodeset:
61+
name: kolla-centos8-stream
62+
nodes:
63+
- name: primary
64+
label: centos-8-stream
65+
6066
- nodeset:
6167
name: kolla-ubuntu-focal
6268
nodes:
@@ -75,6 +81,12 @@
7581
- name: primary
7682
label: centos-8-arm64
7783

84+
- nodeset:
85+
name: kolla-centos8-stream-aarch64
86+
nodes:
87+
- name: primary
88+
label: centos-8-stream-arm64
89+
7890
- nodeset:
7991
name: kolla-debian-buster-aarch64
8092
nodes:

.zuul.d/centos.yaml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,40 @@
44
jobs:
55
- kolla-build-centos8-binary
66
- kolla-build-centos8-source
7+
- kolla-build-centos8s-binary
8+
- kolla-build-centos8s-source
79
- kolla-ansible-centos8-source
810
- kolla-ansible-centos8-binary
911
- kolla-ansible-centos8-source-upgrade
1012
check-arm64:
1113
jobs:
1214
- kolla-build-centos8-source-aarch64
15+
- kolla-build-centos8s-source-aarch64
1316
gate:
1417
queue: kolla
1518
jobs:
1619
- kolla-build-centos8-source
20+
- kolla-build-centos8s-source
1721
- kolla-ansible-centos8-source
1822
- kolla-ansible-centos8-source-upgrade
1923
periodic:
2024
jobs:
2125
- kolla-publish-centos8-source-quay
2226
- kolla-publish-centos8-binary-quay
27+
- kolla-publish-centos8s-source-quay
28+
- kolla-publish-centos8s-binary-quay
2329
periodic-weekly:
2430
jobs:
2531
- kolla-publish-centos8-source-dockerhub
2632
- kolla-publish-centos8-binary-dockerhub
33+
- kolla-publish-centos8s-source-dockerhub
34+
- kolla-publish-centos8s-binary-dockerhub
2735
release:
2836
jobs:
2937
- kolla-publish-centos8-source-dockerhub
3038
- kolla-publish-centos8-binary-dockerhub
39+
- kolla-publish-centos8s-source-dockerhub
40+
- kolla-publish-centos8s-binary-dockerhub
3141
experimental:
3242
jobs:
3343
- kolla-build-no-infra-wheels-centos8-source
@@ -66,6 +76,17 @@
6676
base_distro: centos
6777
install_type: binary
6878

79+
- job:
80+
name: kolla-build-centos8s-binary
81+
parent: kolla-base
82+
nodeset: kolla-centos8-stream
83+
voting: false
84+
vars:
85+
base_distro: centos
86+
base_image: quay.io/centos/centos
87+
base_tag: stream8
88+
install_type: binary
89+
6990
- job:
7091
name: kolla-publish-centos8-binary-dockerhub
7192
parent: kolla-build-centos8-binary
@@ -77,6 +98,17 @@
7798
secrets:
7899
- kolla_dockerhub_creds
79100

101+
- job:
102+
name: kolla-publish-centos8s-binary-dockerhub
103+
parent: kolla-build-centos8s-binary
104+
post-run: tests/playbooks/publish.yml
105+
vars:
106+
publisher: true
107+
kolla_registry: dockerhub
108+
kolla_namespace: kolla
109+
secrets:
110+
- kolla_dockerhub_creds
111+
80112
- job:
81113
name: kolla-publish-centos8-binary-quay
82114
parent: kolla-build-centos8-binary
@@ -88,6 +120,17 @@
88120
secrets:
89121
- kolla_quay_io_creds
90122

123+
- job:
124+
name: kolla-publish-centos8s-binary-quay
125+
parent: kolla-build-centos8s-binary
126+
post-run: tests/playbooks/publish.yml
127+
vars:
128+
publisher: true
129+
kolla_registry: quay.io
130+
kolla_namespace: openstack.kolla
131+
secrets:
132+
- kolla_quay_io_creds
133+
91134
- job:
92135
name: kolla-build-centos8-source
93136
parent: kolla-base
@@ -96,12 +139,28 @@
96139
base_distro: centos
97140
install_type: source
98141

142+
- job:
143+
name: kolla-build-centos8s-source
144+
parent: kolla-base
145+
nodeset: kolla-centos8-stream
146+
vars:
147+
base_distro: centos
148+
base_image: quay.io/centos/centos
149+
base_tag: stream8
150+
install_type: source
151+
99152
- job:
100153
name: kolla-build-centos8-source-aarch64
101154
parent: kolla-build-centos8-source
102155
nodeset: kolla-centos8-aarch64
103156
voting: false
104157

158+
- job:
159+
name: kolla-build-centos8s-source-aarch64
160+
parent: kolla-build-centos8s-source
161+
nodeset: kolla-centos8-stream-aarch64
162+
voting: false
163+
105164
- job:
106165
name: kolla-publish-centos8-source-dockerhub
107166
parent: kolla-build-centos8-source
@@ -113,6 +172,17 @@
113172
secrets:
114173
- kolla_dockerhub_creds
115174

175+
- job:
176+
name: kolla-publish-centos8s-source-dockerhub
177+
parent: kolla-build-centos8s-source
178+
post-run: tests/playbooks/publish.yml
179+
vars:
180+
publisher: true
181+
kolla_registry: dockerhub
182+
kolla_namespace: kolla
183+
secrets:
184+
- kolla_dockerhub_creds
185+
116186
- job:
117187
name: kolla-publish-centos8-source-quay
118188
parent: kolla-build-centos8-source
@@ -124,6 +194,17 @@
124194
secrets:
125195
- kolla_quay_io_creds
126196

197+
- job:
198+
name: kolla-publish-centos8s-source-quay
199+
parent: kolla-build-centos8s-source
200+
post-run: tests/playbooks/publish.yml
201+
vars:
202+
publisher: true
203+
kolla_registry: quay.io
204+
kolla_namespace: openstack.kolla
205+
secrets:
206+
- kolla_quay_io_creds
207+
127208
- job:
128209
name: kolla-build-no-infra-wheels-centos8-source
129210
parent: kolla-build-no-infra-wheels-base

doc/source/admin/image-building.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ See the :ref:`support matrix <support-matrix-base-images>` for information on
7878
supported base image distribution versions and supported images on each
7979
distribution.
8080

81+
The Victoria release supports both CentOS 8 Linux and CentOS 8 Stream base
82+
container images. The default is to use CentOS 8 Linux. CentOS 8 Stream
83+
may be used as follows:
84+
85+
.. code-block:: console
86+
87+
kolla-build --base centos --base-image quay.io/centos/centos --base-tag stream8
88+
8189
It is possible to build only a subset of images by specifying them on the
8290
command line:
8391

doc/source/support_matrix.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ The following base container images are supported:
1919
CentOS 7 is no longer supported as a base container image. The Train release
2020
supports both CentOS 7 and 8 images, and provides a route for migration.
2121

22-
============= ============ ================
23-
Distribution Default base Default base tag
24-
============= ============ ================
25-
CentOS 8 centos 8
26-
Debian Buster debian 10
27-
RHEL 8 rhel 8
28-
Ubuntu Focal ubuntu 20.04
29-
============= ============ ================
22+
=============== ============ =============================== ================
23+
Distribution Default base Default base image Default base tag
24+
=============== ============ =============================== ================
25+
CentOS 8 Linux centos centos 8
26+
CentOS 8 Stream centos quay.io/centos/centos stream8
27+
Debian Buster debian debian 10
28+
RHEL 8 rhel rhel 8
29+
Ubuntu Focal ubuntu ubuntu 20.04
30+
=============== ============ =============================== ================
3031

3132
The remainder of this document outlines which images are supported on which of
3233
these distribution.

docker/base/Dockerfile.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ RUN if [[ -e /etc/yum.repos.d/rabbitmq_rabbitmq-server.repo ]]; then \
146146
'glibc-all-langpacks'
147147
] %}
148148

149-
RUN {{ macros.install_packages(base_centos_language_packages | customizable("centos_language_packages"), chain=True, clean=False) }} \
149+
# NOTE(hrw): this macro file drops all languages other than C.UTF-8 so horizon fails
150+
# https://bugzilla.redhat.com/show_bug.cgi?id=1729770
151+
RUN rm -f /etc/rpm/macros.image-language-conf \
152+
&& {{ macros.install_packages(base_centos_language_packages | customizable("centos_language_packages"), chain=True, clean=False) }} \
150153
&& {{ macros.rpm_security_update(clean_package_cache) }}
151154

152155
{% endblock %}
@@ -250,6 +253,7 @@ RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("cen
250253
'curl',
251254
'dumb-init',
252255
'findutils',
256+
'hostname',
253257
'iproute',
254258
'iscsi-initiator-utils',
255259
'lvm2',

docker/monasca/monasca-grafana/Dockerfile.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ RUN gem install fpm \
6262
&& tar --strip 1 -xvf /tmp/monasca-grafana.tgz -C ${monasca_grafana_build_path} \
6363
&& rm -f /tmp/monasca-grafana.tgz \
6464
&& cd ${monasca_grafana_build_path} \
65+
&& export GO111MODULE=auto \
6566
&& go run build.go setup \
6667
&& npm config set prefix /usr/local -g \
6768
&& npm install [email protected] -g \
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
other:
3+
- |
4+
CentOS images are now buildable using CentOS 8 Stream
5+
as a base.

tests/playbooks/run.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
vars_files:
44
- ../vars/zuul.yml
55
vars:
6-
tag_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
6+
arch_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
7+
tag_suffix: "{{ '-centos8s' if ansible_distribution | lower == 'centos' and base_tag == 'stream8' else '' }}"
78
kolla_build_config:
89
DEFAULT:
910
debug: true
@@ -22,12 +23,24 @@
2223
mode: 0777
2324
become: true
2425

26+
- name: Add base_image and base_tag config
27+
vars:
28+
kolla_base_image_config:
29+
DEFAULT:
30+
base_image: "{{ base_image }}"
31+
base_tag: "{{ base_tag }}"
32+
set_fact:
33+
kolla_build_config: "{{ kolla_build_config | combine(kolla_base_image_config, recursive=True) }}"
34+
when:
35+
- base_tag is defined
36+
- base_image is defined
37+
2538
- name: Add publisher config
2639
vars:
2740
kolla_publisher_config:
2841
DEFAULT:
2942
namespace: "{{ kolla_namespace }}"
30-
tag: "{{ (zuul.tag if zuul.pipeline == 'release' else zuul.branch | basename) ~ tag_suffix }}"
43+
tag: "{{ (zuul.tag if zuul.pipeline == 'release' else zuul.branch | basename) ~ arch_suffix ~ tag_suffix }}"
3144
set_fact:
3245
kolla_build_config: "{{ kolla_build_config | combine(kolla_publisher_config, recursive=True) }}"
3346
when:

0 commit comments

Comments
 (0)