[node-patches] Change in ovirt-node[master]: installer: test needed root space when checking partition si...

jboggs at redhat.com jboggs at redhat.com
Tue Oct 23 01:26:47 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: installer: test needed root space when checking partition sizes
......................................................................

installer: test needed root space when checking partition sizes

rhbz#868258

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/37/8737/1

diff --git a/scripts/ovirtnode/storage.py b/scripts/ovirtnode/storage.py
index b83514c..22a2a99 100644
--- a/scripts/ovirtnode/storage.py
+++ b/scripts/ovirtnode/storage.py
@@ -861,6 +861,20 @@
 
             self.drive_disk_size = drive_disk_size
             self.drive_need_size = drive_need_size
+
+            if ROOT_NEED_SIZE > ROOTDRIVESPACE:
+                gap_size = ROOT_NEED_SIZE - ROOTDRIVESPACE
+                logger.error("The target storage device is too small for " +
+                             "the desired sizes:")
+                logger.error(" Disk Target: Root")
+                logger.error(" Size of target storage device: " +
+                             str(ROOTDRIVESPACE) + "MB")
+                logger.error(" Total storage size to be used: " +
+                             str(ROOT_NEED_SIZE) + "MB")
+                logger.error("You need an additional " + str(gap_size) +
+                             "MB of storage.")
+                return False
+
             if drive_need_size > drive_disk_size:
                 gap_size = drive_need_size - drive_disk_size
                 logger.error("The target storage device is too small for " +


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I275f894ca5fb33e03cb7594f003e2fd6835d4d36
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