ironic baremetal node ownership not checked with early vif plugging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Jim Rollenhagen | ||
Queens |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It is possible for scheduling to tell nova that a baremetal node can support multiple instances when in reality that is not the case. The issue is that the virt driver for ironic ironic does not check nor assert that the node is in use. This is not an issue, except when before the virt driver has claimed the node. Due to needing the vif plugging information completed for block device mapping, https:/
Depending on scheduling, we can end up having multiple vif plugging requests for the same node. All actions beyond the first vif plugging will fail if only one port is assigned to the node.
This demonstrates itself as:
Message: Build of instance c7c5191b-
With logging from nova-compute:
2018-04-19 19:49:06.832 18246 ERROR nova.virt.
40-50b3-
able to attach VIF 7d0a6b40-
2018-04-19 19:49:06.833 18246 ERROR nova.virt.
-4067-af8e-
0-50b3-
2018-04-19 19:49:06.833 18246 ERROR nova.compute.
67-af8e-
attach VIF 7d0a6b40-
HTTP logging:
192.168.24.1 - - [19/Apr/
192.168.24.1 - - [19/Apr/
192.168.24.1 - - [19/Apr/
192.168.24.1 - - [19/Apr/
192.168.24.1 - - [19/Apr/
RedHat Bugzilla:
https:/
How to reproduce:
Bulk schedule nodes, ideally in most cases with resource class scheduling by flavor disabled which will result in a high liklihood that the same physical baremetal node will be selected. This can be preproduced fairly easily with TripleO and a lack of a resource class defined on the flavor.
Changed in nova: | |
assignee: | nobody → Julia Kreger (juliaashleykreger) |
Changed in nova: | |
assignee: | Jim Rollenhagen (jim-rollenhagen) → Julia Kreger (juliaashleykreger) |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | Julia Kreger (juliaashleykreger) → Jim Rollenhagen (jim-rollenhagen) |
Fix proposed to branch: master /review. openstack. org/563714
Review: https:/