rabbit_peer_discovery: Pass inetrc config file to temporary hidden node (backport #10759) #10845
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
As shown in #10728, in an IPv6-only environment,
kernel
name resolution must be configured through an inetrc file.The temporary hidden node must be configured exactly like the main node (and all nodes in the cluster in fact) to allow communication. Thus we must pass the same inetrc file to that temporary hidden node. This wasn’t the case before this patch.
How
We query the main node’s kernel to see if there is any inetrc file set and we use the same on the temporary hidden node’s command line.
While here, extract the handling of the
proto_dist
module from the TLS code. This parameter may be used outside of TLS like this IPv6-only environment.Fixes #10728.
This is an automatic backport of pull request #10759 done by Mergify.