copr-be-dev: start Power9 VMs with 4 CPUs
This commit is contained in:
parent
2be85a43eb
commit
41deca1de9
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue