Skip to content

Hold startup until etcd has stabilized cluster version - #14095

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:start_order
May 13, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:start_order

Conversation

@smarterclayton

Copy link
Copy Markdown
Contributor

Uncomment gate for version detection.

Fixes #14063 @ncdc re: the code I uncommented

@enj enj left a comment

Copy link
Copy Markdown
Contributor

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...

Comment thread 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" {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cc @sttts

Copy link
Copy Markdown
Contributor Author

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).

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Sometimes, but cleanup code is tricky to get right.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test]

Uncomment gate for version detection.
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 27704a7

@openshift-bot

Copy link
Copy Markdown
Contributor

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Any other comments?

@sttts

sttts commented May 11, 2017

Copy link
Copy Markdown
Contributor

lgtm

@enj enj added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 11, 2017
@enj

enj commented May 11, 2017

Copy link
Copy Markdown
Contributor

Approved as this is causing integration failures.

[merge]

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[merge] install failure

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 27704a7

@openshift-bot

openshift-bot commented May 13, 2017 •

Copy link
Copy Markdown
Contributor

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)

@openshift-bot
openshift-bot merged commit a2e505b into openshift:master May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants