ironic/releasenotes/notes/allocation-node-name-46b473ec82662f7f.yaml
Steve Baker 2b55444f37 Allocation candidates prefer matching name
This change finds a node with the same name as the allocation and
moves it to the beginning of the shuffled candidate list so that node
is the first allocation attempt.

It is common for node naming scheme to match the node's role (such as
compute-1, compute-2). Also this often matches the hostname
(allocation name) scheme. Without this change, this scenario will
generally result in swapped names (node compute-1 having hostname
compute-2, etc).

By preferring matching names this situation can be avoided in the
majority of cases, while not otherwise affecting the candidiate
allocation approach.

Change-Id: Ie990bfc209959d58852b9080778602eab5aa30af
2022-06-16 15:31:10 +12:00

7 lines
337 B
YAML

---
features:
- |
When an allocation is being processed, the randomized candidate list is now
modified so that a node with a matching name to the allocation is moved
to the beginning of the list. This greatly increases the chance of node name
and allocation name matching in environments where the naming schemes align.