placement/nova/db
Chris Dent b70185c72e Adjust resource-providers models for resource-pools
In testing it was discovered that a separate resource_pools
tables was not required. Instead the resource-providers table
itself could provide that and any given provider could provide
multiple resources classes, associated via the inventories
table.

Therefore, this adds 'name', 'generation', and 'can_host' columns
to resource_providers and changes an allocations index to add the
'used' column.

A 'resource_providers_aggregates' table is added to associate a
resource provider with an aggregate.

A unique constraint is added on the inventories table so that any
resource provider can have only one inventory for any given
resource class.

Change-Id: Ia28be42a75e0977faf9bbc91d1ad9d8661b99230
Partially-Implements: blueprint resource-providers
2016-02-29 16:45:59 -08:00
..
sqlalchemy Adjust resource-providers models for resource-pools 2016-02-29 16:45:59 -08:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
api.py Add new APIs and deprecate old API for migrations 2016-02-26 14:25:48 +00:00
base.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
migration.py Revert "Implement online schema migrations" 2015-10-28 19:35:37 -07:00