Bug 1655500 - [online-stg]Volume emptyDir should be limited to 1024M in the Pod
Summary: [online-stg]Volume emptyDir should be limited to 1024M in the Pod
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Accounts and Billing
Version: 3.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: wangyu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-03 10:20 UTC by wangyu
Modified: 2018-12-03 11:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-03 11:15:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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:


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