Skip to content

Commit 07f5199

Browse files
committed
Drop CentOS Linux 8 image builds
Included patch: Remove missing collectd packages Since CentOS Linux 8 repository retirement from CentOS mirrors - we need to use CentOS Stream 8 version of Opstools repo. Listed below packages are missing from the repo, and according to the maintainer dpdk_telemetry is not going to show up at all (it's basically dead). The rest of the packages might show up at a later stage - but it's not a priority for the maintainer. - collectd-dpdk_telemetry - collectd-libpod-stats - collectd-sensubility - python3-sqlalchemy-collectd (cherry picked from commit 405fca9) Change-Id: I95ea4a66a80bf035f8bd1180790c7e0c85d759ed
1 parent 02f5222 commit 07f5199

File tree

8 files changed

+24
-106
lines changed

8 files changed

+24
-106
lines changed

.zuul.d/centos.yaml

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,34 @@
22
- project:
33
check:
44
jobs:
5-
- kolla-build-centos8-binary
6-
- kolla-build-centos8-source
75
- kolla-build-centos8s-binary
86
- kolla-build-centos8s-source
97
- kolla-ansible-centos8s-source
108
- kolla-ansible-centos8s-binary
119
- kolla-ansible-centos8s-source-upgrade
1210
check-arm64:
1311
jobs:
14-
- kolla-build-centos8-source-aarch64
1512
- kolla-build-centos8s-source-aarch64
1613
gate:
1714
queue: kolla
1815
jobs:
19-
- kolla-build-centos8-source
2016
- kolla-build-centos8s-source
2117
- kolla-ansible-centos8s-source
2218
- kolla-ansible-centos8s-source-upgrade
2319
periodic:
2420
jobs:
25-
- kolla-publish-centos8-source-quay
26-
- kolla-publish-centos8-binary-quay
2721
- kolla-publish-centos8s-source-quay
2822
- kolla-publish-centos8s-binary-quay
2923
periodic-weekly:
3024
jobs:
31-
- kolla-publish-centos8-source-dockerhub
32-
- kolla-publish-centos8-binary-dockerhub
3325
- kolla-publish-centos8s-source-dockerhub
3426
- kolla-publish-centos8s-binary-dockerhub
3527
release:
3628
jobs:
37-
- kolla-publish-centos8-source-dockerhub
38-
- kolla-publish-centos8-binary-dockerhub
3929
- kolla-publish-centos8s-source-dockerhub
4030
- kolla-publish-centos8s-binary-dockerhub
4131
experimental:
4232
jobs:
43-
- kolla-build-no-infra-wheels-centos8-source
4433
- kolla-ansible-centos8s-source-bifrost:
4534
files: ^docker\/(base|bifrost|openstack-base)\/.*
4635
# Test rabbitmq & mariadb changes in multinode ceph jobs.
@@ -67,15 +56,6 @@
6756
- kolla-ansible-centos8s-source-kvm:
6857
files: ^docker/nova/
6958

70-
- job:
71-
name: kolla-build-centos8-binary
72-
parent: kolla-base
73-
nodeset: kolla-centos8-stream
74-
voting: false
75-
vars:
76-
base_distro: centos
77-
install_type: binary
78-
7959
- job:
8060
name: kolla-build-centos8s-binary
8161
parent: kolla-base
@@ -87,17 +67,6 @@
8767
base_tag: stream8
8868
install_type: binary
8969

90-
- job:
91-
name: kolla-publish-centos8-binary-dockerhub
92-
parent: kolla-build-centos8-binary
93-
post-run: tests/playbooks/publish.yml
94-
vars:
95-
publisher: true
96-
kolla_registry: dockerhub
97-
kolla_namespace: kolla
98-
secrets:
99-
- kolla_dockerhub_creds
100-
10170
- job:
10271
name: kolla-publish-centos8s-binary-dockerhub
10372
parent: kolla-build-centos8s-binary
@@ -109,17 +78,6 @@
10978
secrets:
11079
- kolla_dockerhub_creds
11180

112-
- job:
113-
name: kolla-publish-centos8-binary-quay
114-
parent: kolla-build-centos8-binary
115-
post-run: tests/playbooks/publish.yml
116-
vars:
117-
publisher: true
118-
kolla_registry: quay.io
119-
kolla_namespace: openstack.kolla
120-
secrets:
121-
- kolla_quay_io_creds
122-
12381
- job:
12482
name: kolla-publish-centos8s-binary-quay
12583
parent: kolla-build-centos8s-binary
@@ -131,14 +89,6 @@
13189
secrets:
13290
- kolla_quay_io_creds
13391

134-
- job:
135-
name: kolla-build-centos8-source
136-
parent: kolla-base
137-
nodeset: kolla-centos8-stream
138-
vars:
139-
base_distro: centos
140-
install_type: source
141-
14292
- job:
14393
name: kolla-build-centos8s-source
14494
parent: kolla-base
@@ -149,29 +99,12 @@
14999
base_tag: stream8
150100
install_type: source
151101

152-
- job:
153-
name: kolla-build-centos8-source-aarch64
154-
parent: kolla-build-centos8-source
155-
nodeset: kolla-centos8-stream-aarch64
156-
voting: false
157-
158102
- job:
159103
name: kolla-build-centos8s-source-aarch64
160104
parent: kolla-build-centos8s-source
161105
nodeset: kolla-centos8-stream-aarch64
162106
voting: false
163107

164-
- job:
165-
name: kolla-publish-centos8-source-dockerhub
166-
parent: kolla-build-centos8-source
167-
post-run: tests/playbooks/publish.yml
168-
vars:
169-
publisher: true
170-
kolla_registry: dockerhub
171-
kolla_namespace: kolla
172-
secrets:
173-
- kolla_dockerhub_creds
174-
175108
- job:
176109
name: kolla-publish-centos8s-source-dockerhub
177110
parent: kolla-build-centos8s-source
@@ -183,17 +116,6 @@
183116
secrets:
184117
- kolla_dockerhub_creds
185118

186-
- job:
187-
name: kolla-publish-centos8-source-quay
188-
parent: kolla-build-centos8-source
189-
post-run: tests/playbooks/publish.yml
190-
vars:
191-
publisher: true
192-
kolla_registry: quay.io
193-
kolla_namespace: openstack.kolla
194-
secrets:
195-
- kolla_quay_io_creds
196-
197119
- job:
198120
name: kolla-publish-centos8s-source-quay
199121
parent: kolla-build-centos8s-source
@@ -204,11 +126,3 @@
204126
kolla_namespace: openstack.kolla
205127
secrets:
206128
- kolla_quay_io_creds
207-
208-
- job:
209-
name: kolla-build-no-infra-wheels-centos8-source
210-
parent: kolla-build-no-infra-wheels-base
211-
nodeset: kolla-centos8-stream
212-
vars:
213-
base_distro: centos
214-
install_type: source

doc/source/admin/image-building.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ 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-
8981
It is possible to build only a subset of images by specifying them on the
9082
command line:
9183

doc/source/support_matrix.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ 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+
.. note::
23+
24+
CentOS 8 is no longer supported since it has been marked as End of Life
25+
and repositories have been removed from CentOS mirrors.
26+
2227
=============== ============ =============================== ================
2328
Distribution Default base Default base image Default base tag
2429
=============== ============ =============================== ================
25-
CentOS 8 Linux centos centos 8
2630
CentOS 8 Stream centos quay.io/centos/centos stream8
2731
Debian Buster debian debian 10
2832
RHEL 8 rhel rhel 8

docker/base/Dockerfile.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
223223

224224
RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("centos_yum_repo_packages"), chain=True, clean=False) }}
225225

226+
{# TODO(mnasiadka): Remove me once Nautilus C8S lands on mirror.centos.org #}
227+
228+
RUN sed -i \
229+
-e "s|^\(mirrorlist.*\)|#\1|" \
230+
-e "s|^#baseurl=http://mirror.centos.org.*|baseurl=https://trunk.rdoproject.org/centos8-master/deps/storage/nautilus/|" \
231+
/etc/yum.repos.d/CentOS-Ceph-Nautilus.repo
232+
226233
{%- for repo in base_centos_yum_repos_to_enable | customizable('centos_yum_repos_to_enable') %} && dnf config-manager --enable {{ repo }} {% endfor -%}
227234

228235
{%- for repo in base_centos_yum_repos_to_disable | customizable('centos_yum_repos_to_disable') %} && dnf config-manager --disable {{ repo }} {% endfor -%}

docker/collectd/Dockerfile.j2

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
3030
'collectd-dbi',
3131
'collectd-disk',
3232
'collectd-dns',
33-
'collectd-dpdk_telemetry',
3433
'collectd-generic-jmx',
3534
'collectd-ipmi',
36-
'collectd-libpod-stats',
3735
'collectd-log_logstash',
3836
'collectd-logparser',
3937
'collectd-mcelog',
@@ -47,7 +45,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
4745
'collectd-procevent',
4846
'collectd-python',
4947
'collectd-sensors',
50-
'collectd-sensubility',
5148
'collectd-smart',
5249
'collectd-snmp',
5350
'collectd-snmp-agent',
@@ -57,7 +54,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
5754
'collectd-write_http',
5855
'collectd-write_kafka',
5956
'collectd-write_prometheus',
60-
'python3-sqlalchemy-collectd'
6157
] %}
6258

6359
{% if base_arch in ['x86_64', 'ppc64le'] %}

docker/openstack-base/Dockerfile.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
8787
'python3-routes',
8888
'python3-saharaclient',
8989
'python3-sqlalchemy',
90-
'python3-sqlalchemy-collectd',
9190
'python3-sqlparse',
9291
'python3-swiftclient',
9392
'python3-sysv_ipc',

kolla/common/config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
BASE_OS_DISTRO = ['centos', 'rhel', 'ubuntu', 'debian']
2323
BASE_ARCH = ['x86_64', 'ppc64le', 'aarch64']
2424
DEFAULT_BASE_TAGS = {
25-
'centos': '8',
26-
'rhel': '8',
27-
'debian': '10',
28-
'ubuntu': '20.04',
25+
'centos': {'name': 'quay.io/centos/centos', 'tag': 'stream8'},
26+
'rhel': {'name': 'registry.access.redhat.com/ubi8', 'tag': 'latest'},
27+
'debian': {'name': 'debian', 'tag': '10'},
28+
'ubuntu': {'name': 'ubuntu', 'tag': '20.04'},
2929
}
3030
DISTRO_RELEASE = {
3131
'centos': '8',
@@ -1198,10 +1198,10 @@ def parse(conf, args, usage=None, prog=None,
11981198

11991199
# NOTE(jeffrey4l): set the default base tag based on the
12001200
# base option
1201-
conf.set_default('base_tag', DEFAULT_BASE_TAGS.get(conf.base))
1201+
conf.set_default('base_tag', DEFAULT_BASE_TAGS[conf.base]['tag'])
12021202
prefix = '' if conf.openstack_release == 'master' else 'stable-'
12031203
openstack_branch = '{}{}'.format(prefix, conf.openstack_release)
12041204
conf.set_default('openstack_branch', openstack_branch)
12051205

12061206
if not conf.base_image:
1207-
conf.base_image = conf.base
1207+
conf.base_image = DEFAULT_BASE_TAGS[conf.base]['name']
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
critical:
3+
- |
4+
CentOS Linux 8 (non-Stream) support has been dropped, since
5+
repositories have been removed from CentOS mirrors - see
6+
`announcement <https://www.centos.org/centos-linux-eol/>`_.

0 commit comments

Comments
 (0)