nova/nova
Matt Riedemann 95106d2fa1 Add nova-manage placement heal_allocations CLI
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
2018-06-01 18:45:10 -04:00
..
api Placement: allow to set reserved value equal to total for inventory 2018-05-18 23:04:27 +00:00
cells Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
cmd Add nova-manage placement heal_allocations CLI 2018-06-01 18:45:10 -04:00
common
compute ProviderTree.has_inventory_changed for new fields 2018-05-18 16:41:14 -05:00
conductor Add user_id to RequestSpec 2018-05-01 11:08:43 -04:00
conf PowerVM Driver: Localdisk 2018-05-18 21:38:09 +00:00
console Merge "Convert xenapi's xvp console to processutils." 2018-05-09 04:57:55 +00:00
consoleauth
db Expose instance_get_all_uuids_by_host() from DB API and use it 2018-05-18 14:36:12 -07:00
hacking Fix N332 api_version decorator hacking check 2018-03-29 10:27:30 -05:00
image Workaround glanceclient bug when CONF.glance.api_servers not set 2018-02-08 09:06:48 -05:00
ipv6
keymgr
locale Imported Translations from Zanata 2018-04-11 06:17:52 +00:00
network Move set_vf_interface_vlan to the new utility module. 2018-05-10 13:56:27 -04:00
notifications Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
objects Make instance.refresh() avoid recursion better 2018-05-18 14:36:12 -07:00
pci remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
policies Merge "Add host/hostId to instance action events API" 2018-04-26 20:42:07 +00:00
privsep Merge "Move image conversion to privsep." 2018-05-16 14:45:34 +00:00
scheduler Merge "Granular requests to get_allocation_candidates" 2018-05-19 05:22:25 +00:00
servicegroup
tests Add nova-manage placement heal_allocations CLI 2018-06-01 18:45:10 -04:00
virt PowerVM Driver: Localdisk 2018-05-18 21:38:09 +00:00
vnc
volume Log a more useful error when cinder auth isn't configured 2018-04-06 14:52:13 -04:00
__init__.py
availability_zones.py
baserpc.py
block_device.py Add uuid column to BlockDeviceMapping 2017-12-17 14:28:35 +00:00
cache_utils.py
config.py
context.py Remove RequestContext.instance_lock_checked 2018-04-11 11:46:19 -04:00
crypto.py Convert certificate generation to processutils. 2018-05-02 19:18:41 +10:00
debugger.py
exception_wrapper.py
exception.py Add nova-manage placement heal_allocations CLI 2018-06-01 18:45:10 -04:00
filters.py
hooks.py
i18n.py correct referenced url in comments 2018-01-18 09:16:37 +08:00
loadables.py
manager.py conf: Remove 'db_driver' config opt 2018-03-16 17:23:16 +00:00
policy.py
profiler.py
quota.py Remove unnecessary variables 2018-02-08 10:15:53 +09:00
rc_fields.py Make ResourceClass.normalize_name handle sharp S 2018-04-10 12:24:40 -05:00
rpc.py Remove useless run_periodic_tasks call in ClientRouter 2018-03-20 23:54:21 +00:00
safe_utils.py
service_auth.py Fix NoneType error when [service_user] is misconfigured 2017-11-28 12:22:30 -06:00
service.py Deprecate running API services under eventlet 2018-05-16 03:48:32 +00:00
test.py Add nova-manage placement heal_allocations CLI 2018-06-01 18:45:10 -04:00
utils.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
version.py
weights.py
wsgi.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00