[node-patches] Change in ovirt-node[master]: set iscsi root size to ROOT_SIZE instead of hardcoding

jboggs at redhat.com jboggs at redhat.com
Tue Jul 16 19:56:16 UTC 2013


Joey Boggs has uploaded a new change for review.

Change subject: set iscsi root size to ROOT_SIZE instead of hardcoding
......................................................................

set iscsi root size to ROOT_SIZE instead of hardcoding

Change-Id: I9b24a86fbcc4e85f57a88216d87a6f576b947685
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M src/ovirtnode/storage.py
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/63/16963/1

diff --git a/src/ovirtnode/storage.py b/src/ovirtnode/storage.py
index 5fb0399..563df4c 100644
--- a/src/ovirtnode/storage.py
+++ b/src/ovirtnode/storage.py
@@ -592,11 +592,13 @@
         _functions.system(parted_cmd)
         logger.debug("Creating Root and RootBackup Partitions")
         parted_cmd = ("parted \"" + self.ISCSIDRIVE +
-                     "\" -s \"mkpart primary ext2 1M 256M\"")
+                      "\" -s \"mkpart primary 1M " +
+                      str(self.ROOT_SIZE) + "M\"")
         logger.debug(parted_cmd)
         _functions.system(parted_cmd)
         parted_cmd = ("parted \"" + self.ISCSIDRIVE +
-                     "\" -s \"mkpart primary ext2 256M 512M\"")
+                     "\" -s \"mkpart primary ext2 " + str(self.ROOT_SIZE) +
+                     "M " + str(self.ROOT_SIZE * 2) + "M\"")
         logger.debug(parted_cmd)
         _functions.system(parted_cmd)
         # sleep to ensure filesystems are created before continuing


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

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