copr-be-dev: start Power9 VMs with 4 CPUs

This commit is contained in:
Pavel Raiskup 2022-05-16 17:14:17 +02:00
parent 2be85a43eb
commit 41deca1de9

View file

@ -98,9 +98,14 @@ class LibvirtSpawner:
playbook = "{{ provision_directory }}/libvirt-provision.yml"
def __init__(self, resalloc_pool_id, log):
_, self.connection, self.arch = get_hv_identification_from_pool_id(
host_id, self.connection, self.arch = get_hv_identification_from_pool_id(
resalloc_pool_id)
# The Power9 machine has not enough storage to host 2CPU/VM. Let's
# double the quote on CPU (at least for now).
if host_id in [6]:
cpu_count = 4
self.workdir = tempfile.mkdtemp()
self.script_path = os.path.dirname(os.path.realpath(__file__))
self.log = log