Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1123582

Summary: Satellite 6 cannot install on systems with big disk space: katello-installer fails with "The installation requires at least 5G of storage"
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: InstallationAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.3CC: bbuckingham, dlobatog, jmontleo, kbidarka, mmccune, stbenjam, sthirugn, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6823
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:24:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1115190    

Description Jan Hutař 2014-07-26 21:57:18 UTC
Description of problem:
Installer complains I do not have enough free disk space - you can not install


Version-Release number of selected component (if applicable):
Satellite-6.0.4-RHEL-7-20140723.0


How reproducible:
always


Steps to Reproduce:
1. Check you gave free disk space in TBs:
   # df -H --total
   Filesystem                              Size  Used Avail Use% Mounted on
   /dev/mapper/rhel_dell--per620--02-root   54G  2.7G   51G   6% /
   devtmpfs                                 17G     0   17G   0% /dev
   tmpfs                                    17G     0   17G   0% /dev/shm
   tmpfs                                    17G  9.4M   17G   1% /run
   tmpfs                                    17G     0   17G   0% /sys/fs/cgroup
   /dev/sda1                               521M  110M  412M  22% /boot
   /dev/mapper/rhel_dell--per620--02-home   47T   36M   47T   1% /home
   total                                    47T  2.9G   47T   1% -
1. On a system with big enough free disk space (it TB) just run:
   # katello-installer


Actual results:
# katello-installer
The installation requires at least 5G of storage.
Your system does not meet configuration criteria


Expected results:
Installation should proceed


Additional info:
I believe this is caused by this code which expects free disk space to be in gigabytes:

# rpm -qf /usr/share/katello-installer/checks/disk_size.rb
katello-installer-0.0.56-1.el7sat.noarch
# cat /usr/share/katello-installer/checks/disk_size.rb
#!/usr/bin/env ruby

SIZE = %q(The installation requires at least 5G of storage.) 

def error_exit(message, code)
  $stderr.puts message
  exit code
end

begin
    total_space = `df -H --total`.split("\n")[-1].split()[3]

    # Look for a value greater than 4GB
    error_exit(SIZE, 1) unless total_space.include?("G")
    error_exit(SIZE, 2) if total_space.gsub("G","").to_i < 5
rescue
    # Eat the exception and continue
end

Comment 3 Bryan Kearney 2014-07-29 18:50:58 UTC
Created redmine issue http://projects.theforeman.org/issues/6823 from this bug

Comment 5 Bryan Kearney 2014-08-11 20:05:33 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6823 has been closed
-------------
Anonymous
Applied in changeset commit:katello-installer|3c780f8f3d9673cd5e664ecf05061b81ba6e3a5c.

Comment 8 Daniel Lobato Garcia 2014-09-01 16:38:13 UTC
DEVELOPER VERIFIED: I tested this on my own computer with TBs of free space. It passes the disk size checks well. I wanted to clone the beaker job to test it again but I'm not member of the group 'satellite'.

Comment 9 Kedar Bidarkar 2014-09-02 09:09:07 UTC
Tested with TBs of storage and on Sat6-GA-snap7


Installed Packages

    candlepin-0.9.23-1.el6_5.noarch
    candlepin-common-1.0.1-1.el6_5.noarch
    candlepin-scl-1-5.el6_4.noarch
    candlepin-scl-quartz-2.1.5-5.el6_4.noarch
    candlepin-scl-rhino-1.7R3-1.el6_4.noarch
    candlepin-scl-runtime-1-5.el6_4.noarch
    candlepin-selinux-0.9.23-1.el6_5.noarch
    candlepin-tomcat6-0.9.23-1.el6_5.noarch
    createrepo-0.9.9-21.2.pulp.el6sat.noarch
    elasticsearch-0.90.10-6.el6sat.noarch
    katello-1.5.0-30.el6sat.noarch
    katello-certs-tools-1.5.6-1.el6sat.noarch
    katello-default-ca-1.0-1.noarch
    katello-installer-0.0.64-1.el6sat.noarch
    katello-server-ca-1.0-1.noarch
    mod_wsgi-3.4-1.pulp.el6sat.x86_64
    pulp-katello-0.3-4.el6sat.noarch
    pulp-nodes-common-2.4.1-0.5.rc1.el6sat.noarch
    pulp-nodes-parent-2.4.1-0.5.rc1.el6sat.noarch
    pulp-puppet-plugins-2.4.1-0.5.rc1.el6sat.noarch
    pulp-puppet-tools-2.4.1-0.5.rc1.el6sat.noarch
    pulp-rpm-plugins-2.4.1-0.6.beta.el6sat.noarch
    pulp-selinux-2.4.1-0.5.rc1.el6sat.noarch
    pulp-server-2.4.1-0.5.rc1.el6sat.noarch
    python-gofer-qpid-1.3.0-1.el6sat.noarch
    python-isodate-0.5.0-1.pulp.el6sat.noarch
    python-kombu-3.0.15-12.pulp.el6sat.noarch
    python-pulp-bindings-2.4.1-0.5.rc1.el6sat.noarch
    python-pulp-common-2.4.1-0.5.rc1.el6sat.noarch
    python-pulp-puppet-common-2.4.1-0.5.rc1.el6sat.noarch
    python-pulp-rpm-common-2.4.1-0.6.beta.el6sat.noarch
    python-qpid-0.22-14.el6sat.noarch
    python-qpid-qmf-0.22-37.el6.x86_64
    qpid-cpp-client-0.22-42.el6.x86_64
    qpid-cpp-server-0.22-42.el6.x86_64
    qpid-cpp-server-linearstore-0.22-42.el6.x86_64
    qpid-java-client-0.22-6.el6.noarch
    qpid-java-common-0.22-6.el6.noarch
    qpid-proton-c-0.7-1.el6.x86_64
    qpid-qmf-0.22-37.el6.x86_64
    qpid-tools-0.22-12.el6.noarch
    ruby193-rubygem-katello-1.5.0-86.el6sat.noarch
    rubygem-hammer_cli_katello-0.0.4-14.el6sat.noarch
    rubygem-smart_proxy_pulp-1.0.1-1.1.el6sat.noarch

Comment 10 Bryan Kearney 2014-09-11 12:24:20 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.