Merge "Add NovaLibvirtMaxQueues role parameter to set [libvirt]/max_queues" into stable/ussuri
This commit is contained in:
commit
e9f46a27be
|
@ -515,6 +515,17 @@ parameters:
|
||||||
ownership and selinux context.
|
ownership and selinux context.
|
||||||
default:
|
default:
|
||||||
- 'triliovault-mounts'
|
- 'triliovault-mounts'
|
||||||
|
NovaLibvirtMaxQueues:
|
||||||
|
type: number
|
||||||
|
description: >
|
||||||
|
Add parameter to configure the libvirt max_queues. The maximum number
|
||||||
|
of virtio queue pairs that can be enabled when creating a multiqueue guest.
|
||||||
|
The number of virtio queues allocated will be the lesser of the CPUs
|
||||||
|
requested by the guest and the max value defined.
|
||||||
|
Default 0 corresponds to not set
|
||||||
|
default: 0
|
||||||
|
tags:
|
||||||
|
- role_specific
|
||||||
|
|
||||||
# DEPRECATED: the following options are deprecated and are currently maintained
|
# DEPRECATED: the following options are deprecated and are currently maintained
|
||||||
# for backwards compatibility. They will be removed in future release.
|
# for backwards compatibility. They will be removed in future release.
|
||||||
|
@ -706,6 +717,8 @@ resources:
|
||||||
NovaDisableImageDownloadToRbd: {get_param: NovaDisableImageDownloadToRbd}
|
NovaDisableImageDownloadToRbd: {get_param: NovaDisableImageDownloadToRbd}
|
||||||
NovaLiveMigrationPermitPostCopy: {get_param: NovaLiveMigrationPermitPostCopy}
|
NovaLiveMigrationPermitPostCopy: {get_param: NovaLiveMigrationPermitPostCopy}
|
||||||
NovaLiveMigrationPermitAutoConverge: {get_param: NovaLiveMigrationPermitAutoConverge}
|
NovaLiveMigrationPermitAutoConverge: {get_param: NovaLiveMigrationPermitAutoConverge}
|
||||||
|
NovaLibvirtMaxQueues: {get_param: NovaLibvirtMaxQueues}
|
||||||
|
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
enable_instance_ha: {equals: [{get_param: EnableInstanceHA}, true]}
|
enable_instance_ha: {equals: [{get_param: EnableInstanceHA}, true]}
|
||||||
|
@ -761,6 +774,12 @@ conditions:
|
||||||
- equals: [{get_param: [RoleParameters, NovaLiveMigrationPermitAutoConverge]}, '']
|
- equals: [{get_param: [RoleParameters, NovaLiveMigrationPermitAutoConverge]}, '']
|
||||||
- equals: [{get_param: NovaLiveMigrationPermitAutoConverge}, '']
|
- equals: [{get_param: NovaLiveMigrationPermitAutoConverge}, '']
|
||||||
|
|
||||||
|
nova_libvirt_max_queues_set:
|
||||||
|
not:
|
||||||
|
or:
|
||||||
|
- equals: [{get_param: NovaLibvirtMaxQueues}, 0]
|
||||||
|
- equals: [{get_param: [RoleParameters, NovaLibvirtMaxQueues]}, 0]
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
description: Role data for the Nova Compute service.
|
description: Role data for the Nova Compute service.
|
||||||
|
@ -877,6 +896,11 @@ outputs:
|
||||||
- libvirt_file_backed_memory_enabled
|
- libvirt_file_backed_memory_enabled
|
||||||
- '1.0'
|
- '1.0'
|
||||||
- {get_attr: [RoleParametersValue, value, 'nova::ram_allocation_ratio']}
|
- {get_attr: [RoleParametersValue, value, 'nova::ram_allocation_ratio']}
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- nova_libvirt_max_queues_set
|
||||||
|
- nova::compute::libvirt::max_queues: {get_attr: [RoleParametersValue, value, nova_libvirt_max_queues]}
|
||||||
|
- {}
|
||||||
service_config_settings:
|
service_config_settings:
|
||||||
rsyslog:
|
rsyslog:
|
||||||
tripleo_logging_sources_nova_compute:
|
tripleo_logging_sources_nova_compute:
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add NovaLibvirtMaxQueues role parameter to set [libvirt]/max_queues in
|
||||||
|
nova.conf of the compute. Default 0 corresponds to not set meaning the
|
||||||
|
legacy limits based on the reported kernel major version will be used.
|
Loading…
Reference in New Issue