Page MenuHomePhabricator

Icinga config fails on duplicate definition for host 'labs-ns0.wikimedia.org'
Closed, ResolvedPublic

Description

Neon is not updating its icinga config because of this.

Event Timeline

Joe claimed this task.
Joe raised the priority of this task from to Unbreak Now!.
Joe updated the task description. (Show Details)
Joe subscribed.

Turns out this is a duplicate definition because we define it twice in our puppet manifests:

select title, restype, hosts.name, source_files.filename, line  from resources JOIN hosts on host_id = hosts.id JOIN source_files ON resources.source_file_id = source_files.id where title = 'labs-ns0.wikimedia.org';
+------------------------+-------------+------------------------+--------------------------------------------------+------+
| title                  | restype     | name                   | filename                                         | line |
+------------------------+-------------+------------------------+--------------------------------------------------+------+
| labs-ns0.wikimedia.org | Nagios_host | virt1000.wikimedia.org | /etc/puppet/modules/monitoring/manifests/host.pp |   44 |
| labs-ns0.wikimedia.org | Nagios_host | holmium.wikimedia.org  | /etc/puppet/modules/monitoring/manifests/host.pp |   44 |
+------------------------+-------------+------------------------+--------------------------------------------------+------+

as it turns out, the class role::labsdns is the culprit - being included twice (in virt1000 and holmium it defines the resource twice.

This was introduced in change Ibcb3b6a

Change 197517 had a related patch set uploaded (by Andrew Bogott):
Move labs/designate/pdns to ns2.wmflabs.org

https://gerrit.wikimedia.org/r/197517

Change 197517 merged by Andrew Bogott:
Move labs/designate/pdns to ns2.wmflabs.org

https://gerrit.wikimedia.org/r/197517

Joe set Security to None.