From b859de2bcea797203635cc2602fe2e6ec0d8840d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 14 Jul 2021 13:04:00 +0200 Subject: [PATCH] copr-be-dev: hire the second Power8 hypervisor --- inventory/group_vars/copr_dev_aws | 3 +++ roles/copr/backend/templates/provision/libvirt-new | 7 +++++++ roles/copr/backend/templates/resalloc/pools.yaml | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/inventory/group_vars/copr_dev_aws b/inventory/group_vars/copr_dev_aws index 73c47647af..8e621022f1 100644 --- a/inventory/group_vars/copr_dev_aws +++ b/inventory/group_vars/copr_dev_aws @@ -51,4 +51,7 @@ builders: ppc64le_hypervisor_01: ppc64le: [2, 1, 1] + ppc64le_hypervisor_02: + ppc64le: [2, 1, 1] + rpm_vendor_copr_name: Fedora Copr (devel) diff --git a/roles/copr/backend/templates/provision/libvirt-new b/roles/copr/backend/templates/provision/libvirt-new index 5596f1ebd9..bbc614958f 100755 --- a/roles/copr/backend/templates/provision/libvirt-new +++ b/roles/copr/backend/templates/provision/libvirt-new @@ -61,6 +61,13 @@ def get_hv_identification_from_pool_id(pool_id): ".rdu-cc.fedoraproject.org/system", "ppc64le", ) + if pool_id.startswith("copr_hv_ppc64le_01"): + return ( + 5, + "qemu+ssh://copr@vmhost-p08-copr02" + ".rdu-cc.fedoraproject.org/system", + "ppc64le", + ) raise Exception("can't convert pool_id to hv ID") diff --git a/roles/copr/backend/templates/resalloc/pools.yaml b/roles/copr/backend/templates/resalloc/pools.yaml index d19387a9bb..8cfba1483c 100644 --- a/roles/copr/backend/templates/resalloc/pools.yaml +++ b/roles/copr/backend/templates/resalloc/pools.yaml @@ -88,8 +88,8 @@ copr_hv_x86_64_{{ hv }}_{% if devel %}dev{% else %}prod{% endif %}: {% endif %} {% endfor %} -# x86_64 hypervisors -{% for hv in ["01"] %} +# Power hypervisors +{% for hv in ["01", "02"] %} {% if "ppc64le_hypervisor_" + hv in builders %} copr_hv_ppc64le_{{ hv }}_{% if devel %}dev{% else %}prod{% endif %}: