Skip to content
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

deployment: retry failed watch when observed controller has old resource version #12910

Merged
merged 2 commits into from
Feb 16, 2017

Conversation

mfojtik
Copy link
Contributor

@mfojtik mfojtik commented Feb 10, 2017

Fixes: #12905

This is pretty hard to reproduce or wrap with unit test :-(

@Kargakis PTAL

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 10, 2017

[test]

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 10, 2017

[test]

flake: #12911

"github.com/openshift/origin/pkg/deploy/api"
deployutil "github.com/openshift/origin/pkg/deploy/util"
)

var (
// ErrUnknownDeploymentPhase is returned for WaitForRunningDeployment if an unknown phase is returned.
ErrUnknownDeploymentPhase = errors.New("unknown deployment phase")
ErrTooOldResourceVersion = errors.New("too old resource version")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this error typed in the watch library?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will look

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's strange that you recreate the error here and return it in place of the previous error which is essentially the same error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kargakis nope, I don't see any.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kargakis well I can return the original error, but I will have to type cast it twice :)

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 14, 2017

@smarterclayton @ncdc I've seen similar BZ about lifecycle hooks (same error message). Does something changed in how the watches work in last ~2 weeks?

@0xmichalis
Copy link
Contributor

If the lifecycle hook bug is the one with the mysql pod, I didn't find any hooks on that DC so we may want to check why we used the watch in the first place.

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 14, 2017

@Kargakis yes, that is what I'm looking at right now. (however, I don't think we touched the lifecycle hooks recently, so I'm interested if something changed in watches that causes this errors to surface now).

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 14, 2017

@Kargakis you ok merging this?

@0xmichalis
Copy link
Contributor

Can't we at least unit test this? I am scared of untested api changes going in.

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 15, 2017

@Kargakis agree, unit test sounds reasonable.

@0xmichalis
Copy link
Contributor

@openshift/api-review since this is essentially an api change

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 15, 2017

@Kargakis unit test added, PTAL

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d214e60

@smarterclayton
Copy link
Contributor

API change lgtm

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/219/) (Base Commit: 05377d4)

@0xmichalis
Copy link
Contributor

lgtm [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d214e60

@openshift-bot
Copy link
Contributor

openshift-bot commented Feb 16, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/257/) (Base Commit: efab088) (Image: devenv-rhel7_5923)

@openshift-bot openshift-bot merged commit 678ff3d into openshift:master Feb 16, 2017
@mfojtik mfojtik deleted the retry-rc-watch branch September 5, 2018 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants