Skip to content

Commit e66edfd

Browse files
authored
Merge pull request #81 from stackhpc/sync/stable/victoria
Sync upstream stable/victoria
2 parents 9cad10d + 8fe93d7 commit e66edfd

File tree

22 files changed

+284
-40
lines changed

22 files changed

+284
-40
lines changed

.zuul.d/base.yaml

Lines changed: 12 additions & 1 deletion
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:
@@ -110,7 +122,6 @@
110122
- ^tox\.ini$
111123
vars:
112124
publisher: false
113-
ansible_python_interpreter: python3
114125
extra-vars:
115126
kolla_logs_dir: "{{ zuul_output_dir }}/logs/kolla"
116127
kolla_build_logs_dir: "{{ kolla_logs_dir }}/build"

.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: 9 additions & 12 deletions
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 %}
@@ -248,7 +251,9 @@ RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("cen
248251
{% set base_centos_packages = [
249252
'ca-certificates',
250253
'curl',
254+
'dumb-init',
251255
'findutils',
256+
'hostname',
252257
'iproute',
253258
'iscsi-initiator-utils',
254259
'lvm2',
@@ -319,6 +324,7 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
319324
{% set base_apt_packages = [
320325
'apt-utils',
321326
'curl',
327+
'dumb-init',
322328
'gawk',
323329
'iproute2',
324330
'kmod',
@@ -330,8 +336,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
330336
'python3-pip',
331337
'socat',
332338
'sudo',
333-
'tgt']
334-
%}
339+
'tgt'
340+
] %}
335341

336342
{% if base_distro == 'ubuntu' %}
337343
{# 391A9AA2147192839E9DB0315EDB1B62EC4926EA -- Canonical Cloud Archive Signing Key <[email protected]> #}
@@ -416,16 +422,7 @@ COPY httpd_setup.sh /usr/local/bin/kolla_httpd_setup
416422
COPY sudoers /etc/sudoers
417423

418424
{% if use_dumb_init %}
419-
420-
{% block dumb_init_installation %}
421-
422-
RUN curl -sSL https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_{{debian_arch}} -o /usr/local/bin/dumb-init \
423-
&& chmod +x /usr/local/bin/dumb-init
424-
425-
{% endblock %}
426-
427425
ENTRYPOINT ["dumb-init", "--single-child", "--"]
428-
429426
{% endif %}
430427

431428
{% if docker_healthchecks %}

docker/glance/glance-base/Dockerfile.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1515
{% if base_package_type == 'rpm' %}
1616
{% set glance_base_packages = [
1717
'openstack-glance',
18+
'python3-boto3',
1819
'python3-oslo-vmware',
1920
'python3-rados',
2021
'python3-rbd'
2122
] %}
2223
{% elif base_package_type == 'deb' %}
2324
{% set glance_base_packages = [
2425
'glance',
26+
'python3-boto3',
2527
'python3-os-brick',
2628
'python3-oslo.vmware',
2729
'python3-rados',
@@ -55,7 +57,7 @@ ADD glance-base-archive /glance-base-source
5557

5658
{% set glance_base_pip_packages = [
5759
'/glance',
58-
'glance_store[cinder,vmware,swift]'
60+
'glance_store[cinder,vmware,swift,s3]'
5961
] %}
6062

6163
# add missing rootwrap config present in glance_store repo

docker/gnocchi/gnocchi-base/Dockerfile.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ RUN {{ macros.install_pip(gnocchi_base_pip_packages | customizable("pip_packages
5050

5151
{% set gnocchi_base_packages = [
5252
'librados2-devel',
53+
'python3-rados',
5354
] %}
5455

5556
{{ macros.install_packages(gnocchi_base_packages | customizable("packages")) }}
@@ -58,6 +59,7 @@ RUN mkdir -p /var/www/cgi-bin/gnocchi
5859

5960
{% set gnocchi_base_packages = [
6061
'librados-dev',
62+
'python3-rados',
6163
] %}
6264

6365
{{ macros.install_packages(gnocchi_base_packages | customizable("packages")) }}

docker/kolla-toolbox/Dockerfile.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
7272
'virtualenv'
7373
] %}
7474

75+
{% block kolla_toolbox_upper_constraints %}
7576
RUN mkdir -p /requirements \
7677
&& curl -sSL -o /requirements/upper-constraints.txt https://releases.openstack.org/constraints/upper/{{ openstack_release }} \
7778
&& {{ macros.install_pip(kolla_toolbox_pip_virtualenv_packages | customizable("pip_virtualenv_packages")) }} \
7879
&& virtualenv --system-site-packages {{ virtualenv_path }}
80+
{% endblock %}
7981

8082
ENV PATH {{ virtualenv_path }}/bin:$PATH
8183

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 \

docker/monasca/monasca-thresh/Dockerfile.j2

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ RUN cd /monasca-common-source/java \
6666

6767
# Overwrite the script inherited from Storm
6868
COPY extend_start.sh /usr/local/bin/kolla_extend_start
69+
70+
# Add bootstrap script
71+
COPY topology_bootstrap.sh /usr/local/bin/topology_bootstrap
72+
6973
RUN touch /usr/local/bin/kolla_monasca_extend_start \
70-
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_monasca_extend_start
74+
&& chmod 755 /usr/local/bin/kolla_extend_start \
75+
/usr/local/bin/kolla_monasca_extend_start \
76+
/usr/local/bin/topology_bootstrap
7177

7278
{% block monasca_thresh_footer %}{% endblock %}
7379
{% block footer %}{% endblock %}

0 commit comments

Comments
 (0)