Note
This feature is available starting from the MCP 2019.2.10 maintenance update. Before using the feature, follow the steps described in Apply maintenance updates.
CpuFlagsFilter
is a custom Nova scheduler filter for live migrations. The
filter ensures that the CPU features of a live migration source host match the
target host. Use the CpuFlagsFilter
filter only if your deployment meets
the following criteria:
host-passthrough
or host-model
. For details,
see MCP Deployment Guide: Configure a CPU model.To add the Nova CpuFlagsFilter custom filter:
Open your project Git repository with the Reclass model on the cluster level.
Open the classes/cluster/<cluster_name>/openstack/control.yml
file for
editing.
Verify that the cpu_mode
parameter is set to host-passthrough
or
host-model
.
Add CpuFlagsFilter
to the scheduler_default_filters
parameter for
nova:contoroller
:
nova:
controller:
scheduler_default_filters: “DifferentHostFilter,SameHostFilter,RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter,NUMATopologyFilter,AggregateInstanceExtraSpecsFilter,CpuFlagsFilter”
Log in to the Salt Master node.
Apply the changes:
salt -C 'I@nova:controller' state.sls nova.controller