nova/nova/compute
Eric Fried a79d3d546b Always trait the compute node RP with COMPUTE_NODE
We have at least one use case [1] for identifying resource providers
which represent compute nodes. There are a few ways we could do that
hackishly (e.g. [2], [3]) but the clean way is to have nova-compute mark
the provider with a trait, since nova-compute knows which one it is
anyway.

This commit uses the COMPUTE_NODE trait for this purpose, and bumps the
os-traits requirement to 1.1.0 where it is introduced.

Arguably this is a no-op until something starts using it, but a release
note is added anyway warning that all compute nodes should be upgraded
to ussuri (or the trait added manually) for the trait to be useful.

[1] https://review.opendev.org/#/c/670112/7/nova/cmd/manage.py@2921
[2] Assume a provider with a certain resource class, like MEMORY_MB, is
always a compute node. This is not necessarily future-proof (maybe all
MEMORY_MB will someday reside on NUMA node providers; similar for other
resource classes) and isn't necessarily true in all cases today anyway
(ironic nodes don't have MEMORY_MB inventory) and there's also currently
no easy way to query for that (GET /resource_providers?MEMORY_MB:1 won't
return "full" providers, and you can't ask for :0).
[3] Assume a root provider without the MISC_SHARES_VIA_AGGREGATE trait
is a compute node. This assumes you're only using placement for nova-ish
things.

Change-Id: I4cb9cbe1e02c3f6c6148f73a38d10e8db7e61b1a
2019-10-21 11:33:58 -05:00
..
monitors hacking: Resolve W503 (line break occurred before a binary operator) 2019-06-24 14:24:06 -05:00
__init__.py Remove nova.compute.*API() shims 2019-06-12 16:09:46 +01:00
api.py Cache image GETs for multi-create/multi-BDM requests 2019-10-09 11:52:33 -04:00
build_results.py Compute Add build_instance hook in compute manager 2014-12-04 10:12:00 -05:00
claims.py Introduce live_migration_claim() 2019-09-03 12:10:40 -04:00
flavors.py Remove deprecated 'default_flavor' config option 2019-04-30 13:01:40 +00:00
instance_actions.py Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
instance_list.py Plumbing for ignoring list_records_by_skipping_down_cells 2019-02-08 16:28:28 -05:00
manager.py Add prep_snapshot_based_resize_at_dest compute method 2019-10-14 11:06:30 -04:00
migration_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
multi_cell_list.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
power_state.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00
provider_tree.py Add resources dict into _Provider 2019-09-13 08:50:35 +00:00
resource_tracker.py Always trait the compute node RP with COMPUTE_NODE 2019-10-21 11:33:58 -05:00
rpcapi.py Merge "Update compute rpc version alias for train" 2019-10-16 06:30:49 +00:00
stats.py Change consecutive build failure limit to a weigher 2018-06-06 15:18:50 -07:00
task_states.py Fix resource tracker updates during instance evacuation 2018-09-12 13:05:29 +03:00
utils.py Add nova.compute.utils.delete_image 2019-08-27 14:26:33 -04:00
vm_states.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00