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

[dev.icinga.com #10049] State of dependency is wrong (two parents) #3346

Closed
icinga-migration opened this issue Aug 31, 2015 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10049

Created by lbetz on 2015-08-31 11:21:58 +00:00

Assignee: (none)
Status: Rejected (closed on 2015-08-31 15:04:01 +00:00)
Target Version: (none)
Last Update: 2015-09-03 18:25:49 +00:00 (in Redmine)

Icinga Version: 2.3.9
Backport?: Not yet backported
Include in Changelog: 1

Host esx1 has two parents, core1 and core2.

  • core1 UP
  • core2 DOWM
  • esx1 UNREACHABLE !!!

Object 'esx1.icinga-book.local!core1.icinga-book.local' of type 'Dependency':
% declared in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • __name = "esx1.icinga-book.local!core1.icinga-book.local"

  • child_host_name = "esx1.icinga-book.local"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • child_service_name = ""

  • disable_checks = false

  • disable_notifications = true

  • ignore_soft_states = true

  • module = "_etc"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • name = "core1.icinga-book.local"

  • parent_host_name = "core1.icinga-book.local"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 27:3-27:27

  • parent_service_name = ""

  • period = ""

  • states = null

  • templates = [ "core1.icinga-book.local" ]
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • type = "Dependency"

  • vars = null

  • zone = "master"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

Object 'esx1.icinga-book.local!core2.icinga-book.local' of type 'Dependency':
% declared in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • __name = "esx1.icinga-book.local!core2.icinga-book.local"

  • child_host_name = "esx1.icinga-book.local"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • child_service_name = ""

  • disable_checks = false

  • disable_notifications = true

  • ignore_soft_states = true

  • module = "_etc"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • name = "core2.icinga-book.local"

  • parent_host_name = "core2.icinga-book.local"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 27:3-27:27

  • parent_service_name = ""

  • period = ""

  • states = null

  • templates = [ "core2.icinga-book.local" ]
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58

  • type = "Dependency"

  • vars = null

  • zone = "master"
    % = modified in '/etc/icinga2/zones.d/master/hosts.conf', lines 26:1-26:58


Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-08-31 13:54:24 +00:00

  • Duplicates set to 6871

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-08-31 15:04:01 +00:00

  • Status changed from New to Rejected

That works as designed - multiple dependencies don't know about each other, and if one of them fails it renders the child unreachable. Your request sounds a lot like multi-parent dependencies combined with a logical "AND". This is discussed in #6871 - please continue over there and suggest your solution/ideas.

@icinga-migration
Copy link
Author

Updated by mfrosch on 2015-09-01 12:51:49 +00:00

  • Relates set to 10058

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-09-03 16:34:50 +00:00

Coming from #10058, you did not add a small detail - where the host esx1 is supposed to be UP instead of unreachable. Talked with Tom about that in detail.

We will continue about that in #10058, sorry for not asking before. I was under the impression that you're talking about multi-parent dependencies and logical AND.

@icinga-migration
Copy link
Author

Updated by tgelf on 2015-09-03 18:25:49 +00:00

@lbetz: you should have mentioned that esx1 used to be up. Saupreiß ;)

https://www.youtube.com/watch?v=JiY4GLBgc\_U

@icinga-migration icinga-migration added bug Something isn't working Checker labels Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant