summaryrefslogtreecommitdiff
path: root/nova/conductor
diff options
context:
space:
mode:
authorRené Ribaud <rribaud@redhat.com>2022-06-13 15:20:51 +0200
committerRené Ribaud <rribaud@redhat.com>2022-07-22 10:22:24 +0200
commita263fa46f861c091d93782d4796c8302f9c30f4a (patch)
treed5c3cf27c193c692f71149548adfffb27445f50d /nova/conductor
parentbcb96f362ab12e297f125daa5189fb66345b4976 (diff)
downloadnova-a263fa46f861c091d93782d4796c8302f9c30f4a.tar.gz
Allow unshelve to a specific host (Compute API part)
This patch introduce changes to the compute API that will allow PROJECT_ADMIN to unshelve an shelved offloaded server to a specific host. This patch also supports the ability to unpin the availability_zone of an instance that is bound to it. Implements: blueprint unshelve-to-host Change-Id: Ieb4766fdd88c469574fad823e05fe401537cdc30
Diffstat (limited to 'nova/conductor')
-rw-r--r--nova/conductor/manager.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/conductor/manager.py b/nova/conductor/manager.py
index 99e5514136..f6b0815d1b 100644
--- a/nova/conductor/manager.py
+++ b/nova/conductor/manager.py
@@ -1022,6 +1022,12 @@ class ComputeTaskManager:
scheduler_utils.populate_filter_properties(
filter_properties, selection)
(host, node) = (selection.service_host, selection.nodename)
+ LOG.debug(
+ "Scheduler selected host: %s, node:%s",
+ host,
+ node,
+ instance=instance
+ )
instance.availability_zone = (
availability_zones.get_host_availability_zone(
context, host))