aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-04-09 16:27:11 +0200
committerMark Goddard <mark@stackhpc.com>2020-04-16 09:29:07 +0000
commit3d653038dc72fa344ddb34e306fb52e2a75c6579 (patch)
tree8a41e0984c28dc972fbd596d07cfe9dbc7b350b4 /tests
parentcee03f4b00b86ef4a7b893e5047506097b5c067f (diff)
downloadkolla-ansible-3d653038dc72fa344ddb34e306fb52e2a75c6579.tar.gz
kolla-ansible-3d653038dc72fa344ddb34e306fb52e2a75c6579.zip
CI: do not build images on aarch64
We publish those images for a while. Change-Id: Ifc157b43e87e4f77a1c70d98343bd0ef9cc0de79
Diffstat (limited to 'tests')
-rw-r--r--tests/run.yml9
-rw-r--r--tests/templates/globals-default.j23
2 files changed, 5 insertions, 7 deletions
diff --git a/tests/run.yml b/tests/run.yml
index 78eca7713..e1d13b5cd 100644
--- a/tests/run.yml
+++ b/tests/run.yml
@@ -28,6 +28,7 @@
# TODO(mgoddard): Remove when previous_release is ussuri.
playbook_python_version: "{{ '2' if is_upgrade and previous_release == 'train' and not is_centos8 else '3' }}"
upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt"
+ docker_image_tag_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
- name: Install xfsprogs package for Swift filesystems
become: true
@@ -54,12 +55,6 @@
- item.branch == zuul.branch
with_items: "{{ zuul['items'] }}"
- - name: enable building images on AArch64
- set_fact:
- need_build_image: true
- when:
- - ansible_architecture == 'aarch64'
-
# NOTE(yoctozepto): required to template template_overrides.j2 for Zuul
- name: Include kolla Zuul vars if building new images
include_vars:
@@ -262,7 +257,7 @@
- name: Set facts for actions
set_fact:
# NOTE(yoctozepto): no support for upgrades for now
- docker_image_tag: "{{ build_image_tag if need_build_image else zuul.branch | basename }}"
+ docker_image_tag: "{{ build_image_tag if need_build_image else (zuul.branch | basename) ~ docker_image_tag_suffix }}"
docker_image_prefix: "{{ 'primary:4000/lokolla/' if need_build_image else 'kolla/' }}"
# NOTE(mgoddard): We are using the script module here and later to ensure
diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2
index 3b0ac0239..c7b6877a1 100644
--- a/tests/templates/globals-default.j2
+++ b/tests/templates/globals-default.j2
@@ -47,6 +47,9 @@ openstack_tag: "{{ build_image_tag }}"
{% else %}
# use docker hub images
docker_namespace: "kolla"
+{% if docker_image_tag_suffix %}
+openstack_tag_suffix: "{{ docker_image_tag_suffix }}"
+{% endif %}
{% if need_build_image and is_previous_release %}
# NOTE(mgoddard): Ensure that the insecure local registry is trusted, since it
# will be the source of images during the upgrade.