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

mark apiservices without reachable discovery as bad #14595

Merged
merged 3 commits into from
Jun 15, 2017

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Jun 12, 2017

xref #14500

The upstream change for the discovery endpoint check doesn't match the upstream pull, but the spirit is the same.

@jwforres @bparees this was enough for me to restart successfully, though I haven't ruled out races. I think I may need to add some of the healthz protections into the openshift all in one.

@deads2k
Copy link
Contributor Author

deads2k commented Jun 12, 2017

[test]

req.WithContext(ctx)
resp, err := httpClient.Do(req)
if err != nil {
availableCondition.Status = apiregistration.ConditionFalse
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the retry behaviour if this fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what's the retry behaviour if this fails?

It will retry

  1. when the apiservice resyncs
  2. when the service changes
  3. when the endpoints change

We can add a separate timer if you like, but those ought not take too long.

Copy link
Contributor

Choose a reason for hiding this comment

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

30min or more is long, 5min would be ok IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

30min or more is long, 5min would be ok IMO.

Resync is 5 minutes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Perfect. A comment here wouldn't harm.

@@ -194,6 +223,28 @@ func (c *AvailableConditionController) sync(key string) error {
return err
}

func getDestinationHost(apiService *apiregistration.APIService, serviceLister v1listers.ServiceLister) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

how will this look like in 3.7? We get Walter's dialer code, right? Maybe add a Rebase 3.7 note here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

how will this look like in 3.7? We get Walter's dialer code, right? Maybe add a Rebase 3.7 note here.

See kubernetes/kubernetes#47347

Copy link
Contributor

Choose a reason for hiding this comment

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

that's what I expected 👍

@deads2k
Copy link
Contributor Author

deads2k commented Jun 13, 2017

Comments added.

[merge][severity:blocker]

(edited by liggitt to add blocker)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 48d3654

@deads2k deads2k added the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2017
@liggitt liggitt added this to the 3.6.0 milestone Jun 14, 2017
@smarterclayton
Copy link
Contributor

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 48d3654

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2250/) (Base Commit: 811a267)

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 15, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1006/) (Base Commit: ec11c0d) (Extended Tests: blocker) (Image: devenv-rhel7_6361)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants