nova/nova/db
Dan Smith 07da1d8975 Make Flavor.get operations prefer the API database
This makes the Flavor object get operations attempt to first load the
flavor from the api database, falling back to the main one if the
requested flavor is not found.

Note that I had to add backrefs for projects and extra_specs to the
Flavors model, which didn't have them yet. This is tested by the
code that tests loading from the actual DB models.

Related to blueprint flavor-cell-api

Co-Authored-By: Lalit Dagre <lalitdagre@gmail.com>
Change-Id: Ibc239a3d0ac0d22494919554024d1ba07a632218
2016-03-17 12:13:23 -07:00
..
sqlalchemy Make Flavor.get operations prefer the API database 2016-03-17 12:13:23 -07:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
api.py Add include_disabled parameter to service_get_all_by_binary 2016-03-10 08:49:39 +00:00
base.py Deprecate db_driver config option 2016-03-04 06:57:50 -05:00
migration.py Revert "Implement online schema migrations" 2015-10-28 19:35:37 -07:00