Bug 1655500

Summary: [online-stg]Volume emptyDir should be limited to 1024M in the Pod
Product: OpenShift Online Reporter: wangyu <yuwan>
Component: Accounts and BillingAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED WORKSFORME QA Contact: wangyu <yuwan>
Severity: high Docs Contact:
Priority: high    
Version: 3.xCC: aos-bugs, jokerman, mmccomas
Target Milestone: ---Keywords: OnlinePro
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-03 11:15: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 wangyu 2018-12-03 10:20:55 UTC
Description of problem:
Volume emptyDir should be limited to 1024M in the Pod

Version-Release number of selected component (if applicable):
OpenShift Master:v3.11.43
Kubernetes Master:v1.11.0+d4cacc0
OpenShift Web Console:v3.11.43

How reproducible:
100%

Steps to Reproduce:
1.Log in the openshift online-stg web console
2.Create a project,e.g.test1
3.Record the fsgroup ID from openshift.io/sa.scc.supplemental-groups
#oc export project test1
4.Create an emptydir pod with the bellow template,https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/persistent-volumes/emptydir/emptydir_pod_selinux_test.json 
5.Write file blcok larger than 512M to the volume.
#oc exec emptydir -- bash -lc dd\ if\=/dev/zero\ of\=/tmp/openshift-test-1\ bs\=200M\ count\=6

Actual results:
6.It succeed to write file larger than 1024M to the volume

Expected results:
6.There should be some error message "Disk quota exceeded" when user write file larger than 1024M to the volume.

Additional info: