[openstack-dev] [nova] Gap between host cpu features and guest cpu's

Jin, Yuntong yuntong.jin at intel.com
Wed May 11 03:12:21 UTC 2016


Hi everyone,

Currently nova exposes all the host CPU instruction set extensions available
on the compute node in the host state, and there is a scheduler filter
`ComputeCapabilitiesFilter` which looks at these.

But the limits on this is:
CPU instruction set in ComputeCapabilitiesFilter should be guest's view instead of host's.

Admin may use specific set of CPU instruction to deploy instance to make
it migratable in a heterogeneous cloud.
This is actually by design in nova as nova is using baselineCPU
andallowed to pass/config guest CPU instruction feature for instance.

Shall we add a string "guest_features" in ``ComputeNode`` object as ``ComputeNode:cpu_info:guest_features``
And let ComputeCapabilitiesFilter use guest_features instead of host features here?

Is this a real gap ? and the above easy fix is the right way ?

Thanks
-yuntongjin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160511/6fa9b516/attachment.html>


More information about the OpenStack-dev mailing list