'Override in-memory calculations of compute node resource usage based
on data audited from the hypervisor layer.
Add in resource claims in progress to account for operations that have
declared a need for resources, but not necessarily retrieved them from
the hypervisor layer yet.
:param nodename: Temporary parameter representing the Ironic resource
node. This parameter will be removed once Ironic
baremetal resource nodes are handled like any other
resource in the system.'

def update_available_resource(self, context, nodename):

    LOG.debug('Auditing    locally    available    compute    resources    for    %(host)s    (node:    %(node)s)', {'node': nodename, 'host': self.host})
    resources = self.driver.get_available_resource(nodename)
    resources['host_ip'] = CONF.my_ip
    if (('cpu_info' not in resources) or (resources['cpu_info'] is None)):
        resources['cpu_info'] = ''
    self._verify_resources(resources)
    self._report_hypervisor_resource_view(resources)
    self._update_available_resource(context, resources)
