Bug 1401073
Summary: | Deleted namespaces are not removed from clusterresourcequota status | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jordan Liggitt <jliggitt> |
Component: | Master | Assignee: | Jordan Liggitt <jliggitt> |
Status: | CLOSED ERRATA | QA Contact: | Qixuan Wang <qixuan.wang> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.3.1 | CC: | aos-bugs, dma, jokerman, mmccomas, pweil, tdawson |
Target Milestone: | --- | ||
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: | 2017-01-18 12:56:49 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
Jordan Liggitt
2016-12-02 17:41:58 UTC
fixed in origin 1.4 in https://github.com/openshift/origin/pull/12125 fixed in origin master in https://github.com/openshift/origin/pull/12123 fixed in ose 3.3 in https://github.com/openshift/ose/pull/492 This has been merged into ocp and is in OCP v3.4.0.33 or newer. Tested on OCP 3.4.0.33(openshift v3.4.0.33+71c05b2, kubernetes v1.4.0+776c994, etcd 3.1.0-rc.0),the problem has been solved, thanks. Here are steps: # oc create clusterresourcequota crq-1 --project-annotation-selector=openshift.io/requester=user --hard=secrets=50 clusterresourcequota "crq-1" created # oc new-project p-1 --as=user # oc new-project p-2 --as=user # oc get clusterresourcequota crq-1 -o yaml apiVersion: v1 kind: ClusterResourceQuota metadata: creationTimestamp: 2016-12-07T05:48:08Z name: crq-1 resourceVersion: "5256" selfLink: /oapi/v1/clusterresourcequotas/crq-1 uid: bb65ba06-bc40-11e6-898f-0eda563642d4 spec: quota: hard: secrets: "50" selector: annotations: openshift.io/requester: user labels: null status: namespaces: - namespace: p-1 status: hard: secrets: "50" used: secrets: "9" - namespace: p-2 status: hard: secrets: "50" used: secrets: "9" total: hard: secrets: "50" used: secrets: "18" # oc delete project p-1 project "p-1" deleted # oc get clusterresourcequota crq-1 -o yaml apiVersion: v1 kind: ClusterResourceQuota metadata: creationTimestamp: 2016-12-07T05:48:08Z name: crq-1 resourceVersion: "5335" selfLink: /oapi/v1/clusterresourcequotas/crq-1 uid: bb65ba06-bc40-11e6-898f-0eda563642d4 spec: quota: hard: secrets: "50" selector: annotations: openshift.io/requester: user labels: null status: namespaces: - namespace: p-2 status: hard: secrets: "50" used: secrets: "9" total: hard: secrets: "50" used: secrets: "9" Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0066 |