Bug 1273140

Summary: wrong usage estimation
Product: OpenShift Container Platform Reporter: mike <dss.light>
Component: NodeAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED DUPLICATE QA Contact: Jianwei Hou <jhou>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.2.0CC: aos-bugs, jokerman, mmccomas, tiwillia, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-20 20:56:59 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 mike 2015-10-19 18:10:41 UTC
Description of problem:
Quota script show wring usage, which become valid after application restart


Version-Release number of selected component (if applicable):
diy
and probably on other components

How reproducible:



Steps to Reproduce:
1. Have component with application wich actively use filesystem, write to it and logrotator, which rotate logs, deleting oversized
2. execute "quota -w|egrep -v '(quotas|Filesystem)'|awk -F ' ' '{ print $2}'"
3. du -cksh *

Actual results:
523440

Expected results:
470M    total

Additional info:
Also made masurement with this command "rhc show-app diy --gears quota"
55e3779b89f5cf236f000081 diy-0.1 cron-1.4 mongodb-2.4 mmahut-quotamonitor-1.0 0.5 GB  1 GB

recently saw like result of this command and "du -cksh *" showed usage 0.6 GB and "quota" showed that usage oversized

Comment 2 Timothy Williams 2016-01-20 20:56:59 UTC
Closing this as a duplicate of 1109935

The difference between openshift's use of `du` and `quota` is being addressed in 1109935.

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