commit d1cd215c66eaa205bc63a5405835e0ef28dadc20
Author: Mark Goddard <email address hidden>
Date: Mon Feb 12 13:47:09 2018 +0000
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.
Reviewed: https:/ /review. openstack. org/543461 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=d1cd215c66e aa205bc63a54058 35e0ef28dadc20
Committed: https:/
Submitter: Zuul
Branch: master
commit d1cd215c66eaa20 5bc63a5405835e0 ef28dadc20
Author: Mark Goddard <email address hidden>
Date: Mon Feb 12 13:47:09 2018 +0000
Validate instance_ info.traits against node traits
The ironic node traits spec calls out that traits added to info.traits should be validated against the node's traits. All info.traits should exist in the node's traits. This
instance_
traits in instance_
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 driver_ interfaces( ) in the conductor manager, ensuring that all
validate_
instance traits are also node traits.
Change-Id: I956f8285fe428b 2bdf8822e4a308f 5c2a1675836
Closes-Bug: #1755146
Related-Bug: #1722194