Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1607621

Summary: Project quota not released after deleting pods
Product: OpenShift Container Platform Reporter: Steven Walter <stwalter>
Component: openshift-apiserverAssignee: Stefan Schimanski <sttts>
Status: CLOSED DEFERRED QA Contact: Xingxing Xia <xxia>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: aos-bugs, jokerman, mfojtik, mmccomas
Target Milestone: ---   
Target Release: 3.9.z   
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: 2019-11-20 18:57:45 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 Steven Walter 2018-07-23 20:26:02 UTC
Description of problem:
When deleting pods from a project, the project's quota's "Used" field does not change

Version-Release number of selected component (if applicable):
3.9

How reproducible:
Unconfirmed

Steps to Reproduce:
1) create new OpenShift project and apply quota to it (file quota1.yaml)
2) build new app with: `oc new-app http://git/repo' - quota reports 1 pod used (file quota2.yaml)
3) once the app build completes and deploys on a single pod, quota reports 5 pods running (file quota3.yaml)
4) pod export is attached (pod3.yml)

Expected results:
Quota's "Used" section should drop when pods are gone

Comment 2 Steven Walter 2018-07-23 20:30:39 UTC
Given that completed builds do not show up in "oc get pod" should they be counting against the quota usage?

Comment 3 Stephen Cuppett 2019-11-20 18:57:45 UTC
OCP 3.6-3.10 is no longer on full support [1]. Marking CLOSED DEFERRED. If you have a customer case with a support exception or have reproduced on 3.11+, please reopen and include those details. When reopening, please set the Target Release to the appropriate version where needed.

[1]: https://access.redhat.com/support/policy/updates/openshift