[node-patches] Change in ovirt-node[master]: use overcommit to calculate swap size

jboggs at redhat.com jboggs at redhat.com
Tue Apr 2 18:56:13 UTC 2013


Joey Boggs has uploaded a new change for review.

Change subject: use overcommit to calculate swap size
......................................................................

use overcommit to calculate swap size

rhbz#928954

Change-Id: I8a6cce2a8bdde59227aa7b2a073ec2e38363a5da
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/ovirtnode/storage.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/38/13538/1

diff --git a/scripts/ovirtnode/storage.py b/scripts/ovirtnode/storage.py
index d988d60..2ed6368 100644
--- a/scripts/ovirtnode/storage.py
+++ b/scripts/ovirtnode/storage.py
@@ -83,6 +83,9 @@
                 logger.info(self.ROOTDRIVE)
                 self.BOOTDRIVE = _functions.translate_multipath_device( \
                                                                 self.ROOTDRIVE)
+
+        if "OVIRT_OVERCOMMIT" in OVIRT_VARS:
+            self.overcommit = int(OVIRT_VARS["OVIRT_OVERCOMMIT"])
         if "OVIRT_VOL_SWAP_SIZE" in OVIRT_VARS:
             if int(OVIRT_VARS["OVIRT_VOL_SWAP_SIZE"]) < self.MIN_SWAP_SIZE:
                 logger.error("Swap size is smaller than minimum required + "


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a6cce2a8bdde59227aa7b2a073ec2e38363a5da
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list