Add new parameter NovaSchedulerQueryPlacementForAvailabilityZone

Add new parameter NovaSchedulerQueryPlacementForAvailabilityZone
that allows the scheduler to look up a host aggregate with metadata
key of availability zone set to the value provided by incoming request,
and request result from placement be limited to that aggregate.

Conflicts:
      deployment/nova/nova-scheduler-container-puppet.yaml

Resolved conflicts occured due to missing change
Ic6ef33d9c02be7e87c30626930f9e3d44cb77875

Depends-On: https://review.opendev.org/#/c/731153/
Change-Id: I7aba7e37ff3b919d98cdc64fd4d4eb30da68b0ec
(cherry picked from commit 8d968a213a)
(cherry picked from commit 66e029cc33)
(cherry picked from commit 273d53278b)
This commit is contained in:
Rajesh Tailor 2020-05-15 11:59:42 +05:30
parent e6f08c7e37
commit f5497e16e9
2 changed files with 18 additions and 0 deletions

View File

@ -91,6 +91,14 @@ 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
NovaSchedulerQueryPlacementForAvailabilityZone:
default: false
description: >
This setting allows the scheduler to look up a host aggregate with metadata
key of availability zone set to the value provided by incoming request, and
request result from placement be limited to that aggregate.
type: boolean
conditions: conditions:
nova_scheduler_workers_zero: {equals : [{get_param: NovaSchedulerWorkers}, 0]} nova_scheduler_workers_zero: {equals : [{get_param: NovaSchedulerWorkers}, 0]}
@ -136,6 +144,7 @@ outputs:
nova::scheduler::discover_hosts_in_cells_interval: {get_param: NovaSchedulerDiscoverHostsInCellsInterval} nova::scheduler::discover_hosts_in_cells_interval: {get_param: NovaSchedulerDiscoverHostsInCellsInterval}
nova::scheduler::limit_tenants_to_placement_aggregate: {get_param: NovaSchedulerLimitTenantsToPlacementAggregate} nova::scheduler::limit_tenants_to_placement_aggregate: {get_param: NovaSchedulerLimitTenantsToPlacementAggregate}
nova::scheduler::placement_aggregate_required_for_tenants: {get_param: NovaSchedulerPlacementAggregateRequiredForTenants} nova::scheduler::placement_aggregate_required_for_tenants: {get_param: NovaSchedulerPlacementAggregateRequiredForTenants}
nova::scheduler::query_placement_for_availability_zone: {get_param: NovaSchedulerQueryPlacementForAvailabilityZone}
- -
if: if:
- nova_scheduler_workers_zero - nova_scheduler_workers_zero

View File

@ -0,0 +1,9 @@
---
features:
- |
Add boolean parameter `NovaSchedulerQueryPlacementForAvailabilityZone`
that sets `scheduler/query_placement_for_availability_zone` parameter.
It allows the scheduler to look up a host aggregate with metadata key
of availability zone set to the value provided by incoming request, and
request result from placement be limited to that aggregate.
Default value for NovaSchedulerQueryPlacementForAvailabilityZone is false.