Skip to content

Fixes #10815: Warning is logged when v2 xDS is used#10964

Merged
mattklein123 merged 19 commits intoenvoyproxy:masterfrom
dmitri-d:v2-deprecation-warn
May 21, 2020
Merged

Fixes #10815: Warning is logged when v2 xDS is used#10964
mattklein123 merged 19 commits intoenvoyproxy:masterfrom
dmitri-d:v2-deprecation-warn

Conversation

@dmitri-d
Copy link
Copy Markdown
Contributor

Signed-off-by: Dmitri Dolguikh ddolguik@redhat.com

Commit Message: Warning is logged when v2 xDS is used
Additional Description: Fixes #10815
Risk Level: low
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Dmitri Dolguikh added 4 commits April 27, 2020 12:21
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

dmitri-d commented May 1, 2020

  • merged in latest master

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

dmitri-d commented May 4, 2020

ping @yanavlasov

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

  • merged in latest master

@dmitri-d
Copy link
Copy Markdown
Contributor Author

ping @yanavlasov

yanavlasov
yanavlasov previously approved these changes May 14, 2020
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks one small comment.

/wait

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM with small comment, thank you!

/wait

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

  • responded to feedback

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Sorry 2 more things. Thank you!

/wait

"envoy.reloadable_features.strict_authority_validation",
"envoy.reloadable_features.reject_unsupported_transfer_encodings",
// Begin alphabetically sorted section.
"envoy.api.enable_deprecated_warning",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry I should have commented on this before but 2 things:

  1. I think the name of this should be a bit more specific to what it is guarding.
  2. This needs a release note.

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 think the name of this should be a bit more specific to what it is guarding.

Any suggestions? The current name was suggested by @htuch...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

envoy.api.enable_deprecated_v2_api_warning ?

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

  • fixed formatting issues

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

/wait

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

  • fixed merge issue

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

  • Moved the release note into the deprecation section

@dmitri-d
Copy link
Copy Markdown
Contributor Author

Build failure on MacOS is due to a test (//test/integration:http2_integration_test) timeout. Ping @mattklein123.

@mattklein123
Copy link
Copy Markdown
Member

Build failure on MacOS is due to a test (//test/integration:http2_integration_test) timeout. Ping

#11290 cc @alyssawilk

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM without errant change.

/wait

Dmitri Dolguikh added 2 commits May 21, 2020 14:20
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@dmitri-d
Copy link
Copy Markdown
Contributor Author

  • reverted changes to source/extensions/extensions_build_config.bzl
  • merged in master

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit 4408997 into envoyproxy:master May 21, 2020
@dmitri-d dmitri-d deleted the v2-deprecation-warn branch May 21, 2020 23:37
@htuch htuch mentioned this pull request Sep 23, 2020
htuch added a commit to htuch/envoy that referenced this pull request Sep 23, 2020
The earlier PR envoyproxy#10964 added in validation that we're not using v2 xDS
transport, but we didn't have any warning on v2 bootstraps, v2
extension configs inside a v3 config and also for v2 resource types.

This PR adds support for these validations by warning and incrementing
the deprecated feature use stat. The following notifications are added:
* Rate limited warning log
* Trace-level log
* The runtime.deprecated_features is bumped, but only after server
  initialization, so this doesn't apply to bootstrap. This is consistent
  with how other deprecated features are treated today.

Risk level: Medium (it's possible that this will cause monitoring to
alert, the boosting logic is also quite complex).
Testing: Unit tests and server bootstrap tests added.

Fixes envoyproxy#10815

Signed-off-by: Harvey Tuch <htuch@google.com>
htuch added a commit that referenced this pull request Sep 30, 2020
The earlier PR #10964 added in validation that we're not using v2 xDS
transport, but we didn't have any warning on v2 bootstraps, v2
extension configs inside a v3 config and also for v2 resource types.

This PR adds support for these validations by warning and incrementing
the deprecated feature use stat. The following notifications are added:

- Rate limited warning log
- Trace-level log
- The runtime.deprecated_features is bumped, but only after server
  initialization, so this doesn't apply to bootstrap. This is consistent
  with how other deprecated features are treated today.
Risk level: Medium (it's possible that this will cause monitoring to alert, the boosting logic is also quite complex).
Testing: Unit tests and server bootstrap tests added.

Fixes #10815

Signed-off-by: Harvey Tuch <htuch@google.com>
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.

Warn on v2 xDS API use

5 participants