Previously, when attempting to deploy a self-hosted engine without enough free space on the storage the error message did not show what space was required and only showed the available space. This meant that the user needed to check in the documentation for the minimum required space. Now, a more complete error message is provided.
Description of problem:
The hosted engine appliance deployment fails with ERROR:
2016-02-11 10:20:12 WARNING otopi.plugins.ovirt_hosted_engine_setup.vm.image image._disk_customization:125 Not enough free space, about 35 GiB are available
2016-02-11 10:20:12 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/vm/image.py", line 135, in _disk_customization
estimate=estimate_gb
RuntimeError: Not enough free space, about 35 GiB are available
The documentation says:
Table 2.1. Hardware Requirements
Resource Minimum Recommended
Memory 4 GB RAM 16 GB RAM
Disk Space 25 GB writable disk space 50 GB writable disk space
The minimum is 25 GB so it should not fail with 35 iSCSI LUN. The user also cannot know that 5 GB will be taken by the metadata.
Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-1.2.6.1-1.el7ev.noarch
How reproducible:
100%
Steps to Reproduce:
1.Try to install ova on 35GB LUN
Actual results:
Fails with error message
Not enough free space, about 35 GiB are available
Expected results:
Either the minimum is fallowed or a proper message is logged. User does not care how much memory they have, but how much memory they need.
Comment 1Simone Tiraboschi
2016-02-17 13:09:56 UTC
Are you using the RHEV-M appliance? in that case we simply take the disk size in the appliance OVF without asking and, if I'm not wrong, upstream it's 10 GB (no issue) but downstream is 50 GB and so 35 are not enough.
See also: rhbz#1300591
(In reply to Simone Tiraboschi from comment #1)
> Are you using the RHEV-M appliance? in that case we simply take the disk
> size in the appliance OVF without asking and, if I'm not wrong, upstream
> it's 10 GB (no issue) but downstream is 50 GB and so 35 are not enough.
>
> See also: rhbz#1300591
Well that is understood, but the setup tool should say that. instead of
RuntimeError: Not enough free space, about 35 GiB are available
It should say something like
RuntimeError: Not enough free space (50GB required), about 35 GiB are available on the target storage domain.
This bug is about the information which is provided bout the error by the tool. Not about the actual error.
Verified on ovirt-hosted-engine-setup-2.0.0-0.0.master.20160325145108.gita9a3495.el7.centos.noarch
Error: device 3514f0c5a516002ac has capacity of only 5120Mb while a minimum of 20480Mb is required
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHEA-2016-1744.html
Description of problem: The hosted engine appliance deployment fails with ERROR: 2016-02-11 10:20:12 WARNING otopi.plugins.ovirt_hosted_engine_setup.vm.image image._disk_customization:125 Not enough free space, about 35 GiB are available 2016-02-11 10:20:12 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/vm/image.py", line 135, in _disk_customization estimate=estimate_gb RuntimeError: Not enough free space, about 35 GiB are available The documentation says: Table 2.1. Hardware Requirements Resource Minimum Recommended Memory 4 GB RAM 16 GB RAM Disk Space 25 GB writable disk space 50 GB writable disk space The minimum is 25 GB so it should not fail with 35 iSCSI LUN. The user also cannot know that 5 GB will be taken by the metadata. Version-Release number of selected component (if applicable): ovirt-hosted-engine-setup-1.2.6.1-1.el7ev.noarch How reproducible: 100% Steps to Reproduce: 1.Try to install ova on 35GB LUN Actual results: Fails with error message Not enough free space, about 35 GiB are available Expected results: Either the minimum is fallowed or a proper message is logged. User does not care how much memory they have, but how much memory they need.