scheduler affinity doesn't work with multiple cells
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
melanie witt | ||
Pike |
Fix Committed
|
High
|
melanie witt | ||
Queens |
Fix Committed
|
High
|
melanie witt | ||
Rocky |
Fix Committed
|
Undecided
|
melanie witt |
Bug Description
I happened upon this while hacking on my WIP CellDatabases fixture patch.
Some of the nova/tests/
This makes the ServerGroup[
This is the code that populates the RequestSpec.
lazy-load on first access:
nova/objects/
def obj_load_attr(self, attrname):
...
self.hosts = self.get_hosts()
...
@base.remotable
def get_hosts(self, exclude=None):
"""Get a list of hosts for non-deleted instances in the group
This method allows you to get a list of the hosts where instances in
this group are currently running. There's also an option to exclude
certain instance UUIDs from this calculation.
"""
if exclude:
filters = {'uuid': filter_uuids, 'deleted': False}
instances = objects.
return list(set(
description: | updated |
tags: | removed: performance |
summary: |
- database query via lazy-load in ServerGroup(Anti|)AffinityFilter + scheduler affinity doesn't work with multiple cells |
description: | updated |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
status: | In Progress → Won't Fix |
status: | Won't Fix → In Progress |
Fix proposed to branch: master /review. openstack. org/540258
Review: https:/