nova/nova/tests/unit/objects
Dan Smith 7b29a5cf9e Warn the user about orphaned extra records during keypair migration
Operators who have manually deleted Instance records with FK constraints
disabled may have orphaned InstanceExtra records which will prevent the
keypair migration from running. Normally, this violation of the data
model would be something that earns no sympathy. However, that solution
was (incorrectly) offered up as a workaround in bug 1511466 and multiple
deployments have broken their data as a result. Since the experience
is a unhelpful error message and a blocked migration, this patch attempts
to at least highlight the problem, even though it is on the operator to
actually fix the problem.

Change-Id: I0c8bf2c495a98c412eb93e19f832948a779bca11
Related-Bug: #1684861
(cherry picked from commit 2cee5bb4d1)
2017-05-08 16:25:57 +00:00
..
__init__.py
test_agent.py cleanup NovaObjectDictCompat from agent 2015-08-26 16:36:25 +05:30
test_aggregate.py Address feedback on cell-aggregate-api-db patches 2016-08-01 11:46:59 -07:00
test_bandwidth_usage.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_block_device.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_build_request.py Update BuildRequest if instance currently being scheduled 2016-09-12 22:31:50 +02:00
test_cell_mapping.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_compute_node.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_dns_domain.py Remove DictCompat from DNSDomain 2016-01-11 16:38:06 +00:00
test_ec2.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_external_event.py Use EnumField for instance external event name 2015-05-20 22:16:52 +00:00
test_fields.py Remove code duplication in enums 2016-08-16 09:13:21 +05:30
test_fixed_ip.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_flavor.py Make flavor-manage api call destroy with Flavor object 2016-05-19 16:05:19 +02:00
test_floating_ip.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_host_mapping.py Fix host mapping saving 2016-07-15 08:49:45 +03:00
test_hv_spec.py libvirt: rename parallels driver to virtuozzo 2015-07-29 18:40:12 +03:00
test_image_meta.py image_meta: Add hw_rescue_device and hw_rescue_bus 2016-06-24 21:46:03 +01:00
test_instance.py Warn the user about orphaned extra records during keypair migration 2017-05-08 16:25:57 +00:00
test_instance_action.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00
test_instance_device_metadata.py objects: new InstanceDeviceMetadata object 2016-06-24 04:30:51 -04:00
test_instance_fault.py Remove mox in tests/unit/objects/test_instance_faults 2016-06-13 09:32:13 +00:00
test_instance_group.py Make InstanceGroup object favor the API database 2016-08-19 10:46:19 -07:00
test_instance_info_cache.py Implements proper UUID format for few objects tests. 2015-12-16 17:31:03 +01:00
test_instance_mapping.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_instance_numa_topology.py Save all instance extras in a single db call 2016-05-25 12:23:03 +02:00
test_instance_pci_requests.py pci: Deprecate is_new from pci requests 2016-06-21 13:19:57 +03:00
test_keypair.py 'limit' and 'marker' support for db_api and keypair_obj 2016-07-12 14:25:33 +03:00
test_migrate_data.py Hyper-V: update live migrate data object 2016-08-22 12:46:16 +03:00
test_migration.py Remove mox from tests/unit/objects/test_migration.py 2016-04-01 15:56:55 +09:00
test_migration_context.py pci: Move PCI devices and PCI requests into migration context 2016-06-03 02:09:33 +03:00
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network.py Implements proper UUID format for few objects tests. 2015-12-16 17:31:03 +01:00
test_network_request.py Compute manager device tagging support 2016-06-29 16:53:34 -07:00
test_numa.py Added better error messages during (un)pinning CPUs 2016-07-05 09:13:19 +00:00
test_objects.py Update BuildRequest if instance currently being scheduled 2016-09-12 22:31:50 +02:00
test_pci_device.py Fix binary name used in the pci device online migration check 2016-10-05 12:54:22 -07:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_quotas.py Remove mox in tests/unit/objects/test_quotas 2016-06-29 16:00:27 +08:00
test_request_spec.py Add requested_destination field to RequestSpec 2016-05-27 10:14:51 +02:00
test_resource_provider.py Add create_all and delete_all for AllocationList 2016-09-01 11:38:40 -07:00
test_security_group.py Remove DictCompat from SecurityGroup 2016-07-06 14:30:09 -04:00
test_security_group_rule.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_service.py Add objects.ServiceList.get_all_computes_by_hv_type 2016-08-01 16:38:21 -04:00
test_tag.py Added method exists to the Tag object 2015-07-09 09:00:39 +03:00
test_task_log.py Replaced deprecated timeutils methods 2015-11-18 17:45:29 +01:00
test_vcpu_model.py cleanup NovaObjectDictCompat from virt_cpu_topology 2015-08-05 08:56:30 +05:30
test_virt_cpu_topology.py Convert hardware.VirtCPUTopology to nova object 2014-11-20 09:14:25 -05:00
test_virtual_interface.py Add VirtualInterface.destroy() 2016-07-12 14:53:48 -07:00
test_volume_usage.py Fix invalid uuid warnings in objects testcases 2016-04-20 05:18:01 +00:00