-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volume command doesn't retry on conflicts #4351
Comments
oc volume dc/test-deployment-config --remove --confirm
Not sure if it should retry, but failure is making cmd tests flake |
I think most commands that don't take a resourceVersion as input, and that fetch and immediately update, should retry at least once if they get a conflict. If the user didn't provide a resourceVersion as input, then they are requesting a bounded mutation which the command should attempt to fulfil. This is especially important on resources that get modified by controller loops (deployment configs, replication controllers, pods, etc). Example commands (when not provided a resourceVersion as input):
|
I thought we opened an upstream issue for this |
Things we can check
A generalized pattern would be better than a specific one. |
I'm wondering if we should now be using Patch on the server for this. |
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6679/console
|
Post 1.1 |
Does this problem still exist? |
Yes, the |
not sure if this is the same issue or not, but:
as seen in: |
It is indeed On Jun 30, 2016, at 6:02 AM, Ben Parees notifications@github.com wrote: not sure if this is the same issue or not, but: === BEGIN TEST CASE === Standard error from the command: as seen in: — |
We switched the most common offenders to use patch which allowed them to automatically reapply non-conflicting changes. A blind |
I emailed @liggitt about this, but one potential problem I have been grappling with is - this command can't be entirely moved to use PATCH because it allows user to create volume claims when adding volumes to Deploymentconfig etcetra. So I am thinking, this has to be done in two steps:
Does it make sense? @smarterclayton @childsb |
It's ok to create claims first with a post then apply a patch in a consistent code for changing the template. After all, we don't support atomic operations anyway. |
oc volume dc/test-deployment-config --remove --confirm
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/4461/console
The text was updated successfully, but these errors were encountered: