Skip to content

Fix TAP validation mode#15932

Merged
snowp merged 15 commits intoenvoyproxy:mainfrom
davinci26:fix-validation-mode
Apr 20, 2021
Merged

Fix TAP validation mode#15932
snowp merged 15 commits intoenvoyproxy:mainfrom
davinci26:fix-validation-mode

Conversation

@davinci26
Copy link
Member

Commit Message:

Signed-off-by: Sotiris Nanopoulos sonanopo@microsoft.com

Fixes #15902

Issue

The regression is coming from e7a0f7c

The root of the issue is that in order to generate the warning regarding using Admin tapping with UDS sockets we request the socket from the admin interface. This throws for the config_validation admin instance.

Resolution

Add a private function to validation admin interface that initializes a dummy socket and this code passes.

Risk Level: Low (validation mode only)
Testing: Added config tests
Docs Changes: N/A
Release Notes: Fix an issue that causes TAP sockets to panic during config validation mode.

Sotiris Nanopoulos added 4 commits April 12, 2021 13:37
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@davinci26
Copy link
Member Author

@snowp do you want to do the review since you were involved in the issue? Otherwise I can bring in someone else

@davinci26 davinci26 requested a review from snowp April 12, 2021 20:57
@davinci26
Copy link
Member Author

cc @mattklein123 who added the warning on Tap

Sotiris Nanopoulos added 2 commits April 12, 2021 17:17
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@davinci26 davinci26 changed the title Fix validation mode Fix TAP validation mode Apr 13, 2021
Copy link
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

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

Thanks, just a few questions

Sotiris Nanopoulos added 2 commits April 13, 2021 21:25
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@davinci26
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #15932 (comment) was created by @davinci26.

see: more, trace.

@wrowe
Copy link
Contributor

wrowe commented Apr 15, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #15932 (comment) was created by @wrowe.

see: more, trace.

Sotiris Nanopoulos added 2 commits April 15, 2021 09:11
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@davinci26
Copy link
Member Author

Attempting to pick up main again. Honestly I do not see how this change might have broken the example verification.

@davinci26
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #15932 (comment) was created by @davinci26.

see: more, trace.

@davinci26
Copy link
Member Author

@snowp it took me some time fighting the CI but I expect it to pass now

Copy link
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

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

Thanks this looks code overall, just some small comments

Comment on lines +16 to +18
* active http health checks: properly handles HTTP/2 GOAWAY frames from the upstream. Previously a GOAWAY frame due to a graceful listener drain could cause improper failed health checks due to streams being refused by the upstream on a connection that is going away. To revert to old GOAWAY handling behavior, set the runtime feature `envoy.reloadable_features.health_check.graceful_goaway_handling` to false.
* adaptive concurrency: fixed a bug where concurrent requests on different worker threads could update minRTT back-to-back.
* buffer: tighten network connection read and write buffer high watermarks in preparation to more careful enforcement of read limits. Buffer high-watermark is now set to the exact configured value; previously it was set to value + 1.
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like bad merge, can you sort this out?

@snowp snowp added the waiting label Apr 19, 2021
Sotiris Nanopoulos added 4 commits April 19, 2021 15:41
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
snowp
snowp previously approved these changes Apr 20, 2021
Copy link
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Unfortunately I think you need another main merge

Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@snowp snowp merged commit 6b8a898 into envoyproxy:main Apr 20, 2021
mum4k pushed a commit to envoyproxy/nighthawk that referenced this pull request Apr 27, 2021
- Sync .bazelrc from Envoy's repository.
- other necessary files were syncd but unchanged in envoy.
- The constructor of Envoy::Server::ValidationAdmin now requires an instance of Envoy::Network::Address::InstanceConstSharedPtr, but a nullptr shared_ptr is valid (envoyproxy/envoy#15932)

Also updated some formatting/language in MAINTAINERS.md, which wasn't rendering as intended in markdown.

Signed-off-by: Nathan Perry <nbperry@google.com>
gokulnair pushed a commit to gokulnair/envoy that referenced this pull request May 6, 2021
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Gokul Nair <gnair@twitter.com>
wjuan-AFK pushed a commit to wjuan-AFK/nighthawk that referenced this pull request May 11, 2021
- Sync .bazelrc from Envoy's repository.
- other necessary files were syncd but unchanged in envoy.
- The constructor of Envoy::Server::ValidationAdmin now requires an instance of Envoy::Network::Address::InstanceConstSharedPtr, but a nullptr shared_ptr is valid (envoyproxy/envoy#15932)

Also updated some formatting/language in MAINTAINERS.md, which wasn't rendering as intended in markdown.

Signed-off-by: Nathan Perry <nbperry@google.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.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.

panic: not implemented from --mode validate

3 participants