Bug 1049779

Summary: [origin_node_319]Failed to show warning messages when git touchpoints reach 90%+ for scaled-up gear
Product: OpenShift Online Reporter: chunchen <chunchen>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-08 15:14:13 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 chunchen 2014-01-08 08:06:33 UTC
Description of problem:
It's failed to show warning messages when git touchpoints reach 90%+ for scaled-up gear, the messages only can be shown for head gear.

Version-Release number of selected component (if applicable):
devenv_4195

How reproducible:
always

Steps to Reproduce:
1. Create a scaled app
rhc app create cpy27s  python-2.7 -s

2. Scale up this app
rhc cartridge scale python-2.7 -a cpy27s --min 2

3. Write some data to head gear and scaled-up gear to make disk quota and inodes reach 90%+
ssh <head_gear_SSH_URL>
ssh <scaled-up_gear_SSH_URL>
After ssh into the gears, do as below:
cd ~/app-root/data
dd if=/dev/zero of=950M.txt bs=1M count=950; ### if quota limitation is 1024MB
for i in `seq 1 75000`; do touch ccy$i.t; done   ### if inodes limitation is 80000

4. Make some changes in local repo
cd cpy27s;
git add . && git commit -amp && git push

Actual results:
<-------snip------->
remote: Script /var/lib/openshift/52ccc1123500c0cf8c000099/python//virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/52ccc1123500c0cf8c000099/python/virtenv/bin/python)
remote: Starting PYTHON cart
remote: Warning: Gear 52ccc1123500c0cf8c000099 is using 93.9% of disk quota
remote: Warning: Gear 52ccc1123500c0cf8c000099 is using 95.1% of inodes allowed
remote: Result: success
remote: Distribution status: success
remote: Activation status: success
remote: Deployment completed with status: success
<-------snip------->


Expected results:
Should show warning messages when git touchpoints reach 90%+ for scaled-up gear successfully.

Additional info:

Comment 1 Jhon Honce 2014-01-08 15:14:13 UTC
During the git push process, the head gear cannot verify the quota on other gears.