nova/nova/tests/unit/objects
melanie witt 9d6632a67d Set group_members when converting to legacy request spec
In Pike we converted the affinity filter code to use the RequestSpec
object instead of legacy dicts. The filter used to populate server
group info in the filter_properties and the conversion removed that.
However, in the conductor, we are still converting RequestSpec back
and forth between object and primitive, and there is a mismatch
between the keys being set/get in filter_properties. So during a
reschedule with a server group, we hit an exception
"'NoneType' object is not iterable" in the RequestSpec.from_primitives
method and the reschedule fails.

This adds 'group_members' to the _to_legacy_group_info method to set
the key.

Closes-Bug: #1719730

Change-Id: Icb418f2be575bb2ba82756fdeb67b24a28950746
2017-09-27 20:52:19 +00:00
..
__init__.py
test_agent.py cleanup NovaObjectDictCompat from agent 2015-08-26 16:36:25 +05:30
test_aggregate.py Remove aggregate uuid generation on load from DB 2017-04-10 18:16:01 -04:00
test_bandwidth_usage.py iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
test_block_device.py objects: Add attachment_id to BlockDeviceMapping 2017-03-16 16:35:01 -04:00
test_build_request.py Add tags to instance.create Notification 2017-07-24 18:05:05 -04:00
test_cell_mapping.py Sort CellMappingList.get_all() for safety 2017-04-24 12:00:22 -07:00
test_compute_node.py objects: add ComputeNode.get_by_uuid method 2017-05-04 13:57:02 -04:00
test_diagnostics.py Added nova objects for intance diagnostics 2017-05-30 00:39:44 +04:00
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 iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
test_fixed_ip.py iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
test_flavor.py Remove compatibility code for flavors 2017-09-05 10:36:10 -04:00
test_floating_ip.py Add FloatingIPList.get_count_by_project() 2017-06-19 21:51:46 +00:00
test_host_mapping.py Make discover_hosts only query for unmapped ComputeNode records 2017-05-15 10:50:01 -04:00
test_hv_spec.py objects: Move 'vm_mode' to 'fields.VMMode' 2016-11-25 16:19:44 +00:00
test_image_meta.py Add img_hide_hypervisor_id image property 2017-05-29 16:03:43 +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 Fix misuse of assertTrue 2017-02-14 15:03:49 +09: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 Transform servergroup.delete notification 2017-09-08 13:01:20 +00:00
test_instance_info_cache.py Remove mox in tests/unit/objects/test_instance_info_cache 2016-12-24 14:22:17 +00:00
test_instance_mapping.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_instance_numa_topology.py objects: add new field cpuset_reserved in NUMACell 2017-01-24 19:37:55 +00:00
test_instance_pci_requests.py pci: Deprecate is_new from pci requests 2016-06-21 13:19:57 +03:00
test_instance.py Make 'fault' a valid joined query field for Instance 2017-09-22 13:30:11 -07: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 Fix live migrate with XenServer 2017-02-16 14:02:35 +00:00
test_migration_context.py Replace uuid4() with uuidsentinel 2016-11-29 11:49:24 +05:30
test_migration.py Add uuid to migration object and migrate-on-load 2017-08-28 13:24:09 -07:00
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network_request.py Compute manager device tagging support 2016-06-29 16:53:34 -07:00
test_network.py Implements proper UUID format for few objects tests. 2015-12-16 17:31:03 +01:00
test_numa.py Mark sibling CPUs as 'used' for cpu_thread_policy = 'isolated' 2016-12-13 11:23:07 +04:00
test_objects.py [placement] Unregister the ResourceProvider object 2017-09-15 16:49:45 +01:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_pci_device.py pci: add uuid field to PciDevice object 2017-06-11 12:56:48 -04:00
test_quotas.py Make Quotas object favor the API database 2017-07-20 21:02:18 +00:00
test_request_spec.py Set group_members when converting to legacy request spec 2017-09-27 20:52:19 +00:00
test_resource_provider.py [placement] Unregister the ResourceProvider object 2017-09-15 16:49:45 +01:00
test_security_group_rule.py Fix invalid import order 2016-07-04 16:14:20 +05:30
test_security_group.py flake8: Specify 'nova' as name of app 2017-03-16 13:48:51 -07:00
test_service.py Use enum value instead of string service name 2017-07-25 17:36:41 +02:00
test_tag.py Added method exists to the Tag object 2015-07-09 09:00:39 +03:00
test_task_log.py iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
test_vcpu_model.py objects: Move 'cpumodel' to 'fields.CPU*' 2016-11-25 16:19:43 +00:00
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