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

fix panic when Connect mesh gateway doesn't have a proxy block #11257

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Oct 4, 2021

When a gateway -> mesh block is set in a service without a proxy block, Nomad is expected to generate a default proxy configuration. This was being done when the group network mode was bridge, but not when it was host, even though that is a supported option.

Without the proxy configuration, Nomad would panic when trying to generate the Consul API request to register the service.

This PR generates the proxy configuration regardless of the network mode. When in bridge, the previous behaviour is preserved. In host, no special configuration is done, so the default Consul behaviour is used.

Closes #11243

.changelog/11257.txt Outdated Show resolved Hide resolved
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
@vercel vercel bot temporarily deployed to Preview – nomad October 4, 2021 19:23 Inactive
@lgfa29 lgfa29 merged commit 6cd62b3 into main Oct 4, 2021
@lgfa29 lgfa29 deleted the fix-gh-11243 branch October 4, 2021 19:52
lgfa29 added a commit that referenced this pull request Oct 4, 2021
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a Consul mesh gateway with host networking mode causes segfault
2 participants