Bug 849197

Summary: Both haproxy gear group and web gear group should have the same qutoa.
Product: OKD Reporter: Johnny Liu <jialiu>
Component: PodAssignee: Dan McPherson <dmcphers>
Status: CLOSED UPSTREAM QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.x   
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: 2012-08-17 18:52:02 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 Johnny Liu 2012-08-17 16:56:23 UTC
Description of problem:
Due to web gear will sync the content of haproxy gear, once haproxy gear is set qutoa to a larger value than web gear, sync will fail.

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

How reproducible:
Always

Steps to Reproduce:
1.Create a scalable app
2.Set qutoa to 2G for haproxy gear group by calling rest api, default qutoa of web gear is 1G.
3.Log into haproxy gear, create ~/<app_name>/phplib/testfile using dd, its size is 1.5G, so that create a dummy test scenarios.
4.Do some change in app repo, then git push
  
Actual results:
Git push failed at rsync step.
<--snip-->
remote: + rsync -v --delete-after -az /var/lib/stickshift/01ec2d9914874c9cb22d552f7429d97d/myapp//phplib/ 8b959c7aa31745f894944f4071b87fbf.123.93:8b959c7aa3/phplib/
remote: building file list ... done
remote: ./
remote: testfile
remote: rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
remote: rsync: write failed on "/var/lib/stickshift/8b959c7aa31745f894944f4071b87fbf/8b959c7aa3/phplib/testfile": Disk quota exceeded (122)
remote: rsync error: error in file IO (code 11) at receiver.c(301) [receiver=3.0.6]
remote: rsync: connection unexpectedly closed (31 bytes received so far) [sender]
remote: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
remote: Exit code: 1
remote: Starting application...
<--snip-->

Expected results:
haproxy gear should not be allowed to set qutoa to a larger value than web gear's quota, or at least once qutoa of haproxy gear group is set, web gear group should have the same quota as haproxy gear group, so that no disk overcommit happen.

Additional info:

Comment 1 Johnny Liu 2012-08-17 17:08:25 UTC
Acctually I think it is better both haproxy gear group and web gear group should have the same quota. 

Becasue even if set quota for haproxy gear group is limited, but also should limit set web gear group's quota to a value less than haproxy gear group.

Comment 2 Dan McPherson 2012-08-17 18:52:02 UTC
These are being changed to be in the same gear group upstream.  Going to wait for that story (US2711 and the impl story for it next sprint) to be complete before this is fixed.