Enable Request Filter for Image Types

This change enables `scheduler/query_placement_for_image_type_support`
by default for all deployments. Setting it causes the scheduler to ask
placement only for compute hosts that support the disk_format of the
image used in the request which is beneficial for example, the libvirt
driver, when using ceph as an ephemeral backend, does not support ``qcow2``
images (without an expensive conversion step).

Change-Id: I6d12a66616cc2cc65e62755e8a54084d65aeae5e
Closes-Bug: #1832738
This commit is contained in:
Piotr Kopec 2019-06-13 18:02:25 +02:00
parent 0f3c4ccb46
commit 37a6aa8599
2 changed files with 16 additions and 0 deletions

View File

@ -75,6 +75,12 @@ parameters:
default: 0
description: Number of workers for Nova Scheduler services.
type: number
NovaSchedulerQueryImageType:
type: boolean
default: true
description: >
This setting causes the scheduler to ask placement only for compute
hosts that support the disk_format of the image used in the request.
conditions:
nova_scheduler_workers_zero: {equals : [{get_param: NovaSchedulerWorkers}, 0]}
@ -118,6 +124,7 @@ outputs:
nova::scheduler::filter::scheduler_default_filters: {get_param: NovaSchedulerDefaultFilters}
nova::scheduler::filter::scheduler_max_attempts: {get_param: NovaSchedulerMaxAttempts}
nova::scheduler::discover_hosts_in_cells_interval: {get_param: NovaSchedulerDiscoverHostsInCellsInterval}
nova::scheduler::query_placement_for_image_type_support: {get_param: NovaSchedulerQueryImageType}
-
if:
- nova_scheduler_workers_zero

View File

@ -0,0 +1,9 @@
---
features:
- |
Parameter `scheduler/query_placement_for_image_type_support` is enabled
by default for all deployments. Setting it causes the scheduler to ask
Placement only for compute hosts that support the `disk_format` of the
image used in the request which is beneficial for example, the libvirt
driver, when using Ceph as an ephemeral backend, does not support `qcow2`
images (without an expensive conversion step).