nova/nova/tests/unit/objects
Dan Smith 23c5f3d585 Make resource tracker use UUIDs instead of names
This makes the resource tracker look up and create ComputeNode objects
by uuid instead of nodename. For drivers like ironic that already
provide 'uuid' in the resources dict, we can use that. For those
that do not, we force the uuid to be the locally-persisted node
uuid, and use that to find/create the ComputeNode object.

A (happy) side-effect of this is that if we find a deleted compute
node object that matches that of our hypervisor, we undelete it
instead of re-creating one with a new uuid, which may clash with our
old one. This means we remove some of the special-casing of ironic
rebalance, although the tests for that still largely stay the same.

Change-Id: I6a582a38c302fd1554a49abc38cfeda7c324d911
2023-01-30 10:53:44 -08:00
..
__init__.py
test_aggregate.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_block_device.py BlockDeviceMapping: Add is_local property 2022-08-02 21:25:47 +00:00
test_build_request.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_cell_mapping.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_compute_node.py Make resource tracker use UUIDs instead of names 2023-01-30 10:53:44 -08:00
test_console_auth_token.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_diagnostics.py Added nova objects for intance diagnostics 2017-05-30 00:39:44 +04:00
test_ec2.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_external_event.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_fields.py Merge "objects: Don't use generic 'Field' container" 2022-08-11 03:36:19 +00:00
test_flavor.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_host_mapping.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_hv_spec.py objects: Move 'vm_mode' to 'fields.VMMode' 2016-11-25 16:19:44 +00:00
test_image_meta.py libvirt: Add vIOMMU device to guest 2022-09-01 04:50:16 +08:00
test_instance.py Generate request_id for Flavor based InstancePCIRequest 2022-08-27 12:44:11 +02:00
test_instance_action.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_instance_device_metadata.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_instance_fault.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_instance_group.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_instance_info_cache.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_instance_mapping.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_instance_numa.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_instance_pci_requests.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_keypair.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_migrate_data.py Remove the PowerVM driver 2022-08-02 15:31:19 +02:00
test_migration.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_migration_context.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network_request.py smartnic support - new vnic type 2021-08-05 15:58:25 +08:00
test_numa.py libvirt: start tracking NUMACell.socket for hosts 2021-02-21 11:30:07 -05:00
test_objects.py Merge "libvirt: Add vIOMMU device to guest" 2022-09-01 19:56:09 +00:00
test_pci_device.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_quotas.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_request_spec.py Allow enabling PCI scheduling in Placement 2023-01-05 17:25:27 +01:00
test_resource.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_security_group.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_selection.py Add Selection.availability_zone field 2019-10-02 13:39:24 -04:00
test_service.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_tag.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_task_log.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_trusted_certs.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02: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 Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_volume_usage.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00