-
Notifications
You must be signed in to change notification settings - Fork 581
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
Child host becomes unreachable in redundant group when parent is unreachable #10014
Comments
Hello Jose! Does just Web mis-indicate the reachability or the Icinga 2 API, too? Best, |
Hi Alexander, in the icinga2 console I get the following (output snipped): <1> => get_host("poc_child") { __name = "poc_child" check_attempt = 1.000000 check_command = "dummy" check_interval = 300.000000 last_check_result = { active = true command = "dummy" exit_status = 0.000000 output = "Check was successful." previous_hard_state = 99.000000 vars_after = { attempt = 1.000000 reachable = false ◄◄◄◄◄◄◄◄◄◄◄◄◄◄◄◄ state = 0.000000 state_type = 1.000000 } vars_before = { attempt = 1.000000 reachable = true state = 0.000000 state_type = 1.000000 } } last_reachable = false ◄◄◄◄◄◄◄◄◄◄◄◄◄◄◄◄ } Best regards |
poc_child indeed seems to misbehave, but only after yet another check of itself after poc_grand_parent is down. |
Yes, that is right, you have to check the services several times to reproduce the issue. The test presented is a bit contrived to show the behavior, but in the real world you get the issue in a more natural way. Regards. |
I'm also able to reproduce this with just a single check now on the child. |
Just checked the code to understand the behavior, but for another reason, and noticed the cause for this issue. |
Describe the bug
Dear community,
unless I am misunderstanding something, redundant groups does not work as expected.
Consider the following setup:
poc_parent_0
has a classical dependency withpoc_grand_parent
.poc_child
has a redundant dependency withpoc_parent_0
andpoc_parent_1
The issue is as follows: when
poc_grand_parent
becomes down,poc_parent_0
becomes unreachable (as usual), butpoc_child
also, which is unexpected.To Reproduce
Consider the following setup:
Expected behavior
The expected behavior is that
poc_child
host remains reachable despite of the state ofpoc_grand_parent
.Screenshots
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
):icinga2 feature list
):The text was updated successfully, but these errors were encountered: