Page MenuHomePhabricator

Netbox Coherence Report enhancements
Open, MediumPublic

Description

hostname starts with future-, or contains -spare and state is active, is a failure.

Details

Related Gerrit Patches:
operations/software/netbox-reports : mastercoherence: Alert on ACTIVE devices with names future- or spare.

Event Timeline

crusnov created this task.Nov 5 2019, 9:16 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 5 2019, 9:16 PM
crusnov triaged this task as Medium priority.Nov 5 2019, 9:16 PM

Change 550051 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/netbox-reports@master] coherence: Alert on ACTIVE devices with names future- or spare.

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

Some discussion occurred on the CR. Should we detect future and spare anywhere in the hostname? I was under the impression that this is not normal nor should we entrench it as a standard practice by checking for it. (The case of spare being inside the hostname turned out to be, essentially, in error afair).

Opinions?

I think the general consensus is "spare" or "future" anywhere in the hostname is an error if the host is ACTIVE in netbox.

Not sure if it can be considered in scope for this task as the title is pretty generic.
Another check we need is to ensure that the hostname part of some DNS names matches the device name, in particular:

  • primary_ip4
  • primary_ip6
  • mgmt ip address

We have cases of host renames that leftover some inconsistency there.
With the soon-to-be DNS autogenerated from Netbox data those errors should surface pretty quickly before going into prod, but probably better to have the check anyway.
Thoughts?