Fix insufficient memory error message

Remove the incorrect hardcoded minimum value, report the actual value required.

Change-Id: I26d33e5491a42d3e8e6bbf305da8c88be06b7ce8
This commit is contained in:
Oliver Walsh
2017-02-15 00:45:09 +00:00
parent 9ffe6479e9
commit 1d2f36ad81

View File

@@ -609,9 +609,9 @@ def _check_memory():
mem = psutil.virtual_memory()
total_mb = mem.total / 1024 / 1024
if total_mb < REQUIRED_MB:
LOG.error('At least 4 GB of memory is required for undercloud '
'installation. A minimum of 6 GB is recommended. '
'Only detected %d MB' % total_mb)
LOG.error('At least %d MB of memory is required for undercloud '
'installation. A minimum of 8 GB is recommended. '
'Only detected %d MB' % (REQUIRED_MB, total_mb))
raise RuntimeError('Insufficient memory available')