summaryrefslogtreecommitdiff
path: root/nova/compute
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-02-27 15:11:25 +0000
committerGerrit Code Review <review@openstack.org>2023-02-27 15:11:25 +0000
commitd443f8e4c4f12cdca947e36b443db5d8a230926e (patch)
treef5cc4cae644fd54f69481b6a7eaa13120432af85 /nova/compute
parent3e5742253fe283a890dae873e72cded53d235e13 (diff)
parent646fc51732b60b46385ceff0c7ea2c23372bbd72 (diff)
downloadnova-d443f8e4c4f12cdca947e36b443db5d8a230926e.tar.gz
Merge "Transport context to all threads"
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 952ab3e199..efcdece81a 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -8913,7 +8913,8 @@ class ComputeManager(manager.Manager):
# in order to be able to track and abort it in the future.
self._waiting_live_migrations[instance.uuid] = (None, None)
try:
- future = self._live_migration_executor.submit(
+ future = nova.utils.pass_context(
+ self._live_migration_executor.submit,
self._do_live_migration, context, dest, instance,
block_migration, migration, migrate_data)
self._waiting_live_migrations[instance.uuid] = (migration, future)
@@ -10197,7 +10198,9 @@ class ComputeManager(manager.Manager):
else:
LOG.debug('Triggering sync for uuid %s', uuid)
self._syncs_in_progress[uuid] = True
- self._sync_power_pool.spawn_n(_sync, db_instance)
+ nova.utils.pass_context(self._sync_power_pool.spawn_n,
+ _sync,
+ db_instance)
def _query_driver_power_state_and_sync(self, context, db_instance):
if db_instance.task_state is not None: