Bug 1026193

Summary: The command "rhc app show --gears /port-forword/tail $app "could NOT trigger client message about quota warning.
Product: OpenShift Online Reporter: Qiushui Zhang <qiuzhang>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED WONTFIX QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: ccoleman, dmcphers, ffranz, jliggitt, wzheng, xiuwang, xtian
Target Milestone: ---Keywords: UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-11 21:42:22 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 Qiushui Zhang 2013-11-04 07:14:46 UTC
Description of problem:
Add files to an application, so that more than 90% quota is used. Do "rhc app show $appname --gears". There is no quota warning message.

Version-Release number of selected component (if applicable):
STG(devenv_stage_549)
devenv_3984
rhc 1.16.9

How reproducible:
always

Steps to Reproduce:
1. Create an application
rhc app create rb ruby-1.9
2. Create files to occupy the space. On the gear,
dd if=/dev/zero of=~/app-root/data/testfile bs=1M count=950
3. Do "rhc app show rb --gears"

Actual results:
No quota warning message is shown

Expected results:
There should be quota warning message like "Warning gear 52773c8e2587c8470500006c is using 93.0% of disk quota"

Additional info:
"rhc port-forward rb -g 52773c8e2587c8470500006c" will NOT trigger the warning message, too. Even no quota warning logs are added to "/var/log/ruby193-mcollective.log"

Comment 1 XiuJuan Wang 2013-11-11 09:11:55 UTC
devenv_4016
rhc 1.17.2
'rhc port-forward $app'  and 'rhc tail $app' are also no quota warning message

Comment 2 Fabiano Franz 2013-11-12 20:09:47 UTC
This is related to commands that use ssh to perform.

Comment 4 Fabiano Franz 2014-01-28 04:17:31 UTC
Work in progress here: https://github.com/fabianofranz/rhc/tree/bugs/1026193

Requires a review of other commands too. There seems to be other commands that should warn about quota usage but are not. Tagging UpcomingRelease but will merge to stage if possible.

Comment 5 Fabiano Franz 2014-01-28 18:53:06 UTC
Commands that need to check quota (not doing it right now):

show-app
deployments | list-deployment
show-deployment
activate-deployment
port-forward
tail
show-cartridge
status-cartridge
git-clone
save-snapshot
restore-snapshot