Project

General

Profile

Actions

Bug #6823

closed

you can not install on systems with big disk space: The installation requires at least 5G of storage.

Added by Bryan Kearney over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1123582
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:
  1. 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:

  1. rpm -qf /usr/share/katello-installer/checks/disk_size.rb
    katello-installer-0.0.56-1.el7sat.noarch
  2. 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]

  1. 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
  2. Eat the exception and continue
    end
Actions #1

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 54
  • Pull request https://github.com/Katello/katello-installer/pull/92 added
  • Pull request deleted ()
Actions #2

Updated by Eric Helms over 9 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by Anonymous over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF