nova/nova/tests/functional
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
..
api Filter migrations by user_id/project_id 2019-10-14 11:35:11 -07:00
api_sample_tests Filter migrations by user_id/project_id 2019-10-14 11:35:11 -07:00
compute Add cache_images() to conductor 2019-10-14 11:35:11 -07:00
db Merge "Add reserved schema migrations for Ussuri" 2019-10-03 22:14:36 +00:00
libvirt Always trait the compute node RP with COMPUTE_NODE 2019-10-21 11:33:58 -05:00
notification_sample_tests trivial: Change name of network provided by NeutronFixture 2019-10-05 15:40:28 +01:00
regressions Merge "Set Instance AZ from Selection AZ during migrate reschedule" 2019-10-04 23:38:35 +00:00
wsgi nova-net: Use nova-net explicitly in functional tests 2019-10-02 12:38:40 +00:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
api_paste_fixture.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
api_samples_test_base.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
fixtures.py Convert driver supported capabilities to compute node provider traits 2019-02-28 23:28:19 +00:00
integrated_helpers.py nova-net: Use nova-net explicitly in functional tests 2019-10-02 12:38:40 +00:00
test_aggregates.py Move HostNameWeigher to a common fixture 2019-09-25 09:57:38 +02:00
test_availability_zones.py Remove global state from the FakeDriver 2019-06-21 10:37:20 +02:00
test_boot_from_volume.py Avoid using image with kernel in BDM large request func test 2019-10-11 15:48:56 +02:00
test_compute_mgr.py Fup for the bandwidth series 2019-02-27 10:23:15 +01:00
test_conf_max_attach_disk_devices.py Rename CinderFixtureNewAttachFlow to CinderFixture 2019-07-01 16:00:52 -05:00
test_cross_az_attach.py Add functional tests for [cinder]/cross_az_attach=False 2019-09-24 13:23:12 -04:00
test_images.py Share snapshot image membership with instance owner 2019-02-08 18:06:27 -05:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_json_filter.py Move HostNameWeigher to a common fixture 2019-09-25 09:57:38 +02:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py trivial: Change name of network provided by NeutronFixture 2019-10-05 15:40:28 +01:00
test_login.py
test_metadata.py ec2: Move ec2utils functions to their callers 2019-09-27 15:27:08 +01:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py nova-net: Remove explicit 'USE_NEUTRON = True' 2019-10-02 15:14:01 +00:00
test_nova_manage.py fixtures: Store 'device_id' when creating port in NeutronFixture 2019-10-05 15:40:25 +01:00
test_report_client.py Merge "Remove @safe_connect from _delete_provider" 2019-10-09 22:49:12 +00:00
test_server_external_events.py API microversion 2.76: Add 'power-update' external event 2019-08-15 13:19:44 -04:00
test_server_faults.py Replace non-nova server fault message 2019-08-06 10:22:28 -04:00
test_server_group.py Merge "Remove global state from the FakeDriver" 2019-06-27 17:50:11 +00:00
test_servers.py Filter migrations by user_id/project_id 2019-10-14 11:35:11 -07:00
test_servers_provider_tree.py Always trait the compute node RP with COMPUTE_NODE 2019-10-21 11:33:58 -05:00