Skip to content

Commit cf08543

Browse files
stephenfingibizer
authored andcommitted
hardware: Correct log
We currently get the following error message if attempting to fit a guest with hugepages on a node that doesn't have enough: Host does not support requested memory pagesize, or not enough free pages of the requested size. Requested: -2 kB Correct this, removing the kB suffix and adding a note on the meaning of the negative values, like we have for the success path. Change-Id: I247dc0ec03cd9e5a7b41f5c5534bdfb1af550029 Signed-off-by: Stephen Finucane <[email protected]> Closes-Bug: #2075959 (cherry picked from commit 4678bcb) (cherry picked from commit f619311) (cherry picked from commit 6147a05)
1 parent da40da6 commit cf08543

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nova/virt/hardware.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,9 @@ def _numa_fit_instance_cell(
943943
if not pagesize:
944944
LOG.debug('Host does not support requested memory pagesize, '
945945
'or not enough free pages of the requested size. '
946-
'Requested: %d kB', instance_cell.pagesize)
946+
'Requested memory pagesize: %d '
947+
'(small = -1, large = -2, any = -3)',
948+
instance_cell.pagesize)
947949
return None
948950
LOG.debug('Selected memory pagesize: %(selected_mem_pagesize)d kB. '
949951
'Requested memory pagesize: %(requested_mem_pagesize)d '

0 commit comments

Comments
 (0)