nova/nova/tests/unit/api/openstack/placement
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
..
handlers [placement] Fix incorrect exception import 2018-04-05 18:10:28 +00:00
objects Re-base placement object unit tests on NoDBTestCase 2018-06-04 23:30:40 -07:00
__init__.py Add initial framing of placement API 2016-07-29 10:31:36 +00:00
test_context.py Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
test_deploy.py Flexibly test keystonmiddleware in placement stack 2018-05-11 19:12:40 +01:00
test_fault_wrap.py [placement] use simple FaultWrapper 2018-02-28 20:34:12 +00:00
test_handler.py Use microversion parse 0.2.1 2018-03-23 12:09:17 +00:00
test_microversion.py Use microversion parse 0.2.1 2018-03-23 12:09:17 +00:00
test_policy.py Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
test_requestlog.py [placement] clean up some nits in the requestlog middleware 2016-09-07 09:23:02 +00:00
test_util.py placement: always create consumer records 2018-06-11 12:45:41 -04:00