nova needs to disallow resource consumption changes on image rebuild
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
sean mooney | ||
Ocata |
Confirmed
|
Medium
|
Unassigned | ||
Pike |
Confirmed
|
Medium
|
Unassigned | ||
Queens |
In Progress
|
Medium
|
sean mooney |
Bug Description
When doing a rebuild the assumption throughout the code is that we are not changing the resources consumed by the guest (that is what a resize is for). The complication here is that there are a number of image properties which might affect the instance resource consumption (in conjunction with a suitable flavor):
hw_numa_nodes=X
hw_numa_cpus.X=Y
hw_numa_mem.X=Y
hw_mem_page_size=X
hw_cpu_
hw_cpu_policy=X
Due to the assumptions made in the rest of the code, we need to add a check to ensure that on a rebuild the above image properties do not differ between the old and new images.
While they might look suspicious, I think that the following image properties *should* be allowed to differ, since they only affect the topology seen by the guest:
hw_cpu_threads
hw_cpu_cores
hw_cpu_sockets
hw_cpu_max_threads
hw_cpu_max_cores
hw_cpu_max_sockets
hw_cpu_
For background, this was discussed in bug 1750623 and deemed to be a separate bug which requires its own fix. As far as I can tell, this has been a problem since NUMA support was added, which I think was Juno.