Placement request filter behaves differently with AggregateMultiTenancyIsolation

Bug #1893143 reported by Shi Yan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Undecided
Unassigned

Bug Description

Description
===========

When enabling flag limit_tenants_to_placement_aggregate, we found the scheduling results will be different with existing AggregateMultiTenancyIsolation scheduler filter.

Steps to reproduce
==================

Consider the below scenario, we have defined two aggregates:
Aggr1 (without define any metadata)
Aggr2 (define metadata filter_tenant_id to include our working projects)

So for the old AggregateMultiTenancyIsolation scheduler filter, hosts in *both Aggr* will be considered for the instance launching if the incoming requests are from our working projects.
But if we enable limit_tenants_to_placement_aggregate, only Aggr2 will be sent to placement for the allocation candidates query. Then the following scheduling will only consider the hosts in *Aggr2*.

Such behavior is aligned with the code does now (nova/scheduler/request_filter.py : require_tenant_aggregate) but the document does not state such difference clearly, or maybe such placement req filter behavior needs to change?

== extracted from the doc about the placement req filter ===
This setting causes the scheduler to look up a host aggregate with the metadata key of filter_tenant_id set to the project of an incoming request, and request results from placement be limited to that aggregate. Multiple tenants may be added to a single aggregate by appending a serial number to the key, such as filter_tenant_id:123.

Shi Yan (yanshi-403)
description: updated
summary: - placement request filter behaves different with
+ Placement request filter behaves differently with
AggregateMultiTenancyIsolation
Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

This doc feels relevant even if it talks about the scheduler.enable_isolated_aggregate_filtering: https://docs.openstack.org/nova/latest/reference/isolate-aggregates.html

I think the observed behavior is correct and the documentation could be improved.

Changed in nova:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.