Description of problem: Use the command `oc describe quota quotaname` can not show the total used imagestreamsize Version-Release number of selected component (if applicable): oc v1.1.3-483-g28cba69 kubernetes v1.2.0-alpha.7-703-gbc4550d How reproducible: Always Steps to Reproduce: 1. As cluster-admin create 'quota' for project: { "apiVersion": "v1", "kind": "ResourceQuota", "metadata": { "name": "quota" }, "spec": { "hard": { "memory": "1Gi", "cpu": "20", "openshift.io/imagesize": "0.5Gi", "openshift.io/imagestreamsize": "1.5Gi", "openshift.io/projectimagessize": "40Gi", "pods": "10", "services": "5", "replicationcontrollers":"5", "resourcequotas":"1" } } } 2. Login the OpenShift and create some imagestreams and push them 3. Check the quota info: 4. Check all the imagestreams info: Actual results: 3. The total used imagestreams is always 0; [root@ip-172-18-6-103 amd64]# oc describe quota quota Name: quota Namespace: zhouy Resource Used Hard -------- ---- ---- cpu 600m 20 memory 300Mi 1Gi openshift.io/imagesize 0 512Mi openshift.io/imagestreamsize 0 1536Mi openshift.io/projectimagessize 1291975965 40Gi pods 2 10 replicationcontrollers 2 5 resourcequotas 1 1 services 2 5 4. Can see the each one imagestream used size. [root@ip-172-18-6-103 amd64]# oc get is NAME DOCKER REPO TAGS UPDATED custom-docker 172.30.30.92:5000/zhouy/custom-docker v1 About a minute ago mybox 172.30.30.92:5000/zhouy/mybox latest 9 minutes ago myruby 172.30.30.92:5000/zhouy/myruby latest 6 minutes ago mytest 172.30.30.92:5000/zhouy/mytest latest 16 minutes ago origin-ruby-sample 172.30.30.92:5000/zhouy/origin-ruby-sample latest 19 minutes ago ruby-20-centos7 openshift/ruby-20-centos7 latest 20 minutes ago [root@ip-172-18-6-103 amd64]# oc describe is custom-docker Name: custom-docker Created: About a minute ago Labels: <none> Annotations: <none> Docker Pull Spec: 172.30.30.92:5000/zhouy/custom-docker Quota Usage: 0.40GiB / 1.51GiB Tag Spec Created PullSpec Image v1 <pushed> About a minute ago 172.30.30.92:5000/zhouy/custom-docker@sha256:38e9ba386d503f... <same> [root@ip-172-18-6-103 amd64]# oc describe is myruby Name: myruby Created: 6 minutes ago Labels: <none> Annotations: <none> Docker Pull Spec: 172.30.30.92:5000/zhouy/myruby Quota Usage: 0.39GiB / 1.51GiB Expected results: Could show the total used imagestreams correctly. Additional info:
That's expected. See a related documentation [1][2]. [1] https://github.com/openshift/openshift-docs/blob/master/dev_guide/quota.adoc#usage-limits [2] https://github.com/openshift/openshift-docs/blob/master/dev_guide/quota.adoc#view-a-quota The reason behind it is that there are many imagestreams in namespace and the usage can show value of just one. The question is which one? The same applies to images. Would you rather see something different (e.g. a size of the biggest image stream? And the size of the biggest image)? That wouldn't be a problem.
As Michal explained, this works as expected. Assigning back to QA.
According to the document, zero is ok. will verify .