95106d2fa1
This adds a new CLI which will iterate all non-cell0 cells looking for instances that (1) have a host, (2) aren't undergoing a task state transition and (3) don't have allocations in placement and try to allocate resources, based on the instance embedded flavor, against the compute node resource provider on which the instance is currently running. This is meant as a way to help migrate CachingScheduler users off the CachingScheduler by first shoring up instance allocations in placement for any instances created after Pike, when the nova-compute resource tracker code stopped creating allocations in placement since the FilterScheduler does it at the time of scheduling (but the CachingScheduler doesn't). This will be useful beyond just getting deployments off the CachingScheduler, however, since operators will be able to use it to fix incorrect allocations resulting from failed operations. There are several TODOs and NOTEs inline about things we could build on top of this or improve, but for now this is the basic idea. Change-Id: Iab67fd56ab4845f8ee19ca36e7353730638efb21 |
||
---|---|---|
.. | ||
api | ||
cells | ||
cmd | ||
common | ||
compute | ||
conductor | ||
conf | ||
console | ||
consoleauth | ||
db | ||
hacking | ||
image | ||
ipv6 | ||
keymgr | ||
locale | ||
network | ||
notifications | ||
objects | ||
pci | ||
policies | ||
privsep | ||
scheduler | ||
servicegroup | ||
tests | ||
virt | ||
vnc | ||
volume | ||
__init__.py | ||
availability_zones.py | ||
baserpc.py | ||
block_device.py | ||
cache_utils.py | ||
config.py | ||
context.py | ||
crypto.py | ||
debugger.py | ||
exception_wrapper.py | ||
exception.py | ||
filters.py | ||
hooks.py | ||
i18n.py | ||
loadables.py | ||
manager.py | ||
policy.py | ||
profiler.py | ||
quota.py | ||
rc_fields.py | ||
rpc.py | ||
safe_utils.py | ||
service_auth.py | ||
service.py | ||
test.py | ||
utils.py | ||
version.py | ||
weights.py | ||
wsgi.py |