Commit 0adc38b3 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix "kvm: Increase default VM parameters to match nowadays requirement"

There was missing change in the default value to calculate default maximum
amount of parameters.

This fixes commit 2e6ccd02.
parent 9450bb34
Pipeline #18326 failed with stage
in 0 seconds
......@@ -23,7 +23,7 @@ md5sum = f902dd10cb052ac262a4a96b9362b3a3
[template-kvm-cluster]
filename = instance-kvm-cluster.cfg.jinja2.in
md5sum = dfc7afa680a8900f6129196c28fe067c
md5sum = 67901b7a97b324aa36851d8e8b43cad6
[template-kvm-resilient]
filename = instance-kvm-resilient.cfg.jinja2
......
......@@ -85,7 +85,7 @@ config-disk-size = {{ dumps(kvm_parameter_dict.get('disk-size', 40)) }}
config-disk-type = {{ dumps(kvm_parameter_dict.get('disk-type', 'virtio')) }}
config-disk-format = {{ dumps(kvm_parameter_dict.get('disk-format', 'qcow2')) }}
config-cpu-count = {{ dumps(kvm_parameter_dict.get('cpu-count', 2)) }}
config-cpu-max-count = {{ dumps(kvm_parameter_dict.get('cpu-max-count', int(kvm_parameter_dict.get('cpu-count', 1)) + 1)) }}
config-cpu-max-count = {{ dumps(kvm_parameter_dict.get('cpu-max-count', int(kvm_parameter_dict.get('cpu-count', 2)) + 1)) }}
config-network-adapter = {{ dumps(kvm_parameter_dict.get('network-adapter', 'virtio-net-pci')) }}
{{ setconfig('numa', kvm_parameter_dict.get('numa', '')) }}
{{ setconfig('machine-options', kvm_parameter_dict.get('machine-options', '')) }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment