Ryan Barry has uploaded a new change for review. Change subject: Update the messages in the storage volume page a bit... ......................................................................
Update the messages in the storage volume page a bit... With a bumped up default data size, increase the minimum drive size to match. Change-Id: Iae151bc12835c519e91373cdca9087fad98f4edf Signed-off-by: Ryan Barry <[email protected]> --- M src/ovirt/node/installer/core/storage_vol_page.py 1 file changed, 6 insertions(+), 5 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/39/40639/1 diff --git a/src/ovirt/node/installer/core/storage_vol_page.py b/src/ovirt/node/installer/core/storage_vol_page.py index e280510..2c26248 100644 --- a/src/ovirt/node/installer/core/storage_vol_page.py +++ b/src/ovirt/node/installer/core/storage_vol_page.py @@ -31,7 +31,7 @@ class Plugin(plugins.NodePlugin): _model = {} _free_space = 0 - _min_drive_size = 1295 + _min_drive_size = 1295 + 10*1024 _fill = True def name(self): @@ -74,8 +74,9 @@ if not self.__enough_free_space(): ws.extend([ui.Notice("space.notice", "Not enough space! Needs at least " - "1295MB for installation, %sMB " - "available" % self._drive_size)]) + "%sMB for installation, %sMB " + "available" % (str(1295 + 10*1024), + self._drive_size))]) if not self._fill: ws.extend([ui.KeywordLabel("storage.free_space", @@ -169,8 +170,8 @@ self._drive_size = int(stdout) / 1024 / 1024 else: # If we're not root and can't query the drive, - # pretend it's 5G - self._drive_size = 5242880 + # pretend it's 15G + self._drive_size = 15*1024**2 return {"storage.efi_size": "%s" % presets.BOOT_SIZE, "storage.root_size": "%s" % presets.ROOT_SIZE, "storage.swap_size": "0", -- To view, visit https://gerrit.ovirt.org/40639 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iae151bc12835c519e91373cdca9087fad98f4edf Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: Ryan Barry <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
