Alex Lourie has uploaded a new change for review.

Change subject: packaging: setup: increase memory threshold check to 10%
......................................................................

packaging: setup: increase memory threshold check to 10%

Change-Id: I5fa5ca2fd74940df47e4f137efb8346abcdc4814
Bug-Url: https://bugzilla.redhat.com/1034797
Signed-off-by: Alex Lourie <alou...@redhat.com>
---
M packaging/setup/plugins/ovirt-engine-setup/system/memcheck.py
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/91/22091/1

diff --git a/packaging/setup/plugins/ovirt-engine-setup/system/memcheck.py 
b/packaging/setup/plugins/ovirt-engine-setup/system/memcheck.py
index db6dbff..87341a3 100644
--- a/packaging/setup/plugins/ovirt-engine-setup/system/memcheck.py
+++ b/packaging/setup/plugins/ovirt-engine-setup/system/memcheck.py
@@ -38,6 +38,7 @@
     """
     Available memory checking plugin.
     """
+    _ALLOWED_MEMORY_THRESHOLD = 0.9
     _RE_MEMINFO_MEMTOTAL = re.compile(
         flags=re.VERBOSE,
         pattern=r"""
@@ -58,7 +59,7 @@
         satisfied = False
         if self._total_memory < self.environment[
             osetupcons.SystemEnv.MEMCHECK_MINIMUM_MB
-        ] * 0.95:
+        ] * self._ALLOWED_MEMORY_THRESHOLD:
             self.logger.warn(
                 _(
                     'Warning: Not enough memory is available on the host. '
@@ -77,7 +78,7 @@
             satisfied = True
             if self._total_memory < self.environment[
                 osetupcons.SystemEnv.MEMCHECK_RECOMMENDED_MB
-            ] * 0.95:
+            ] * self._ALLOWED_MEMORY_THRESHOLD:
                 self.logger.warn(
                     _(
                         'Less than {recommended}MB of memory is available'


-- 
To view, visit http://gerrit.ovirt.org/22091
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5fa5ca2fd74940df47e4f137efb8346abcdc4814
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alex Lourie <alou...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to