Skip to content

Commit 2a9ccf0

Browse files
authored
Merge pull request #142 from stackhpc/upstream/xena-2022-06-13
Synchronise xena with upstream
2 parents f934560 + 1ab4e13 commit 2a9ccf0

32 files changed

+229
-44
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:

.zuul.d/debian.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
experimental:
2121
jobs:
2222
- kolla-build-no-infra-wheels-debian-source
23+
- kolla-ansible-debian-source-ironic:
24+
files: ^docker\/(base|dnsmasq|ironic|ironic-inspector|iscsid|openstack-base)\/.*
2325

2426
- job:
2527
name: kolla-build-debian-source

docker/base/Dockerfile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
322322
] %}
323323

324324
{% set base_apt_keys = [
325-
{'name': 'erlang', 'keyid': 'F77F1EDA57EBB1CC'},
326-
{'name': 'rabbitmq', 'keyid': 'F6609E60DC62814E'},
325+
{'name': 'erlang', 'keyid': 'E495BB49CC4BBE5B'},
326+
{'name': 'rabbitmq', 'keyid': '9F4587F226208342'},
327327
{'name': 'haproxy', 'keyid': 'CFFB779AADC995E4F350A060505D97A41C61B9CD'},
328328
] %}
329329

docker/base/apt_preferences.debian

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ Pin-Priority: -1000
2222
Package: openvswitch* python3-openvswitch ovn-*
2323
Pin: release n=bullseye-backports
2424
Pin-Priority: 1024
25+
26+
# NOTE(hrw): Debian OpenStack Team repo has some backports we do not want
27+
Package: git*
28+
Pin: release n=bullseye
29+
Pin-Priority: 1024

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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ RUN apt-get update && \
4040
{%- else %}
4141
RUN echo " " && \
4242
{%- endif %}
43-
bash -c './scripts/env-setup.sh && \
43+
bash -c 'TOX_CONSTRAINTS_FILE=/requirements/upper-constraints.txt ./scripts/env-setup.sh && \
4444
ansible-playbook -vvvv -i /bifrost/playbooks/inventory/target /bifrost/playbooks/install.yaml \
45+
{%- if base_distro == 'centos' %}
46+
{# NOTE(mmalchuk): since DIB drop Python3.6 support we need to build DIB from #}
47+
{# the latest supported stable tag until we move to CentOS9 #}
48+
-e dib_git_branch="3.21.1" \
49+
{%- endif %}
4550
-e @/tmp/build_arg.yml && \
4651
{%- if base_package_type == 'deb' %}
4752
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-
python3 -m pip --no-cache-dir install --upgrade{{ ' ' }}
37+
SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pip --no-cache-dir install --upgrade{{ ' ' }}
3838
{%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%}
3939
{{ packages | join(' ') }}
4040
{%- else -%}

0 commit comments

Comments
 (0)