aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2024-09-26 14:30:55 +0200
committerMichal Nasiadka <mnasiadka@gmail.com>2024-09-27 15:57:15 +0000
commitaf3a4bbf608d6469e0d375ee8a7a8bad61360b29 (patch)
tree809637e231824724be7b165dea4b1610daf37916
parent8f0a3b5871d20d31390aabdb5110a89451140720 (diff)
downloadkolla-af3a4bbf608d6469e0d375ee8a7a8bad61360b29.tar.gz
kolla-af3a4bbf608d6469e0d375ee8a7a8bad61360b29.zip
CI: Build aarch64 images on x86
Since aarch64 OpenDev nodes currently have issues that cause builds to time out (and we can't extend over 3 hours since that's OpenDev maximum). Change-Id: I20d8b7b6de007866f73c41272682f4532987c9e7
-rw-r--r--.zuul.d/debian.yaml5
-rw-r--r--tests/playbooks/pre.yml6
-rw-r--r--tests/playbooks/run.yml1
3 files changed, 11 insertions, 1 deletions
diff --git a/.zuul.d/debian.yaml b/.zuul.d/debian.yaml
index 23584d46b..e4f0fe3c4 100644
--- a/.zuul.d/debian.yaml
+++ b/.zuul.d/debian.yaml
@@ -49,8 +49,11 @@
- job:
name: kolla-build-debian-aarch64
parent: kolla-build-debian
- nodeset: kolla-debian-bookworm-aarch64
+ # NOTE(mnasiadka): Switch to aarch64 nodeset when nodes are fixed
+ nodeset: kolla-debian-bookworm
voting: false
+ vars:
+ base_arch: aarch64
- job:
name: kolla-publish-debian-dockerhub
diff --git a/tests/playbooks/pre.yml b/tests/playbooks/pre.yml
index 7e44c87aa..cee184b0a 100644
--- a/tests/playbooks/pre.yml
+++ b/tests/playbooks/pre.yml
@@ -201,3 +201,9 @@
become: true
when:
- container_engine == "podman"
+
+ - name: Run multiarch/qemu-user-static image to support cross-arch build
+ command:
+ cmd: "{{ container_engine }} run --rm --privileged multiarch/qemu-user-static --reset -p yes"
+ become: true
+ when: ansible_facts.architecture != (base_arch | default('x86_64'))
diff --git a/tests/playbooks/run.yml b/tests/playbooks/run.yml
index e21c19f21..78ff3ea2e 100644
--- a/tests/playbooks/run.yml
+++ b/tests/playbooks/run.yml
@@ -10,6 +10,7 @@
logs_dir: "{{ kolla_build_logs_dir }}"
quiet: true
base: "{{ base_distro }}"
+ base_arch: "{{ base_arch | default('x86_64') }}"
engine: "{{ container_engine }}"
template_override: /etc/kolla/template_overrides.j2
# NOTE(yoctozepto): to avoid issues with IPv6 not enabled in the docker daemon