Merge "Set default qemu settings for RBD"
This commit is contained in:
@@ -491,7 +491,7 @@ nova_qemu_group: kvm
|
|||||||
|
|
||||||
# Define the following variable to drop a replacement
|
# Define the following variable to drop a replacement
|
||||||
# file for /etc/libvirt/qemu.conf
|
# file for /etc/libvirt/qemu.conf
|
||||||
#qemu_conf_dict: {}
|
qemu_conf_dict: {}
|
||||||
|
|
||||||
## Tunable overrides
|
## Tunable overrides
|
||||||
nova_nova_conf_overrides: {}
|
nova_nova_conf_overrides: {}
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
group: "root"
|
group: "root"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
when:
|
when:
|
||||||
- qemu_conf_dict is defined
|
- _nova_qemu_conf | length > 0
|
||||||
or nova_network_type == 'calico'
|
or nova_network_type == 'calico'
|
||||||
notify: Restart libvirt-bin
|
notify: Restart libvirt-bin
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ cgroup_device_acl = [
|
|||||||
]
|
]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if qemu_conf_dict is defined %}
|
|
||||||
{% for key, value in qemu_conf_dict.items() %}
|
{% for key, value in _nova_qemu_conf.items() %}
|
||||||
{{ key }} = {{ value }}
|
{{ key }} = {{ value }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
|
|||||||
@@ -104,3 +104,13 @@ _nova_scheduler_filters: |-
|
|||||||
{% set filters = default_filters %}
|
{% set filters = default_filters %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ filters + nova_scheduler_extra_filters }}
|
{{ filters + nova_scheduler_extra_filters }}
|
||||||
|
|
||||||
|
_qemu_default_conf_dict: |-
|
||||||
|
{% set qemu_dict = {} %}
|
||||||
|
{% if nova_rbd_inuse or nova_cinder_rbd_inuse %}
|
||||||
|
{% set _ = qemu_dict.update({'max_files': '32768'}) %}
|
||||||
|
{% set _ = qemu_dict.update({'max_processes': '131072'}) %}
|
||||||
|
{% endif %}
|
||||||
|
{{ qemu_dict }}
|
||||||
|
|
||||||
|
_nova_qemu_conf: "{{ _qemu_default_conf_dict | combine(qemu_conf_dict) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user