Fixes 'Not enough available memory' log message
Fixes a bug in log output about where 'Not enough available memory to schedule instance' printed full memory instead of available memory Change-Id: Id65e9f5eec9ba1f39bcba24539b11f2e27226941 Closes-Bug: #1735321
This commit is contained in:
@@ -919,9 +919,11 @@ def _numa_fit_instance_cell_with_pinning(host_cell, instance_cell,
|
|||||||
if host_cell.avail_memory < instance_cell.memory:
|
if host_cell.avail_memory < instance_cell.memory:
|
||||||
LOG.debug('Not enough available memory to schedule instance. '
|
LOG.debug('Not enough available memory to schedule instance. '
|
||||||
'Oversubscription is not possible with pinned instances. '
|
'Oversubscription is not possible with pinned instances. '
|
||||||
'Required: %(required)s, actual: %(actual)s',
|
'Required: %(required)s, available: %(available)s, '
|
||||||
|
'total: %(total)s. ',
|
||||||
{'required': instance_cell.memory,
|
{'required': instance_cell.memory,
|
||||||
'actual': host_cell.memory})
|
'available': host_cell.avail_memory,
|
||||||
|
'total': host_cell.memory})
|
||||||
return
|
return
|
||||||
|
|
||||||
if host_cell.siblings:
|
if host_cell.siblings:
|
||||||
|
|||||||
Reference in New Issue
Block a user