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

Log TLS failures when initializing the backend #3690

Merged
merged 4 commits into from
Apr 15, 2020
Merged

Conversation

palourde
Copy link
Contributor

Signed-off-by: Simon Plourde [email protected]

What is this change?

It removes the use of a blocking client when attempting to initialize the backend, in order to have etcd log any TLS error encountered.

See #3663 (comment) for more context.

It also adds a --timeout flag to the sensu-backend init command.

Why is this change necessary?

This is a workaround for #3663. We can probably implement a better solution with a blocking client once this PR is released and etcd is updated to use it.

Does your change need a Changelog entry?

Added

Do you need clarification on anything?

Nope

Were there any complications while making this change?

go-grpc is not easy 😅

Have you reviewed and updated the documentation for this change? Is new documentation required?

Nope

How did you verify this change?

Manually tested.

Is this change a patch?

I'd say so

@palourde palourde requested a review from echlebek April 14, 2020 22:23
@palourde palourde self-assigned this Apr 14, 2020
backend/cmd/init.go Outdated Show resolved Hide resolved
backend/cmd/init.go Outdated Show resolved Hide resolved
@palourde palourde merged commit 1396ce1 into release/5.19 Apr 15, 2020
@palourde palourde deleted the bugfix/init-tls branch April 15, 2020 14:57
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.

2 participants