From a6b9c5392d5fd271a52454ab38b087a5e9e177f3 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 13 Mar 2020 16:56:14 -0700 Subject: [PATCH] openqa/worker: disable aarch64-02 with a special worker class openqa-aarch64-02.qa is broken in some very mysterious way: https://pagure.io/fedora-infrastructure/issue/8750 until we can figure that out, this should prevent it picking up normal jobs, but let us manually target a job at it whenever we need to for debugging. Signed-off-by: Adam Williamson --- .../host_vars/openqa-aarch64-02.qa.fedoraproject.org | 9 +++++++++ roles/openqa/worker/tasks/main.yml | 2 ++ roles/openqa/worker/templates/workers.ini.j2 | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) 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' %}