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

Bug 1962083

Summary: Conflict error when creating resources due to resource quota conflict (409)
Product: OpenShift Container Platform Reporter: Andreas Karis <akaris>
Component: kube-apiserverAssignee: Stefan Schimanski <sttts>
Status: CLOSED NOTABUG QA Contact: Ke Wang <kewang>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aos-bugs, mfojtik, xxia
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: 2021-05-19 10:52:43 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 Andreas Karis 2021-05-19 09:37:42 UTC
Description of problem:

Hello,

We must investigate and address https://github.com/kubernetes/kubernetes/issues/67761

Under specific circumstances (unknown to me), in namespaces with resourcequotas, Kubernetes will seemingly randomly return:
~~~
{"ErrStatus":{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Operation cannot be fulfilled on resourcequotas \"quota\": the object has been modified; please apply your changes to the latest version and try again","reason":"Conflict","details":{"name":"quota","kind":"resourcequotas"},"code":409}}
~~~

The issue happens once in a blue moon and can currently be reproduced with helm (our latest version and helm upstream).

For further details, please see: https://bugzilla.redhat.com/show_bug.cgi?id=1934604

See https://bugzilla.redhat.com/show_bug.cgi?id=1934604#c32 and https://bugzilla.redhat.com/show_bug.cgi?id=1934604#c33

I suggested retry logic for helm here: https://github.com/helm/helm/issues/9710

While retrying upon 409 Conflict errors should be good practice for clients, it should not be the task of every single client to catch the aforementioned resourcequota 409 as this looks like an internal issue to kubernetes / OpenShift.

If you look at https://github.com/kubernetes/kubernetes/issues/67761, a lot of clients are working around this currently, yet this kubernetes issue remained open for 2 years without a fix.

Something anecdotal: Our customer reported that this issue happens more often in their current version of OCP 4.6 (4.6.17) compared to the version of OCP which they ran before (4.5.16).


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Stefan Schimanski 2021-05-19 10:52:43 UTC
This is known, but purely cosmetics. The Kubernetes API requires clients to retry on 409. If there are workarounds necessary in Helm, this is Helms fault.