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 created this task.Mar 18 2015, 11:40 AM
Joe claimed this task.
Joe raised the priority of this task from to Unbreak Now!.
Joe updated the task description. (Show Details)
Joe added a subscriber: Joe.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 18 2015, 11:40 AM
Joe added a comment.Mar 18 2015, 11:42 AM

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.

MC8 added a subscriber: MC8.
Joe added a comment.Mar 18 2015, 11:43 AM

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 closed this task as Resolved.Mar 18 2015, 5:11 PM
Joe set Security to None.