It looks like [1] changed the way cpu_pinning_requested works without considering backwards compatibility for older instances (instances with InstanceNUMACell < 1.3 that don't store cpu_policy).
def cpu_pinning_requested(self):
- return self.cpu_pinning is not None
+ return self.cpu_policy == obj_fields.CPUAllocationPolicy.DEDICATED
Maybe introducing some fallback to the old check if InstanceNUMACell < 1.3 will do the trick.
It looks like [1] changed the way cpu_pinning_ requested works without considering backwards compatibility for older instances (instances with InstanceNUMACell < 1.3 that don't store cpu_policy).
def cpu_pinning_ requested( self): CPUAllocationPo licy.DEDICATED
- return self.cpu_pinning is not None
+ return self.cpu_policy == obj_fields.
Maybe introducing some fallback to the old check if InstanceNUMACell < 1.3 will do the trick.
[1] https:/ /github. com/openstack/ nova/commit/ dfe6545329e6d7e 417615af44f6b55 88948699db