Select cpu model from a list of cpu models
Currently we uses cpu_model in nova.conf (when cpu_mode is set to ‘custom’) to specify the CPU model the instance should use on this host. This could have implications on availability of compute nodes for live migration if you ended up with an "advanced" CPU model when all you really cared about was an older feature flag.
To mitigate the problem , we use cpu_models to replace cpu_model, where cpu_models is an ordered list of CPU models the host supports. The list is ordered so that the more common and less advanced CPU models are listed earlier. End users specify CPU models they required through traits,
libvirt driver then select the first one in the list that can provide the required feature traits. This would make it more likely that you could live-migrate later on.
Blueprint information
- Status:
- Complete
- Approver:
- Eric Fried
- Priority:
- Low
- Drafter:
- Jack Ding
- Direction:
- Approved
- Assignee:
- ya.wang
- Definition:
- Approved
- Series goal:
- Accepted for train
- Implementation:
-
Implemented
- Milestone target:
-
train-3
- Started by
- Matt Riedemann
- Completed by
- Matt Riedemann
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Select cpu model from a list of cpu models
Approved for Stein. -- mriedem 20181220
Addressed by: https:/
Add configuration item cpu_models to libvirt
Relate to: https:/
Addressed by: https:/
cpu-
Addressed by: https:/
Re-propose the spec to allow specifying a list of CPU models
This did not complete in the Stein release so I am deferring to the Train release. Remember to re-propose the spec for Train as necessary: https:/
efried 20190510 Spec abandoned by kashyap, setting to obsolete.
Gerrit topic: https:/
Addressed by: https:/
Re-propose the spec to allow specifying a list of CPU models
Addressed by: https:/
Re-propose the spec to allow specifying a list of CPU models
Addressed by: https:/
Add method 'get_all_
Addressed by: https:/
vCPU mdoels selection
Addressed by: https:/
Add compatibility checks for CPU mode and CPU models and extra flags
Addressed by: https:/
Support report multi CPU model traits
Addressed by: https:/
Add release note
Addressed by: https:/
libvirt: Correctly handle non-CPU flag traits
Addressed by: https:/
Fix typor of cpu model when check CPU compatibility
Addressed by: https:/
libvirt: Change _compare_cpu to raise InternalError