Skip to content

Introduces h2c auto-detection support in health prober - #10628

Merged
knative-prow-robot merged 13 commits into
knative:masterfrom
rafaeltello:proberhack
Feb 27, 2021
Merged

knative-prow-robot merged 13 commits into
knative:masterfrom
rafaeltello:proberhack

Conversation

@rafaeltello

@rafaeltello rafaeltello commented Jan 26, 2021 •

Copy link
Copy Markdown
Contributor

Part of #4283
Fixes #10856

Proposed Changes

  • Adds h2c auto-detection support in health prober. If the feature is enabled, it will include h2c connection upgrade headers upon connection, and if it succeeds, will use h2c.
  • Creates a new (disabled) feature flag, and wires context to health prober
  • Unit test to validate both enabled and disabled behavior.

Release Note

NONE.

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 26, 2021
@google-cla google-cla Bot added the cla: yes Indicates the PR's author has signed the CLA. label Jan 26, 2021
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 26, 2021
@knative-prow-robot knative-prow-robot added area/API API objects and controllers area/autoscale area/networking area/test-and-release It flags unit/e2e/conformance/perf test issues for product features labels Jan 26, 2021
@codecov

codecov Bot commented Jan 26, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #10628 (c64f744) into master (b039ea5) will decrease coverage by 0.09%.
The diff coverage is 74.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10628      +/-   ##
==========================================
- Coverage   88.03%   87.93%   -0.10%     
==========================================
  Files         188      188              
  Lines        9041     9093      +52     
==========================================
+ Hits         7959     7996      +37     
- Misses        830      839       +9     
- Partials      252      258       +6     
Impacted Files Coverage Δ
cmd/queue/main.go 0.51% <0.00%> (ø)
pkg/reconciler/revision/resources/queue.go 100.00% <ø> (ø)
pkg/apis/config/features.go 94.11% <66.66%> (+0.36%) ⬆️
pkg/queue/health/probe.go 82.71% <76.92%> (-11.04%) ⬇️
pkg/queue/readiness/probe.go 100.00% <100.00%> (ø)
pkg/autoscaler/statforwarder/forwarder.go 90.74% <0.00%> (-5.56%) ⬇️
pkg/autoscaler/statforwarder/processor.go 88.88% <0.00%> (-5.56%) ⬇️
pkg/autoscaler/statforwarder/leases.go 78.41% <0.00%> (+1.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b039ea5...5837ab7. Read the comment docs.

@rafaeltello rafaeltello changed the title [WIP] Introduces h2c auto-detection support in health prober Introduces h2c auto-detection support in health prober Jan 26, 2021
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 26, 2021

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

@rafaeltello Thank you for this! One quick question. Is it still not possible to enable the following e2e test?

t.Skip("HTP2 with empty port name is not implemented yet. See: https://github.com/knative/serving/issues/4283")

If it needs to skip yet, could you please describe what follow-up changes will be necessary?

@rafaeltello

Copy link
Copy Markdown
Contributor Author

@rafaeltello Thank you for this! One quick question. Is it still not possible to enable the following e2e test?

t.Skip("HTP2 with empty port name is not implemented yet. See: https://github.com/knative/serving/issues/4283")

If it needs to skip yet, could you please describe what follow-up changes will be necessary?

@nak3 : Thanks! This only covers one half of the feature, which is to ensure the prober works. @igorbelianski is working on the other part, which is the rest of the queue. So while the prober would succeed, attempts to connect would still use http1/1. We plan to enable the E2E test once Igor's change is ready.

@rafaeltello
rafaeltello requested a review from nak3 January 27, 2021 19:24
Comment thread pkg/queue/health/probe.go Resolved
Comment thread pkg/queue/health/probe.go Resolved
Comment thread pkg/queue/health/probe.go Resolved
Comment thread pkg/queue/health/probe.go Resolved
@rafaeltello
rafaeltello requested a review from nak3 January 29, 2021 20:05
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 30, 2021
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 1, 2021
@google-cla

google-cla Bot commented Feb 1, 2021

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla Bot added cla: no Indicates the PR's author has not signed the CLA. and removed cla: yes Indicates the PR's author has signed the CLA. labels Feb 1, 2021
@rafaeltello

Copy link
Copy Markdown
Contributor Author

Hmmmm this does seem like a very bad merge. Let me try to fix this.

@google-cla

google-cla Bot commented Feb 1, 2021

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla

google-cla Bot commented Feb 1, 2021

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@knative-prow-robot knative-prow-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 17, 2021
@tcnghia

tcnghia commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

/test pull-knative-serving-istio-stable-mesh

1 similar comment
@tcnghia

tcnghia commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

/test pull-knative-serving-istio-stable-mesh

@knative-prow-robot

Copy link
Copy Markdown
Contributor

@rafaeltello: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-knative-serving-gloo-0.17.1 d801ef7 link /test pull-knative-serving-gloo-0.17.1
pull-knative-serving-gloo-0.17.1-tls d801ef7 link /test pull-knative-serving-gloo-0.17.1-tls
pull-knative-serving-ambassador-latest-tls d801ef7 link /test pull-knative-serving-ambassador-latest-tls
pull-knative-serving-https d801ef7 link /test pull-knative-serving-https
pull-knative-serving-kong-latest d801ef7 link /test pull-knative-serving-kong-latest
pull-knative-serving-ambassador-latest d801ef7 link /test pull-knative-serving-ambassador-latest
pull-knative-serving-istio-latest-mesh d801ef7 link /test pull-knative-serving-istio-latest-mesh
pull-knative-serving-istio-stable-mesh e3d4e60 link /test pull-knative-serving-istio-stable-mesh

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nak3

nak3 commented Feb 17, 2021 •

Copy link
Copy Markdown
Contributor

Sorry, stable-mesh test is currently broken... knative-extensions/net-istio#517 will fix it but net-istio does not update nightly release. (I am asking the reason in slack https://knative.slack.com/archives/CCSNR4FCH/p1613553558116900)

@mattmoor

Copy link
Copy Markdown
Contributor

I'm excited to see this land, but it is late in the cycle, so let's plan to land this in one week?

/hold

@knative-prow-robot knative-prow-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 17, 2021
@nak3

nak3 commented Feb 24, 2021

Copy link
Copy Markdown
Contributor

@rafaeltello Sorry for bothering you. But could you please rebase this? I think we can merge this now.

@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 26, 2021
@knative-prow-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nak3

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ZhiminXiang

Copy link
Copy Markdown

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 27, 2021
@ZhiminXiang

Copy link
Copy Markdown

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 27, 2021
@knative-prow-robot
knative-prow-robot merged commit 0282521 into knative:master Feb 27, 2021
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. area/API API objects and controllers area/autoscale area/networking area/test-and-release It flags unit/e2e/conformance/perf test issues for product features cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[gRPC/http2 auto-detect] Support auto-detect on the health prober

8 participants