Skip to content

Commit 8388d80

Browse files
authored
Merge pull request #140 from stackhpc/upstream/wallaby-2022-06-13
Synchronise wallaby with upstream
2 parents 7ce3c90 + 836e594 commit 8388d80

23 files changed

+152
-47
lines changed

.zuul.d/base.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
extra-vars:
114114
kolla_logs_dir: "{{ zuul_output_dir }}/logs/kolla"
115115
kolla_build_logs_dir: "{{ kolla_logs_dir }}/build"
116-
kolla_work_dir: "{{ kolla_logs_dir }}"
117116
virtualenv_path: "/tmp/kolla-virtualenv"
118117

119118
- job:

docker/base/Dockerfile.j2

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
358358
{# 901F9177AB97ACBE -- Treasure Data, Inc (Treasure Agent Official Signing key) <[email protected]> #}
359359
{# A20F259AEB9C94BB -- Sensuapp (Freight) <[email protected]> #}
360360
{# F1656F24C74CD1D8 -- MariaDB Signing Key <[email protected]> #}
361-
{# F77F1EDA57EBB1CC -- Launchpad RabbitMQ Erlang PPA key #}
362-
{# F6609E60DC62814E -- PackageCloud RabbitMQ repository key #}
361+
{# E495BB49CC4BBE5B -- Cloudsmith RabbitMQ Erlang repository key #}
362+
{# 9F4587F226208342 -- Cloudsmith RabbitMQ repository key #}
363363
{% set base_apt_keys = [
364364
'391A9AA2147192839E9DB0315EDB1B62EC4926EA',
365365
'46095ACC8548582C1A2699A9D27D666CD88E42B4',
@@ -369,8 +369,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
369369
'901F9177AB97ACBE',
370370
'A20F259AEB9C94BB',
371371
'F1656F24C74CD1D8',
372-
'F77F1EDA57EBB1CC',
373-
'F6609E60DC62814E',
372+
'E495BB49CC4BBE5B',
373+
'9F4587F226208342',
374374
] %}
375375
{% set base_remote_apt_keys = [
376376
'https://packages.grafana.com/gpg.key',
@@ -380,8 +380,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
380380
{% set base_apt_keys = [
381381
'46095ACC8548582C1A2699A9D27D666CD88E42B4',
382382
'F1656F24C74CD1D8',
383-
'F77F1EDA57EBB1CC',
384-
'F6609E60DC62814E',
383+
'E495BB49CC4BBE5B',
384+
'9F4587F226208342',
385385
] %}
386386
{% set base_remote_apt_keys = [
387387
'https://download.docker.com/linux/debian/gpg',

docker/base/healthcheck_curl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
: ${HEALTHCHECK_CURL_OUTPUT:='/dev/null'}
66

77
export NSS_SDB_USE_CACHE=no
8-
curl -g -k -q -s -S --fail -o "${HEALTHCHECK_CURL_OUTPUT}" \
8+
curl -q -g -k -s -S --fail -o "${HEALTHCHECK_CURL_OUTPUT}" \
99
--max-time "${HEALTHCHECK_CURL_MAX_TIME}" \
1010
--user-agent "${HEALTHCHECK_CURL_USER_AGENT}" \
1111
--write-out "${HEALTHCHECK_CURL_WRITE_OUT}" \

docker/base/set_configs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def _set_properties(self, source, dest):
120120
self._set_properties_from_conf(dest)
121121

122122
def _set_properties_from_file(self, source, dest):
123+
LOG.info('Copying permissions from %s onto %s', source, dest)
123124
shutil.copystat(source, dest)
124125
stat = os.stat(source)
125126
os.chown(dest, stat.st_uid, stat.st_gid)

docker/bifrost/bifrost-base/Dockerfile.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ RUN echo " " && \
5151
{%- endif %}
5252
bash -c './scripts/env-setup.sh && \
5353
ansible-playbook -vvvv -i /bifrost/playbooks/inventory/target /bifrost/playbooks/install.yaml \
54+
{%- if base_distro == 'centos' %}
55+
{# NOTE(mmalchuk): since DIB drop Python3.6 support we need to build DIB from #}
56+
{# the latest supported stable tag until we move to CentOS9 #}
57+
-e dib_git_branch="3.21.1" \
58+
{%- endif %}
5459
-e @/tmp/build_arg.yml && \
5560
{%- if base_package_type == 'deb' %}
5661
apt-get clean && rm -rf /var/lib/apt/lists/*'

docker/cloudkitty/cloudkitty-api/Dockerfile.j2

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1313
{% set cloudkitty_api_packages = [
1414
'openstack-cloudkitty-api'
1515
] %}
16-
{{ macros.install_packages(cloudkitty_api_packages | customizable("packages")) }}
17-
1816
{% elif base_package_type == 'deb' %}
1917

2018
{% set cloudkitty_api_packages = [
@@ -23,12 +21,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
2321

2422
{% endif %}
2523
{% elif install_type == 'source' %}
26-
2724
{% set cloudkitty_api_packages = [
2825
] %}
29-
{{ macros.install_packages(cloudkitty_api_packages | customizable("packages")) }}
3026
{% endif %}
3127

28+
{{ macros.install_packages(cloudkitty_api_packages | customizable("packages")) }}
29+
3230
COPY extend_start.sh /usr/local/bin/kolla_cloudkitty_extend_start
3331
RUN chmod 755 /usr/local/bin/kolla_cloudkitty_extend_start
3432

docker/elasticsearch/elasticsearch/Dockerfile.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1212
{{ macros.enable_extra_repos(['elasticsearch']) }}
1313

1414
{% if base_package_type == 'rpm' %}
15+
16+
# NOTE(hrw): post-install script of elasticsearch fails when trying to
17+
# install elasticsearch and java together.
18+
{{ macros.install_packages(['java-11-openjdk-headless']) }}
19+
1520
{% set elasticsearch_packages = [
16-
'java-11-openjdk-headless',
1721
'elasticsearch-oss',
1822
] %}
1923

docker/macros.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
{% macro install_pip(packages, constraints = true) %}
3636
{%- if packages is sequence and packages|length > 0 -%}
37-
python{{ distro_python_version }} -m pip --no-cache-dir install --upgrade{{ ' ' }}
37+
SETUPTOOLS_USE_DISTUTILS=stdlib python{{ distro_python_version }} -m pip --no-cache-dir install --upgrade{{ ' ' }}
3838
{%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%}
3939
{{ packages | join(' ') }}
4040
{%- else -%}

docker/masakari/masakari-monitors/Dockerfile.j2

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
2020
{% elif base_package_type == 'deb' %}
2121

2222
{% set masakari_base_packages = [
23+
'libsasl2-modules-gssapi-mit',
2324
'masakari-host-monitor',
2425
'masakari-instance-monitor',
2526
'masakari-introspective-instance-monitor',
2627
'masakari-process-monitor',
28+
'sasl2-bin',
2729
] %}
2830

2931
{% endif %}
@@ -35,16 +37,20 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
3537
{% if base_package_type == 'rpm' %}
3638

3739
{% set masakari_monitors_packages = [
38-
'libvirt-devel',
40+
'cyrus-sasl-md5',
41+
'cyrus-sasl-scram',
42+
'python3-libvirt',
3943
'pacemaker-cli',
4044
'tcpdump',
4145
] %}
4246

4347
{% elif base_package_type == 'deb' %}
4448

4549
{% set masakari_monitors_packages = [
46-
'libvirt-dev',
50+
'libsasl2-modules-gssapi-mit',
51+
'python3-libvirt',
4752
'pacemaker-cli-utils',
53+
'sasl2-bin',
4854
'tcpdump',
4955
] %}
5056

@@ -58,7 +64,9 @@ ADD masakari-monitors-archive /masakari-monitors-source
5864
'/masakari-monitors'
5965
] %}
6066

67+
# NOTE(hrw): distros may provide other version of libvirt
6168
RUN ln -s masakari-monitors-source/* masakari-monitors \
69+
&& sed -i -e "/^libvirt-python/d" /requirements/upper-constraints.txt \
6270
&& {{ macros.install_pip(masakari_monitors_pip_packages | customizable("pip_packages")) }} \
6371
&& mkdir -p /etc/masakari-monitors \
6472
&& chown -R masakari: /etc/masakari-monitors

kolla/common/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@
247247
cfg.BoolOpt('summary', default=True,
248248
help='Show summary at the end of build'),
249249
cfg.BoolOpt('infra-rename', default=False,
250-
help='Rename infrastructure images to infra')
250+
help='Rename infrastructure images to infra'),
251+
cfg.StrOpt('repos-yaml', default='',
252+
help='Path to alternative repos.yaml file'),
251253
]
252254

253255
_BASE_OPTS = [

0 commit comments

Comments
 (0)