placement/placement/objects
Surya Seetharaman b1f3dd39c3 Add consumer_types migration, database and object changes
In advance of a microversion 1.38, add the necessary database and
object code to support saving consumer types when creating consumers
and reporting those types when requesting usage information.

This patch adds a new table called ``consumer_types`` and also
add a new column called ``consumer_type_id`` that references the id
in the consumer_types table.

The consumer_type_id is nullable and records with a NULL
consumer_type_id are considered as 'unknown'.

In future changes we may wish to AttributeCache consumer types in
the same way that traits and resource classes are cached.

Usage object can now be retrieved by consumer type and include
consumer type information when retrieved. Until 1.38 that info
will not be used in results.

Allocations are written and retrieved with a consumer type but
the data is not yet presented in HTTP requests.

Co-Authored-By: Chris Dent <cdent@anticdent.org>
Co-Authored-By: melanie witt <melwittt@gmail.com>

Story: 2005473
Task: 35683
Task: 36420

Change-Id: Ic74c3d1b8aa272e9c7d1070fe7658b928e693889
2021-08-05 23:23:46 +00:00
..
__init__.py Move the placement code to the base 2018-09-04 10:31:23 -05:00
allocation.py Add consumer_types migration, database and object changes 2021-08-05 23:23:46 +00:00
allocation_candidate.py Fix l-c job and move to latest hacking 4.0.0 2020-12-15 10:21:18 -06:00
consumer.py Add consumer_types migration, database and object changes 2021-08-05 23:23:46 +00:00
consumer_type.py Add consumer_types migration, database and object changes 2021-08-05 23:23:46 +00:00
inventory.py Remove all usage of six library 2020-06-09 14:13:53 +02:00
project.py Don't use OVO in Project object 2019-02-20 09:50:38 +00:00
research_context.py Add DEBUG logs to help troubleshoot no allocation candidates 2020-08-04 20:59:31 +00:00
reshaper.py Remove InventoryList class 2019-03-13 21:24:34 +00:00
resource_class.py Remove all usage of six library 2020-06-09 14:13:53 +02:00
resource_provider.py Add support for RP re-parenting and orphaning 2021-07-14 17:55:41 +02:00
rp_candidates.py Prepare for negative member queryparam 2 2019-03-29 05:14:03 +00:00
trait.py Remove all usage of six library 2020-06-09 14:13:53 +02:00
usage.py Add consumer_types migration, database and object changes 2021-08-05 23:23:46 +00:00
user.py Don't use OVO in User object 2019-02-20 09:50:38 +00:00