Fix the log information argument mistake

Log information in _numa_fit_instance_cell has taken memory_usage as the argument to
show the cpu usage.Need replace memory_usage to cpu_usage in the log expression.

Change-Id: I30286855119a9c34d96dfb8d0505af3f908ec1ae
This commit is contained in:
klyang
2017-06-29 16:04:35 +08:00
parent a222f03c84
commit a7a886d8c4

View File

@@ -1023,7 +1023,7 @@ def _numa_fit_instance_cell(host_cell, instance_cell, limit_cell=None,
LOG.debug('Host cell has limitations on usable CPUs. There are '
'not enough free CPUs to schedule this instance. '
'Usage: %(usage)d, limit: %(limit)d',
{'usage': memory_usage, 'limit': cpu_limit})
{'usage': cpu_usage, 'limit': cpu_limit})
return
pagesize = None