From 473bcb8e42239b44b76e5171f23cacc98b7965c8 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 26 Jul 2019 17:41:09 +0200 Subject: [PATCH] copr: be: disable resalloc on stage All the resources on AARCH64 hosts are tightly calculated; so if stage wastes some resources - devel/production is not able to start as many resources as we expect. --- inventory/group_vars/copr_stg | 1 + roles/copr/backend/templates/resalloc/pools.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inventory/group_vars/copr_stg b/inventory/group_vars/copr_stg index 02fca5b4ab..60c4bf3025 100644 --- a/inventory/group_vars/copr_stg +++ b/inventory/group_vars/copr_stg @@ -1,5 +1,6 @@ --- devel: true +stage: true #_forward-src: "{{ files }}/copr/forward-dev" _forward_src: "forward_dev" diff --git a/roles/copr/backend/templates/resalloc/pools.yaml b/roles/copr/backend/templates/resalloc/pools.yaml index 529687de43..06180161c5 100644 --- a/roles/copr/backend/templates/resalloc/pools.yaml +++ b/roles/copr/backend/templates/resalloc/pools.yaml @@ -22,7 +22,7 @@ aarch64_02_prod: cmd_delete: "/var/lib/resallocserver/resalloc_provision/vm-aarch64-delete" tags: - aarch64 -{% else %} +{% elif not stage %} # Development configuration. On each aarch64 host we have # 2 guests vms of # - 2 VCPUs (default)