nova/nova/tests/functional
Jay Pipes 03d80cf0de placement: always create consumer records
Adds objects for Consumer, Project, and User data models, in their own
files. They do not contain logic that comes from the API microversions
and are meant to be plain-old-data objects that represent the current
schema in the database. Project, user and consumer information all are
stored in separate tables in the DB and represent actual things in the
placement data modeling. Giving them actual objects makes that
consistent with the other objects in the data model, including resource
providers, allocations, inventories, resource classes and traits.

The patch modifies the allocation handler to always ensure that a
consumer record exists for the supplied consumer UUID and an associated
projects and users table record exists for that consumer. If an
allocation is created using API microversion <1.8, which doesn't supply
the project or user for the consumer, we use the value of two new CONF
options that indicate the project and user ID for incomplete consumer
records.

Includes an online data migration for the nova-manage
online_data_migrations command that creates consumer records for
incomplete consumers.

Change-Id: Id609789ef6b4a4c745550cde80dd49cabe03869a
2018-06-11 12:45:41 -04:00
..
api placement: always create consumer records 2018-06-11 12:45:41 -04:00
api_sample_tests Remove support for /os-virtual-interfaces REST API 2018-06-06 21:14:39 +00:00
compute Make get_instance_objects_sorted() be smart about cells 2018-05-09 12:52:56 -07:00
db Merge "Metadata-API fails to retrieve avz for instances created before Pike" 2018-05-30 21:52:08 +00:00
libvirt libvirt: Bump MIN_{LIBVIRT,QEMU}_VERSION for "Rocky" 2018-04-23 17:02:27 +02:00
notification_sample_tests Add request_id to instance action notifications 2018-04-19 13:06:59 -04:00
regressions Cleanup ugly stub in TestLocalDeleteAllocations 2018-05-16 09:23:55 -04:00
wsgi Cleanup RP and HM records while deleting a compute service. 2018-04-18 19:25:49 -04:00
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
api_paste_fixture.py Remove legacy v2 API functional tests 2016-05-04 18:17:23 +08:00
api_samples_test_base.py Add pagination and changes-since for instance-actions 2017-12-14 07:42:17 +00:00
integrated_helpers.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
test_aggregates.py mirror nova host aggregate members to placement 2018-05-30 12:45:20 -04:00
test_compute_mgr.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_images.py Add create image functional negative tests 2016-12-26 14:15:14 +09:00
test_instance_actions.py make microversion a client level construct for tests 2016-02-24 11:02:05 -05:00
test_legacy_v2_compatible_wrapper.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_list_servers_ip_filter.py Trivial: Nix duplicate PlacementFixture() in test 2017-12-01 15:39:28 -06:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Remove unused logging import 2017-02-17 15:17:51 +07:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py [api] Allow multi-attach in compute api 2018-01-22 10:45:13 -05:00
test_nova_manage.py Add nova-manage placement heal_allocations CLI 2018-06-01 18:45:10 -04:00
test_report_client.py mirror nova host aggregate members to placement 2018-05-30 12:45:20 -04:00
test_server_group.py Add late server group policy check to rebuild 2018-02-06 13:54:12 +01:00
test_servers.py Merge "Change consecutive build failure limit to a weigher" 2018-06-07 05:22:20 +00:00