-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Hold startup until etcd has stabilized cluster version #14095
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smarterclayton you know it is very strange to start a go routine and then immediately block on it...
pkg/cmd/server/start/start_master.go
Outdated
//if len(kc.Options.APIServerArguments) > 0 && len(kc.Options.APIServerArguments["storage-backend"]) > 0 && kc.Options.APIServerArguments["storage-backend"][0] == "etcd2" { | ||
if _, err := etcd.GetAndTestEtcdClient(oc.Options.EtcdClientInfo); err != nil { | ||
return err | ||
if len(kc.Options.APIServerArguments) > 0 && len(kc.Options.APIServerArguments["storage-backend"]) > 0 && kc.Options.APIServerArguments["storage-backend"][0] == "etcd2" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @sttts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed and reversed this condition (etcd2 is the default).
Sometimes, but cleanup code is tricky to get right. |
9bb5c05
to
3a4cb5e
Compare
[test] |
Uncomment gate for version detection.
3a4cb5e
to
27704a7
Compare
Evaluated for origin test up to 27704a7 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1328/) (Base Commit: 2d26eae) |
Any other comments? |
lgtm |
Approved as this is causing integration failures. [merge] |
[merge] install failure |
Evaluated for origin merge up to 27704a7 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/624/) (Base Commit: e1a81e8) (Image: devenv-rhel7_6228) |
Uncomment gate for version detection.
Fixes #14063 @ncdc re: the code I uncommented