From 1d2f36ad8155e67bb54565d5657d3ff14ae43cdc Mon Sep 17 00:00:00 2001 From: Oliver Walsh Date: Wed, 15 Feb 2017 00:45:09 +0000 Subject: [PATCH] Fix insufficient memory error message Remove the incorrect hardcoded minimum value, report the actual value required. Change-Id: I26d33e5491a42d3e8e6bbf305da8c88be06b7ce8 --- instack_undercloud/undercloud.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instack_undercloud/undercloud.py b/instack_undercloud/undercloud.py index 260a12a40..5f6caf370 100644 --- a/instack_undercloud/undercloud.py +++ b/instack_undercloud/undercloud.py @@ -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')