Skip to content

Commit

Permalink
WIP: schedule node only
Browse files Browse the repository at this point in the history
Change-Id: Idb3b23d5d32217e6d45d9d271e3632592dca2c50
  • Loading branch information
fwiesel committed Jan 12, 2022
1 parent 52f9d87 commit e77d660
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nova/scheduler/host_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,9 @@ def _get_hosts_matching_request(hosts, requested_destination):
(host, node) = (requested_destination.host,
requested_destination.node)
requested_nodes = [x for x in hosts
if x.host == host and x.nodename == node]
if x.host == host and (
x.nodename == node
or node is None)]
if requested_nodes:
LOG.info('Host filter only checking host %(host)s and '
'node %(node)s', {'host': host, 'node': node})
Expand Down

0 comments on commit e77d660

Please sign in to comment.