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 #8256] Restart fails after deleting a Host #2538

Closed
icinga-migration opened this issue Jan 20, 2015 · 10 comments
Closed

[dev.icinga.com #8256] Restart fails after deleting a Host #2538

icinga-migration opened this issue Jan 20, 2015 · 10 comments
Labels
area/cli Command line helpers bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by aledermueller on 2015-01-20 12:04:20 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-01-20 12:20:04 +00:00)
Target Version: 2.2.4
Last Update: 2015-03-07 15:32:14 +00:00 (in Redmine)

Icinga Version: v2.2.0-311-gc29c11c
Backport?: Already backported

Hi,

After deleting an Icinga2 Agent and its configuration (zone, endpoint, host and service configuration) on the master, icinga2 doesn't restart.

information/cli: Icinga application loader (version: v2.2.0-311-gc29c11c)
information/cli: Loading application type: icinga/IcingaApplication
information/Utility: Loading library 'libicinga.so'
information/ConfigCompiler: Compiling config file: /etc/icinga2/icinga2.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/constants.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/zones.conf
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/itl
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/plugins
information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/api.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/checker.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/command.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/compatlog.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/mainlog.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/notification.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/statusdata.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/apt.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/commands.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/downtimes.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/groups.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/hosts.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/notifications.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/satellite.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/services.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/timeperiods.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/users.conf
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command.conf
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command-icinga.conf
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/timeperiod.conf
information/Utility: Loading library 'libchecker.so'
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command-plugins.conf
information/Utility: Loading library 'libcompat.so'
information/Utility: Loading library 'libcompat.so'
information/Utility: Loading library 'libmethods.so'
information/Utility: Loading library 'libcompat.so'
information/Utility: Loading library 'libnotification.so'
information/ConfigCompiler: Compiling config file: /etc/icinga2/zones.d/master/templates.conf
information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/vagrant-debian642.adm.netways.de/net-http netways.org.conf
information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/vagrant-debian642.adm.netways.de/net-http rakuten.de.conf
information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/vagrant-debian642.adm.netways.de/vagrant-debian642.adm.netways.de.conf
information/ConfigItem: Committing config items
information/ApiListener: My API identity: vagrant-debian64.adm.netways.de
critical/config: Error: Invalid value: Object 'vagrant-debian642.adm.netways.de' (Type: 'Host') at /var/lib/icinga2/api/zones/vagrant-debian642.adm.netways.de/vagrant-debian642.adm.netways.de.conf:13 -> Key zone: Object 'vagrant-debian642.adm.netways.de' of type 'Zone' does not exist.
critical/config: Error: Invalid value: Object 'net-http netways.org' (Type: 'Service') at /var/lib/icinga2/api/zones/vagrant-debian642.adm.netways.de/net-http netways.org.conf:13 -> Key zone: Object 'vagrant-debian642.adm.netways.de' of type 'Zone' does not exist.
critical/config: Error: Invalid value: Object 'net-http rakuten.de' (Type: 'Service') at /var/lib/icinga2/api/zones/vagrant-debian642.adm.netways.de/net-http rakuten.de.conf:13 -> Key zone: Object 'vagrant-debian642.adm.netways.de' of type 'Zone' does not exist.

Changesets

2015-01-20 12:18:40 +00:00 by gbeutner 3102783

Make sure we don't include zones.d directories for zones which were removed

fixes #8256

2015-01-29 13:21:47 +00:00 by gbeutner 43ba7fa

Make sure we don't include zones.d directories for zones which were removed

fixes #8256

2015-02-07 22:41:43 +00:00 by mfriedrich 21f86b9

Fix authoritative zones in config sync

fixes #8388
refs #8256

2015-02-07 22:47:37 +00:00 by mfriedrich 4989199

Fix authoritative zones in config sync

fixes #8388
refs #8256

Relations:

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-20 12:05:05 +00:00

  • Category set to CLI

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-20 12:19:22 +00:00

  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.3.0

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-20 12:20:04 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 3102783.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-29 13:21:56 +00:00

  • Target Version changed from 2.3.0 to 2.2.4
  • Backport? set to Yes

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-07 22:37:06 +00:00

  • Relates set to 6863

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-07 22:45:14 +00:00

  • Target Version changed from 2.2.4 to 243

There seems to be a copy-paste error - the '.authoritative' file was never created but the '.timestamp' file overridden, if the zone is marked as authoritative. See #8388

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-07 22:45:53 +00:00

  • Target Version changed from 243 to 2.2.4

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-07 22:46:22 +00:00

  • Relates set to 8388

@icinga-migration
Copy link
Author

Updated by aledermueller on 2015-03-06 12:37:34 +00:00

Hi,

with icinga 2.2.4 i get the same error.

$ icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: v2.2.4)

startup.log:

information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/net-dashboard.xxx.de/bareos_fd.conf
information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/net-dashboard.xxx.de/dhcp.conf
information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/net-dashboard.xxx.de/disk.conf
information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/net-dashboard.xxx.de/net-dashboard.adm.netways.de.conf
information/ConfigCompiler: Compiling config file: /var/lib/icinga2/api/zones/net-dashboard.xxx.de/ntp.conf
information/ConfigItem: Committing config items
critical/config:
Config error: Invalid value for attribute: Object 'bareos FD' (Type: 'Service') at /var/lib/icinga2/api/zones/net-dashboard.xxx.de/bareos_fd.conf:13 -> Attribute 'zone': Object 'net-dashboard.xxx.de' of type 'Zone' does not exist.
critical/config:
Config error: Invalid value for attribute: Object 'dhcplease' (Type: 'Service') at /var/lib/icinga2/api/zones/net-dashboard.xxx.de/dhcp.conf:13 -> Attribute 'zone': Object 'net-dashboard.xxx.de' of type 'Zone' does not exist.
critical/config:
Config error: Invalid value for attribute: Object 'ntp' (Type: 'Service') at /var/lib/icinga2/api/zones/net-dashboard.xxx.de/ntp.conf:13 -> Attribute 'zone': Object 'net-dashboard.xxx.de' of type 'Zone' does not exist.
critical/config:
Config error: Invalid value for attribute: Object 'disk' (Type: 'Service') at /var/lib/icinga2/api/zones/net-dashboard.xxx.de/disk.conf:13 -> Attribute 'zone': Object 'net-dashboard.xxx.de' of type 'Zone' does not exist.
critical/config: 4 errors, 0 warnings.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-03-07 15:32:14 +00:00

Most likely related to my fix in #8388 targetting 2.3.0 now.

@icinga-migration icinga-migration added bug Something isn't working area/cli Command line helpers labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.2.4 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Command line helpers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant