Commit Graph

590 Commits

Author SHA1 Message Date
Oliver Gorwits
efe669c0e6 support list or dict for device_identity 2017-05-29 16:11:39 +01:00
Oliver Gorwits
5daf1805c7 rename prime_skiplist to warm_thrusters 2017-05-28 18:48:58 +01:00
Oliver Gorwits
9ac2662182 add option to disable max_deferrals 2017-05-28 09:31:57 +01:00
Oliver Gorwits
666e0a593d fix only lookup fqdn once 2017-05-28 09:30:27 +01:00
Oliver Gorwits
5f58cfbbe5 change device_identity to be list of mappings 2017-05-28 09:14:08 +01:00
Oliver Gorwits
eb56364d98 add note on SNMP Connect Failure tracking 2017-05-27 16:26:31 +01:00
Oliver Gorwits
edcce0cfae tidy release notes 2017-05-27 16:24:50 +01:00
Oliver Gorwits
c7c4c47fa0 update release notes 2017-05-27 15:46:50 +01:00
Oliver Gorwits
f8d75442e6 add documentation for device_identity 2017-05-27 15:04:38 +01:00
Oliver Gorwits
c4598df24b remove implicit op:and from device_identity lhs check 2017-05-27 12:28:34 +01:00
Oliver Gorwits
60a00efea5 add documentation for host_groups 2017-05-27 11:01:21 +01:00
Oliver Gorwits
02b168ff9c update plugin-writing docs for site_local_files setting 2017-05-27 10:04:05 +01:00
Oliver Gorwits
6932b13013 add max_deferrals documentation and other doc fixes 2017-05-27 09:30:04 +01:00
Oliver Gorwits
9a72d7e74a Avoid lock/defer of jobs deined via ACL
This commit adds a table 'device_skip' that is used to restrict job queue
searches to avoid jobs that are not permitted on this backend via *_no ACLs,
or jobs on devices that have previously encountered multiple SNMP timeouts.

When the backend loads or a device is added, a row is added to the table if
that device should not be polled on this backend (together with the job
actions which are to be skipped/denied). When a device SNMP connect fails a
counter in the same row (or a new row) is incremented.

There is also a new report 'SNMP Connect Failures' to show the devices with
non-zero SNMP connect failure counters. A configurable limit in the setting
'max_deferrals' is used to set the threshold of no longer polling the device.

To reset the deferrals/failures count, restart the Netdisco backend (which
regenerates 'device_skip' cache entries).

Squashed commit of the following:

commit b5e32c219d
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 20:55:14 2017 +0100

    show all failed connections in report

commit ffce3cee84
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 20:12:39 2017 +0100

    only resolve fqdn once

commit cc4f680f01
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 20:10:20 2017 +0100

    Revert "only resolve fqdn once"

    This reverts commit 3d136a54de.

commit d8d082b30e
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 20:09:05 2017 +0100

    a report to show SNMP failures

commit 3d136a54de
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 19:37:58 2017 +0100

    only resolve fqdn once

commit 4550b8a84c
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 17:27:43 2017 +0100

    skipover now implicit from deferrals/actionset; fix sql where logic with better correlation

commit b51edbccd2
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 16:11:29 2017 +0100

    only abort lock if action matches badactions

commit 415559b24f
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 13:56:42 2017 +0100

    set skipover true when adding to actionset

commit 1086f2c467
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 13:50:56 2017 +0100

    fix empty actionset

commit 31962580b8
Merge: 9b2e993e 6808133b
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 13:25:08 2017 +0100

    Merge branch 'og-device_skip' of github.com:netdisco/netdisco into og-device_skip

commit 6808133bdb
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 13:19:54 2017 +0100

    in-job checks for acls are required for netdisco-do foreground actions

commit 3944dd7813
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 13:18:30 2017 +0100

    avoid extra device lookup

commit 9b2e993e0f
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 12:31:36 2017 +0100

    also delete device_skip rows when deleting device

commit b55854e91d
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 11:34:27 2017 +0100

    actions in device_skip table are now an array/set

commit 5e126eef07
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 09:36:33 2017 +0100

    typo

commit 44266f2767
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 09:14:25 2017 +0100

    *able checks within jobs should not be necessary with skiplist

commit e7c22e7d11
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 08:58:57 2017 +0100

    increment deferrals field when job is deferred

commit 88ae9c00ba
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 08:40:27 2017 +0100

    turn connect fail into defer

commit eac1857043
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 23 08:26:59 2017 +0100

    rename failures column to be deferrals

commit 96ed444bbb
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon May 22 22:52:51 2017 +0100

    set up list of jobs the backend instance should skip

commit 3a0019296d
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon May 22 22:01:50 2017 +0100

    separate out is_*able last_* checks

commit cf8589aba2
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun May 21 22:35:38 2017 +0100

    change from ignore to skip name

