nova/nova/virt
Matt Riedemann 7ce265ebc5 Convert driver supported capabilities to compute node provider traits
This builds on the ProviderTree work in the compute driver and
resource tracker to take the supported capabilities from a driver and
turn those into standard traits on the compute node resource provider.

This is a simple way to expose in a REST API (Placement in this case)
what a compute node, via its driver, supports.

This is also something easy that we can do in lieu of a full-blown
compute capabilities REST API in nova, which we've talked about for
years but never actually done anything about.

We can later build on this to add a request filter which will mark
certain types of boot-from-volume requests as requiring specific
capabilities, like for volume multiattach and tagged devices.

Any traits provided by the driver will be automatically added during
startup or a periodic update of a compute node:

    https://pasteboard.co/I3iqqNm.jpg

Similarly any traits later retracted by the driver will be
automatically removed.

However any traits associated with capabilities which are
inappropriately added to or removed from the resource provider by the
admin via the Placement API will not be reverted until the compute
service's provider cache is reset.

The new call graph is shown in this sequence diagram:

    https://pasteboard.co/I25qICd.png

Co-Authored-By: Adam Spiers <aspiers@suse.com>

Related to blueprint placement-req-filter
Related to blueprint expose-host-capabilities

Change-Id: I15364d37fb7426f4eec00ca4eaf99bec50e964b6
2019-02-28 23:28:19 +00:00
..
disk Remove utils.execute() from virt.disk.api. 2018-12-12 09:38:20 +11:00
hyperv unused images are always deleted (add to in-tree hper-v code) 2019-01-18 23:18:25 -05:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Merge "ironic: partition compute services by conductor group" 2019-02-28 18:18:46 +00:00
libvirt Merge "Use the correct mdev allocated from the pGPU" 2019-02-28 06:55:43 +00:00
powervm Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
vmwareapi Merge "vmware:add support for the hw_video_ram image property" 2019-02-23 00:43:27 +00:00
xenapi Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
zvm Fix missing print format error 2018-07-20 16:29:53 +08:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
arch.py Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
block_device.py Add compute version 36 to support ``volume_type`` 2018-10-11 16:00:48 -04:00
configdrive.py Convert configdrive to use processutils. 2018-05-02 21:42:05 +10:00
driver.py Convert driver supported capabilities to compute node provider traits 2019-02-28 23:28:19 +00:00
event.py Port binding based on events during live migration 2018-07-19 09:09:55 -04:00
fake.py Convert driver supported capabilities to compute node provider traits 2019-02-28 23:28:19 +00:00
firewall.py Merge "Remove translation of log messages" 2017-06-20 21:16:49 +00:00
hardware.py Use math.gcd starting with python 3.5 2019-02-13 11:49:36 -05:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py Remove the final user of utils.execute() from virt.images 2018-12-12 09:38:20 +11:00
interfaces.template
netutils.py libvirt: add vf_trusted field for network metadata 2018-05-30 15:11:59 -04:00
osinfo.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py