ironic/releasenotes/notes/validate-instance-traits-525dd3150aa6afa2.yaml
Mark Goddard d1cd215c66 Validate instance_info.traits against node traits
The ironic node traits spec calls out that traits added to
instance_info.traits should be validated against the node's traits.  All
traits in instance_info.traits should exist in the node's traits.  This
protects us against race conditions between traits being removed from a
node in ironic, and the node's resource provider's traits being updated
in placement.

This change adds validation to do_node_deploy() and
validate_driver_interfaces() in the conductor manager, ensuring that all
instance traits are also node traits.

Change-Id: I956f8285fe428b2bdf8822e4a308f5c2a1675836
Closes-Bug: #1755146
Related-Bug: #1722194
2018-03-21 10:38:03 +00:00

10 lines
436 B
YAML

---
fixes:
- |
Fixes an issue where a node's ``instance_info.traits`` field could be
incorrectly formatted, or contain traits that are not traits of the node.
When validating drivers and prior to deployment, the Bare Metal service now
validates that a node's traits include all the traits in its
``instance_info.traits`` field. See `bug 1755146
<https://bugs.launchpad.net/ironic/+bug/1755146>`_ for details.