Bug 1257845
Summary: | Memory used in quota should be more readable. | ||
---|---|---|---|
Product: | OKD | Reporter: | Liang Xia <lxia> |
Component: | oc | Assignee: | Fabiano Franz <ffranz> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Yan Du <yadu> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.x | CC: | aos-bugs, mmccomas, pweil, yinzhou |
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: | 2017-05-30 12:50:05 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
Liang Xia
2015-08-28 08:37:26 UTC
Fixed in master. Confirmed with ami devenv_rhel7_3664, the memory is readable, but other fields like openshift.io/projectimagessize is still unreadable. please see: [root@ip-172-18-4-110 amd64]# oc describe quota Name: test-quota Namespace: zhouy Resource Used Hard -------- ---- ---- cpu 100m 200m memory 100Mi 512Mi openshift.io/imagesize 0 214748364800m openshift.io/imagestreamsize 0 214748364800m openshift.io/projectimagessize 160102255 214748364800m pods 1 3 replicationcontrollers 0 3 resourcequotas 1 1 services 0 3 Use json: [root@ip-172-18-4-110 amd64]# more quota.json { "apiVersion": "v1", "kind": "ResourceQuota", "metadata": { "name": "test-quota" }, "spec": { "hard": { "memory": "512Mi", "cpu": "200m", "openshift.io/imagesize": "0.2Gi", "openshift.io/imagestreamsize": "0.2Gi", "openshift.io/projectimagessize": "0.2Gi", "pods": "3", "services": "3", "replicationcontrollers": "3", "resourcequotas": "1" } } } Step to create the IS: `docker pull docker.io/zhouying7780/singlelayer` `docker tag docker.io/zhouying7780/singlelayer 172.30.188.203:5000/zhouy/hellotest:latest` `docker push 172.30.188.203:5000/zhouy/hellotest:latest` When use the json format like this : [root@ip-172-18-4-110 amd64]# more quota.json { "apiVersion": "v1", "kind": "ResourceQuota", "metadata": { "name": "test-quota" }, "spec": { "hard": { "memory": "512Mi", "cpu": "200m", "openshift.io/imagesize": "200Mi", "openshift.io/imagestreamsize": "200Mi", "openshift.io/projectimagessize": "200Mi", "pods": "3", "services": "3", "replicationcontrollers": "3", "resourcequotas": "1" } } } The result is still unreadable: [root@ip-172-18-4-110 amd64]# oc describe quota Name: test-quota Namespace: zhouy Resource Used Hard -------- ---- ---- cpu 100m 200m memory 100Mi 512Mi openshift.io/imagesize 0 200Mi openshift.io/imagestreamsize 0 200Mi openshift.io/projectimagessize 160102255 200Mi pods 1 3 replicationcontrollers 0 3 resourcequotas 1 1 services 0 3 the image items here have since been replaced. This can be retested with openshift.io/Image (which should be the only size related one, there are other count-based items) # oc describe quota Name: test-quota Namespace: default Resource Used Hard -------- ---- ---- cpu 200m 200m memory 512Mi 512Mi openshift.io/Image 0 200Mi openshift.io/imagesize 0 200Mi openshift.io/imagestreamsize 0 200Mi openshift.io/projectimagessize 0 200Mi pods 2 3 replicationcontrollers 10 3 resourcequotas 1 1 services 4 3 # oc version oc v3.5.0.31-1+d55d08f kubernetes v1.5.2+43a9be4 features: Basic-Auth GSSAPI Kerberos SPNEGO |