Add Generation to Consumers
Potential conflicts have been identified when more than one process attempts to allocate resources for a given consumer, and there is currently no way to detect these conflicts. We propose to add a generation field to the consumers table in Placement, and implement the same mechanism for tracking updates to consumers as is implemented for ResourceProviders.
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add Generation to Consumers
Addressed by: https:/
Add the 'generation' column to the consumers table
Addressed by: https:/
Add handlers for consumer_generation
Addressed by: https:/
WIP - Add a microversion for consumer generation
Approved for Rocky. -- melwitt 20180410
Addressed by: https:/
Add history behind nullable project_id and user_id
Addressed by: https:/
Add the Consumer object
Addressed by: https:/
Add Consumer objects to Allocations
Addressed by: https:/
Add generation checking logic to Consumer
Addressed by: https:/
Add a microversion for consumer generation
Addressed by: https:/
WIP - Change DELETE allocations to PUT []
Addressed by: https:/
WIP - Add consumer generation checking logic
Addressed by: https:/
Add generation column to consumers table
Addressed by: https:/
Add Project object
Addressed by: https:/
Add User object to placement modeling
Addressed by: https:/
add Consumer object
Addressed by: https:/
Add create() methods to Project, User and Consumer
Addressed by: https:/
move consumer ensure to API layer
Addressed by: https:/
remove Allocation.
Addressed by: https:/
prep for consumer generation in API layer
Addressed by: https:/
increment consumer generation when allocs change
Addressed by: https:/
update add-consumer-
Addressed by: https:/
WIP: Add a microversion for consumer generation
Addressed by: https:/
placement: always create consumer records
Addressed by: https:/
Fix nits from change Id609789ef6b4a4
Addressed by: https:/
WIP: Heal allocations with missing/incomplete consumer information
Addressed by: https:/
Address nits from consumer generation
Addressed by: https:/
Refactor _heal_instances
Addressed by: https:/
Use consumer generation in _heal_allocatio
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
Heal allocations with incomplete consumer information
Work Items
Dependency tree

* Blueprints in grey have been implemented.