diff --git a/inventory/host_vars/openqa-aarch64-02.qa.fedoraproject.org b/inventory/host_vars/openqa-aarch64-02.qa.fedoraproject.org index 3569f4baa2..976713f10b 100644 --- a/inventory/host_vars/openqa-aarch64-02.qa.fedoraproject.org +++ b/inventory/host_vars/openqa-aarch64-02.qa.fedoraproject.org @@ -30,3 +30,12 @@ tcp_ports: ['20013', '20023', '20033', '20043', '20053', '20063', '20073', '2008 # has an HW RNG, so let's have rngd openqa_rngd: True + +# FIXME this box is suffering from a mysterious bug that prevents VMs +# working properly: +# https://pagure.io/fedora-infrastructure/issue/8750 +# this means all openQA tests run on it fail. We cannot currently work +# out why this is happening, so until we can, we will give it a special +# worker class that prevents it picking up regular jobs, but allows us +# to manually target it with jobs for debugging +openqa_worker_class: aarch64-02-broken diff --git a/roles/openqa/worker/tasks/main.yml b/roles/openqa/worker/tasks/main.yml index 3e0f282aee..9b0cca8c6b 100644 --- a/roles/openqa/worker/tasks/main.yml +++ b/roles/openqa/worker/tasks/main.yml @@ -14,6 +14,8 @@ # - openqa_rngd ## string - if set to any value, rng-tools package will be ## installed and rngd.service enabled/started +# - openqa_worker_class +## string - custom WORKER_CLASS value for workers.ini - name: Install required packages (testing) package: diff --git a/roles/openqa/worker/templates/workers.ini.j2 b/roles/openqa/worker/templates/workers.ini.j2 index 14351e0243..71d753c445 100644 --- a/roles/openqa/worker/templates/workers.ini.j2 +++ b/roles/openqa/worker/templates/workers.ini.j2 @@ -1,6 +1,8 @@ [global] HOST = http://{{ openqa_hostname|default('localhost') }} -{% if openqa_tap is defined and openqa_tap %} +{% if openqa_worker_class is defined %} +WORKER_CLASS = {{ openqa_worker_class }} +{% elif openqa_tap is defined and openqa_tap %} {% if ansible_architecture == 'ppc64' or ansible_architecture == 'ppc64le' %} WORKER_CLASS = tap,qemu_ppc64le,qemu_ppc64 {% elif ansible_architecture == 'aarch64' %}