Simone Tiraboschi has uploaded a new change for review.

Change subject: Providing details about the required free space
......................................................................

Providing details about the required free space

Adding a more meaningful text to better explain
how much free disk space you need to proceed

Change-Id: Iab06eeb467b6003a27bbe3566f0d64336f9d0728
Signed-off-by: Simone Tiraboschi <[email protected]>
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1077150
(cherry picked from commit 103e2c5443722bdfe23a0db6fbc808f38796442d)
---
M src/plugins/ovirt-hosted-engine-setup/storage/storage.py
1 file changed, 11 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/72/25972/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py 
b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py
index 7497519..58e6915 100644
--- a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py
+++ b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py
@@ -801,18 +801,27 @@
             except ohosteddomains.InsufficientSpaceError as e:
                 self.logger.debug('exception', exc_info=True)
                 self.logger.debug(e)
+                min_requirement = '%0.2f' % (
+                    ohostedcons.Const.MINIMUM_SPACE_STORAGEDOMAIN_MB / 1024.0
+                )
                 if interactive:
                     self.logger.error(
                         _(
                             'Storage domain for self hosted engine '
-                            'is too small'
+                            'is too small: '
+                            'you should have at least {min_r} GB free'.format(
+                                min_r=min_requirement,
+                            )
                         )
                     )
                 else:
                     raise RuntimeError(
                         _(
                             'Storage domain for self hosted engine '
-                            'is too small'
+                            'is too small: '
+                            'you should have at least {min_r} GB free'.format(
+                                min_r=min_requirement,
+                            )
                         )
                     )
         if self.environment[


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab06eeb467b6003a27bbe3566f0d64336f9d0728
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: ovirt-hosted-engine-setup-1.1
Gerrit-Owner: Simone Tiraboschi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to