Bug 1523495

Summary: Free space check fail even there is enough free space in the disk partation
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: Satellite CloneAssignee: John Mitsch <jomitsch>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.3.0CC: ahumbe, bbuckingham, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-15 20:30:53 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:

Description Ranjan Kumar 2017-12-08 07:17:24 UTC
Description of problem: After modifying variable required_root_free_space, satellite still complain about less space and error message is misleading

TASK [satellite-clone : debug] ************************************************************************************************************************************************************************************
ok: [localhost] => {
    "msg": "Free space in root partition is 40.045805568GB and required free space is atleast 35GB. ***NOTE:*** If you have more pulp data, it is your responsibility to check for the required free space.  Perhaps you can increase the required_root_free_space variable to a desired high value."
}


How reproducible: Always


Steps to Reproduce:
1. Make sure disk space is less than 75 GB, after running satellite-clone, It raise error message for less disk space as given below

TASK [satellite-clone : debug] ************************************************************************************************************************************************************************************
Friday 08 December 2017  06:44:51 +0530 (0:00:00.083)       0:00:04.900 ******* 
ok: [localhost] => {
    "msg": "Free space in root partition is 32.03147776GB and required free space is atleast 75GB. ***NOTE:*** If you have more pulp data, it is your responsibility to check for the required free space.  Perhaps you can increase the required_root_free_space variable to a desired high value."
}

2. Now free some space and
Open /usr/share/satellite-clone/satellite-clone-vars.yml and modify required_root_free_space to 35 

TASK [satellite-clone : debug] ************************************************************************************************************************************************************************************
ok: [localhost] => {
    "msg": "Free space in root partition is 40.045805568GB and required free space is atleast 35GB. ***NOTE:*** If you have more pulp data, it is your responsibility to check for the required free space.  Perhaps you can increase the required_root_free_space variable to a desired high value."
}


Actual results:
"Free space in root partition is 40.045805568GB and required free space is atleast 35GB"

Expected results: It should not raise error


Additional info:

Comment 2 sthirugn@redhat.com 2018-01-15 20:30:53 UTC
The space check will be removed and is tracked in https://bugzilla.redhat.com/show_bug.cgi?id=1519535

*** This bug has been marked as a duplicate of bug 1519535 ***