Skip to content

rabbitmq_peer_discovery_consul: Set bind_addr to 127.0.0.1 in test config (backport #12858) #12883

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

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Dec 3, 2024

Why

The test configuration was querying a network interface IP address based on its name. However, the name, "eth0", is very specific to Linux. This broke the test on other systems.

How

We still have to set an explicit bind_addr because Consul refuses to start if the host has multiple private IPv4 addresses, as it is the case in CI.

Therefore, we hard-code 127.0.0.1 as the IPv4 address to use because it has a great chance to exist about anywhere.

V2: We abandon the idea of not setting bind_addr because GitHub Actions default hosts have several private IPv4 addresses configured.


This is an automatic backport of pull request #12858 done by Mergify.

…config

[Why]
The test configuration was querying a network interface IP address based
on its name. However, the name, "eth0", is very specific to Linux. This
broke the test on other systems.

[How]
We still have to set an explicit `bind_addr` because Consul refuses to
start if the host has multiple private IPv4 addresses, as it is the case
in CI.

Therefore, we hard-code 127.0.0.1 as the IPv4 address to use because it has a
great chance to exist about anywhere.

(cherry picked from commit 6941e10)
[Why]
It helps diagnose any startup issues. Typically a problem with the
configuration where the log file is not yet created.

(cherry picked from commit b03f0bd)
@dumbbell dumbbell marked this pull request as draft December 3, 2024 12:18
@dumbbell dumbbell marked this pull request as ready for review December 3, 2024 15:12
@dumbbell dumbbell merged commit 69b83bf into v4.0.x Dec 3, 2024
271 checks passed
@dumbbell dumbbell deleted the mergify/bp/v4.0.x/pr-12858 branch December 3, 2024 15:12
@dumbbell dumbbell added this to the 4.0.5 milestone Dec 3, 2024
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.

1 participant