Merge "Add new parameter NovaSchedulerEnableIsolatedAggregateFiltering"

This commit is contained in:
Zuul 2020-04-13 23:05:30 +00:00 committed by Gerrit Code Review
commit 3a28fa3629
2 changed files with 24 additions and 1 deletions

View File

@ -97,6 +97,16 @@ parameters:
If aggregates are used to limit some tenants but not all, then this should be If aggregates are used to limit some tenants but not all, then this should be
False. If all tenants should be confined via aggregate, then this should be True. False. If all tenants should be confined via aggregate, then this should be True.
type: boolean type: boolean
NovaSchedulerEnableIsolatedAggregateFiltering:
default: false
description: >
This setting allows the scheduler to restrict hosts in aggregates based on
matching required traits in the aggregate metadata and the instance flavor/image.
If an aggregate is configured with a property with key trait:$TRAIT_NAME and value
required, the instance flavor extra_specs and/or image metadata must also contain
trait:$TRAIT_NAME=required to be eligible to be scheduled to hosts in that aggregate.
type: boolean
conditions: conditions:
nova_scheduler_workers_zero: {equals : [{get_param: NovaSchedulerWorkers}, 0]} nova_scheduler_workers_zero: {equals : [{get_param: NovaSchedulerWorkers}, 0]}
@ -142,7 +152,8 @@ outputs:
nova::scheduler::discover_hosts_in_cells_interval: {get_param: NovaSchedulerDiscoverHostsInCellsInterval} nova::scheduler::discover_hosts_in_cells_interval: {get_param: NovaSchedulerDiscoverHostsInCellsInterval}
nova::scheduler::query_placement_for_image_type_support: {get_param: NovaSchedulerQueryImageType} nova::scheduler::query_placement_for_image_type_support: {get_param: NovaSchedulerQueryImageType}
nova::scheduler::limit_tenants_to_placement_aggregate: {get_param: NovaSchedulerLimitTenantsToPlacementAggregate} nova::scheduler::limit_tenants_to_placement_aggregate: {get_param: NovaSchedulerLimitTenantsToPlacementAggregate}
nova::schedule::placement_aggregate_required_for_tenants: {get_param: NovaSchedulePlacementAggregateRequiredForTenants} nova::scheduler::placement_aggregate_required_for_tenants: {get_param: NovaSchedulePlacementAggregateRequiredForTenants}
nova::scheduler::enable_isolated_aggregate_filtering: {get_param: NovaSchedulerEnableIsolatedAggregateFiltering}
- -
if: if:
- nova_scheduler_workers_zero - nova_scheduler_workers_zero

View File

@ -0,0 +1,12 @@
---
features:
- |
Add boolean parameter `NovaSchedulerEnableIsolatedAggregateFiltering`
which allows to set `scheduler/enable_isolated_aggregate_filtering`
parameter. This configures scheduler to restrict hosts in aggregates based
on matching required traits in the aggregate metadata and the instance
flavor/image. If an aggregate is configured with a property with key
trait:$TRAIT_NAME and value required, the instance flavor extra_specs
and/or image metadata must also contain trait:$TRAIT_NAME=required to
be eligible to be scheduled to hosts in that aggregate.
Default value for NovaSchedulerEnableIsolatedAggregateFiltering is False.