commit ed193356f8
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun May 21 14:52:33 2017 +0100

    device_ignore table to track devices to skip in polling
2017-05-27 08:50:08 +01:00
Oliver Gorwits
47a5f40efe bug fix 2017-05-20 16:15:56 +01:00
Oliver Gorwits
da04522199 add site_local_files feature for easy lib/template override 2017-05-14 21:12:19 +01:00
Oliver Gorwits
824ec751e2 efficiency gains in set_canonical_ip 2017-05-14 20:50:03 +01:00
Oliver Gorwits
3816aad829 support for device identity steering via device_identity 2017-05-12 20:19:04 +01:00
Oliver Gorwits
849e0ddfd9 support Netdisco device_ip instances in match thing 2017-05-12 19:22:58 +01:00
Oliver Gorwits
5e55c60ee8 fail safe on _no acl matching 2017-05-12 18:25:57 +01:00
Oliver Gorwits
4df2bc45ea use check_acl for dns->no acl 2017-05-10 21:13:03 +01:00
Oliver Gorwits
156f2abfa7 docs fixes for new acl handling 2017-05-10 20:58:33 +01:00
Oliver Gorwits
762ce952d1 tidy up calls to check_{node|device}_{no|only} to use only check_acl* 2017-05-10 18:54:38 +01:00
Oliver Gorwits
95598b5468 basic implementation of named acls (need to tidy up calls to check_acl) 2017-05-07 13:34:21 +01:00
Oliver Gorwits
2c41b2925d template_paths config to allow easier override of web templates 2017-05-06 17:59:50 +01:00
Oliver Gorwits
d0472a9ddf #309 missing Device Port VLAN Mismatch CSV template 2017-05-06 16:50:34 +01:00
Oliver Gorwits
d74ccac4f6 rename *-daemon apps to be *-backend
Squashed commit of the following:

commit 39b438aa4b
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 16:40:11 2017 +0100

    add release notes

commit ca4ea90d35
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 16:32:06 2017 +0100

    update distmeta

commit 4e35b904b0
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 16:30:22 2017 +0100

    rename files from Daemon to Backend

commit 86a605ba68
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 16:26:43 2017 +0100

    rename daemon to backend in code

commit ffe8fc180f
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 16:15:57 2017 +0100

    add daemon files which exec to backend equivalents

commit 53e041594e
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 15:32:49 2017 +0100

    rename netdisco-daemon to netdisco-backend
2017-05-06 16:40:48 +01:00
Oliver Gorwits
03f41f1177 Enhance the ACL options to include AND and negation
Squashed commit of the following:

commit 7673f3ee1e
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 14:19:19 2017 +0100

    allow check_acl to accept Device or NetAddr::IP instance

commit c31059bc01
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 14:19:00 2017 +0100

    update docs

commit deaeab2670
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 14:18:27 2017 +0100

    SNMP only stanza has access to full check_acl features

commit 4a44fa5863
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon May 1 18:49:38 2017 +0100

    add AND operator and negation support to ACLs
2017-05-06 15:16:04 +01:00
Oliver Gorwits
3654468913 Add SSL development library to Release Notes 2017-04-29 16:28:19 +01:00
Oliver Gorwits
67f067fdb2 Add SSL development library to OS base requirements install doc 2017-04-29 09:28:50 +01:00
Oliver Gorwits
645289248e Add note to docs about reinstall after OS upgrade 2017-04-29 09:08:44 +01:00
Oliver Gorwits
c182beeebf update docs for new oui and mib urls 2017-04-27 07:53:21 +01:00
Oliver Gorwits
3ec84161ae New report for Port VLAN Mismatches (M. Bernstein) 2017-04-25 12:26:09 +01:00
Oliver Gorwits
ff4c999836 Fix for relocated DB schema files 2017-04-25 10:36:18 +01:00
Oliver Gorwits
48cb6dd4c1 Fix DB schema files location with Module::Build 2017-04-24 12:41:15 +01:00
Christian Ramseyer
0737914af5 Fix potential Postgres insert failure (#306)
Some devices can contain random non-utf8 data in syscontact and syslocation,
making the insert fail with "ERROR:  invalid byte sequence for encoding "UTF8"
on discovery. Work around this with Encode::decode.
2017-04-21 20:20:36 +01:00
Oliver Gorwits
a9f01aaa54 reindex DB (I did not realise this was being indexed! oof.) 2017-04-19 22:16:13 +01:00
Oliver Gorwits
608d1b86b2 #298 NXOS SSHCollector and note in docs about VRFs 2017-04-19 21:48:45 +01:00
Oliver Gorwits
d1a7761fda #302 Device searching now searches on module serial numbers 2017-04-19 21:30:47 +01:00
Oliver Gorwits
d23b32500f relocate repo files so ND2 is the only code 2017-04-14 23:08:55 +01:00