simultaneous boot of multiple instances leads to cpu pinning overlap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Chris Friesen | ||
Kilo |
Fix Released
|
Undecided
|
Nikola Đipanov |
Bug Description
I'm running into an issue with kilo-3 that I think is present in current trunk. Basically it results in multiple instances (with dedicated cpus) being pinned to the same physical cpus.
I think there is a race between the claimed CPUs of an instance being persisted to the DB, and the resource audit scanning the DB for instances and subtracting pinned CPUs from the list of available CPUs.
The problem only shows up when the following sequence happens:
1) instance A (with dedicated cpus) boots on a compute node
2) resource audit runs on that compute node
3) instance B (with dedicated cpus) boots on the same compute node
So you need to either be booting many instances, or limiting the valid compute nodes (host aggregate or server groups), or have a small cluster in order to hit this.
The nitty-gritty view looks like this:
When booting up an instance we hold the COMPUTE_
compute.
compute.
Lastly, the same bug applies to the compute.
Changed in nova: | |
assignee: | nobody → Chris Friesen (cbf123) |
description: | updated |
description: | updated |
Changed in nova: | |
assignee: | Chris Friesen (cbf123) → Dan Smith (danms) |
Changed in nova: | |
assignee: | Dan Smith (danms) → Chris Friesen (cbf123) |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/182766
Review: https:/