nova/nova/tests/unit/virt/libvirt
Artom Lifshitz c6e1b44134 pwr mgmt: handle live migrations correctly
Previously, live migrations completely ignored CPU power management.
This patch makes sure that we correctly:

* Power up the cores on the destination during pre_live_migration, as
  we need them powered up before the instance starts on the
  destination.
* If the live migration is successful, power down the vacated cores on
  the source.
* In case of a rollback, power down the cores previously powered up on
  pre_live_migration.

Closes-bug: 2056613
Change-Id: I787bd7807950370cd865f29b95989d489d4826d0
(cherry picked from commit c1ccc1a316)
(cherry picked from commit c5a73e6c72)
2024-03-14 11:04:30 -04:00
..
cpu pwr mgmt: handle live migrations correctly 2024-03-14 11:04:30 -04:00
storage Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
volume Use force=True for os-brick disconnect during delete 2023-05-10 14:56:18 +00:00
__init__.py
test_blockinfo.py blockinfo: Add encryption details to the disk_info mappings when provided 2022-08-16 08:08:21 +00:00
test_config.py libvirt: Add configuration options to set SPICE compression settings 2023-01-11 11:48:17 +00:00
test_designer.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_driver.py Merge "libvirt: Stop unconditionally enabling evmcs" into stable/2023.1 2024-02-20 06:26:10 +00:00
test_guest.py Merge "Handle "no RAM info was set" migration case" 2022-10-06 23:49:17 +00:00
test_host.py Translate VF network capabilities to port binding 2023-11-02 10:20:24 +00:00
test_imagebackend.py libvirt: Consolidate create_cow_image and create_image 2022-08-16 08:08:21 +00:00
test_imagecache.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_machine_type_utils.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_migration.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_utils.py Fix traits to cpu flags mapping 2023-12-21 13:52:27 +00:00
test_vif.py Remove double mocking... again 2022-08-08 19:50:02 +02:00