Are you setting [workarounds]/report_ironic_standard_resource_class_inventory=False? I assume so since you said you migrated your flavors and nodes so that scheduling for those baremetal nodes should only use the custom resource class from the ironic node (and flavor).
If so, then the IronicDriver.requires_allocation_refresh variable should probably be changed to:
IronicDriver.requires_allocation_refresh = not CONF.workarounds.report_ironic_standard_resource_class_inventory
Are you setting [workarounds] /report_ ironic_ standard_ resource_ class_inventory =False? I assume so since you said you migrated your flavors and nodes so that scheduling for those baremetal nodes should only use the custom resource class from the ironic node (and flavor).
If so, then the IronicDriver. requires_ allocation_ refresh variable should probably be changed to:
IronicDriver. requires_ allocation_ refresh = not CONF.workaround s.report_ ironic_ standard_ resource_ class_inventory