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 c1ccc1a3165ec1556c605b3b036274e992b0a09d)
(cherry picked from commit c5a73e6c7227f199bfa0b66c6ef0c2730d70c3b2)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /913227 /opendev. org/openstack/ nova/commit/ c6e1b44134d4c82 c81b34e90cdb686 44c7485f08
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit c6e1b44134d4c82 c81b34e90cdb686 44c7485f08
Author: Artom Lifshitz <email address hidden>
Date: Wed Feb 21 19:58:32 2024 -0500
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 live_migration.
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_
Closes-bug: 2056613 0cd865f29b95989 d489d4826d0 56c605b3b036274 e992b0a09d) 9bfa0b66c6ef0c2 730d70c3b2)
Change-Id: I787bd780795037
(cherry picked from commit c1ccc1a3165ec15
(cherry picked from commit c5a73e6c7227f19