nova/nova/objects
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
..
__init__.py Add BuildRequest object 2016-03-02 21:31:45 -05:00
agent.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
aggregate.py Allocate uuids for aggregates as they are created or loaded 2016-02-24 07:48:09 -08:00
bandwidth_usage.py enginefacade: 'bw_usage', 'vol_usage' and 's3_image' 2015-12-22 14:38:00 +03:00
base.py objects: Rename PciDevice _migrate_parent_addr method 2016-02-15 10:47:24 +00:00
block_device.py Use SensitiveStringField for BlockDeviceMapping.connection_info 2016-03-05 13:40:52 -05:00
build_request.py Add BuildRequest object 2016-03-02 21:31:45 -05:00
cell_mapping.py Remove DictCompat from CellMapping 2016-01-08 21:03:31 +00:00
compute_node.py Merge "Allow saving empty pci_device_pools in ComputeNode object" 2016-03-04 12:07:43 +00:00
dns_domain.py Remove DictCompat from DNSDomain 2016-01-11 16:38:06 +00:00
ec2.py Remove DictCompat from EC2 objects 2016-01-11 17:07:58 +00:00
external_event.py cleanup NovaObjectDictCompat from external_event 2015-08-26 17:01:02 +05:30
fields.py Use SensitiveStringField for BlockDeviceMapping.connection_info 2016-03-05 13:40:52 -05:00
fixed_ip.py Use version convert methods from oslo_utils.versionutils 2015-11-25 20:26:02 +08:00
flavor.py Make Flavor.get operations prefer the API database 2016-03-17 12:13:23 -07:00
floating_ip.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
host_mapping.py enginefacade: 'host_mapping' 2015-11-13 18:39:42 +03:00
hv_spec.py Use version convert methods from oslo_utils.versionutils 2015-11-25 20:26:02 +08:00
image_meta.py Merge "Add image signature verification" 2016-01-22 12:47:52 +00:00
instance.py Avoid lazy-loads of ec2_ids on Instance 2016-03-15 07:07:15 -07:00
instance_action.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
instance_fault.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
instance_group.py Merge "Fix the bug of "Error spelling of 'explicitely'"" 2015-12-08 23:51:32 +00:00
instance_info_cache.py Merge "Send Instance object to cells instance_update_at_top" 2015-06-12 01:33:13 +00:00
instance_mapping.py Make InstanceMappings.cell_id nullable 2016-03-02 21:54:23 -05:00
instance_numa_topology.py objects: Allow instance to reset the NUMA topology 2016-02-26 19:22:52 +00:00
instance_pci_requests.py Use version convert methods from oslo_utils.versionutils 2015-11-25 20:26:02 +08:00
keypair.py Use version convert methods from oslo_utils.versionutils 2015-11-25 20:26:02 +08:00
migrate_data.py objects: add HyperVLiveMigrateData stub 2016-02-29 12:28:35 +02:00
migration.py Add new APIs and deprecate old API for migrations 2016-02-26 14:25:48 +00:00
migration_context.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
monitor_metric.py Merge "Fix wrong CPU metric value in metrics_filter" 2015-12-12 22:00:07 +00:00
network.py Mark 'network_device_mtu' as deprecated 2016-02-26 18:13:22 +00:00
network_request.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
notification.py Generate doc for versioned notifications 2016-01-28 15:33:06 +01:00
numa.py Add 'hw:cpu_threads_policy=isolate' scheduling 2016-01-14 11:02:51 +00:00
pci_device.py objects: Rename PciDevice _migrate_parent_addr method 2016-02-15 10:47:24 +00:00
pci_device_pool.py Merge "Return empty PciDevicePoolList obj instead of None" 2015-11-27 19:26:08 +00:00
quotas.py cleanup NovaObjectDictCompat from quota 2015-08-20 18:48:21 +00:00
request_spec.py enginefacade: 'request_spec' object 2016-02-08 12:55:59 +03:00
resource_provider.py resource-provider versioned objects 2016-02-23 19:16:33 +00:00
security_group.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
security_group_rule.py Cleanup NovaObjectDictCompat from security_group_rule 2016-01-05 16:21:08 +00:00
service.py Add include_disabled parameter to service_get_all_by_binary 2016-03-10 08:49:39 +00:00
tag.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
task_log.py Remove obj_relationships from objects 2015-10-30 00:22:23 +00:00
vcpu_model.py Untie subobject versions 2015-11-10 15:56:14 +00:00
virt_cpu_topology.py cleanup NovaObjectDictCompat from virt_cpu_topology 2015-08-05 08:56:30 +05:30
virtual_interface.py enginefacade: 'vif' and 'task_log' 2015-12-18 18:45:48 +03:00
volume_usage.py Add a VolumeUsage object 2015-08-23 18:45:38 +02:00