When a virt driver returns resources containing a "stats" dict, prior to this patch, those stats were exposed to the scheduler and used to inform the ComputeCapabilitiesFilter. After the referenced patch landed, they are ignored, and any stats are overwritten with an empty dict.
This passes the gate because libvirt does not use this mechanism.
As far as I got triaging this, it seems to stem from this line:
https:/ /github. com/openstack/ nova/blob/ master/ nova/compute/ resource_ tracker. py#L384
def update_ available_ resources( self, context):
LOG.audit( _("Auditing locally available compute resources")) get_available_ resource( self.nodename)
...
resources = self.driver.
def _write_ ext_resources( self, resources):
resources[ 'stats' ] = {}
resources[ 'stats' ].update( self.stats)
self.ext_ resources_ handler. write_resources (resources)
When a virt driver returns resources containing a "stats" dict, prior to this patch, those stats were exposed to the scheduler and used to inform the ComputeCapabili tiesFilter. After the referenced patch landed, they are ignored, and any stats are overwritten with an empty dict.
This passes the gate because libvirt does not use this mechanism.