Bug 849197 - Both haproxy gear group and web gear group should have the same qutoa.
Both haproxy gear group and web gear group should have the same qutoa.
Product: OpenShift Origin
Classification: Red Hat
Component: Pod (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Dan McPherson
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2012-08-17 12:56 EDT by Johnny Liu
Modified: 2015-05-14 22:03 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-08-17 14:52:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Johnny Liu 2012-08-17 12:56:23 EDT
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):

How reproducible:

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.
remote: + rsync -v --delete-after -az /var/lib/stickshift/01ec2d9914874c9cb22d552f7429d97d/myapp//phplib/ 8b959c7aa31745f894944f4071b87fbf@
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...

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 13:08:25 EDT
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 14:52:02 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.