Commit Graph

1516 Commits

Author SHA1 Message Date
Oliver Gorwits
1a21df29e3 testing release 2.035999_008 2017-06-13 07:23:23 +01:00
Oliver Gorwits
f418b1c081 add last_defer stamp to timedoutdevices report 2017-06-13 07:21:31 +01:00
Oliver Gorwits
55cb1371d8 make default to disable retry window 2017-06-13 07:08:30 +01:00
Oliver Gorwits
213df47033 fix fqdn global to use settings instead 2017-06-13 07:04:49 +01:00
Oliver Gorwits
5d4c8ade10 ensure startup message is first 2017-06-13 06:54:13 +01:00
Oliver Gorwits
ef0d326287 retry jobs once per week 2017-06-12 22:31:20 +01:00
Oliver Gorwits
33454669e3 retry jobs on the backend node every 7 days 2017-06-12 13:31:33 +01:00
Oliver Gorwits
2ab77d9ff5 clarify FAQ on cisco stack naming 2017-06-12 13:06:00 +01:00
Oliver Gorwits
647b78534b Revert "device skips should not be used on priority jobs"
We still must respect per backend skipping

This reverts commit 7b9e7f4deb.
2017-06-12 10:42:34 +01:00
Oliver Gorwits
7b9e7f4deb device skips should not be used on priority jobs 2017-06-11 14:45:59 +01:00
Oliver Gorwits
2eb0b30812 do not select pseudo devices for poller jobs 2017-06-06 08:08:52 +01:00
Oliver Gorwits
275e01ff59 include last_defer timestamp when deferring a job 2017-06-06 07:56:50 +01:00
Oliver Gorwits
2ff39d131d reset deferrals counter on successful SNMP connect 2017-06-06 07:04:33 +01:00
Oliver Gorwits
4d0b9542d3 shorten timeout on dns for timeoutdevices report 2017-06-06 06:27:29 +01:00
Oliver Gorwits
f42ab6ff73 also move PID file here 2017-05-31 19:05:16 +01:00
Oliver Gorwits
2a42a1b5a1 default 50 snmp failures 2017-05-30 21:44:19 +01:00
Oliver Gorwits
b0eb652141 testing release 2.035999_007 2017-05-30 21:27:40 +01:00
Oliver Gorwits
585a442b64 move old PID file to new name 2017-05-30 21:23:20 +01:00
Oliver Gorwits
3aa34f12dc add DNS to SNMP Connect Failures report 2017-05-30 21:01:35 +01:00
Oliver Gorwits
a553a86f51 Merge branch 'master' of github.com:netdisco/netdisco 2017-05-30 20:42:25 +01:00
Oliver Gorwits
5d7483ab7b testing release 2.035999_006 2017-05-30 16:03:53 +01:00
Oliver Gorwits
4ada3ee160 fix @_ handling 2017-05-30 13:07:19 +01:00
Oliver Gorwits
271ffa80fd deviceskip only if device defiend 2017-05-30 12:39:11 +01:00
Oliver Gorwits
0b0c6f1e94 testing release 2.035999_005 2017-05-30 12:05:16 +01:00
Oliver Gorwits
574977b6a1 only do device_skip for device jobs 2017-05-30 12:04:22 +01:00
Oliver Gorwits
10ce6402ad strange scoping fix 2017-05-30 12:02:22 +01:00
Oliver Gorwits
540cdef6ff testing release 2.035999_004 2017-05-30 11:40:45 +01:00
Oliver Gorwits
d007d72015 check_acl call fixes 2017-05-30 11:38:34 +01:00
Oliver Gorwits
e0d2517387 quieten links update 2017-05-30 11:31:36 +01:00
Oliver Gorwits
49995a8fa7 minor pod fixup 2017-05-29 17:26:37 +01:00
Oliver Gorwits
b27c4342d6 testing release 2.035999_003 2017-05-29 17:21:16 +01:00
Oliver Gorwits
e0f592d799 reorder release notes 2017-05-29 17:21:08 +01:00
Oliver Gorwits
8aae2d72c0 typo fixup 2017-05-29 17:16:53 +01:00
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
601a943190 update changelog 2017-05-27 16:23:04 +01:00
Oliver Gorwits
234056cb66 testing release 2.035999_002 2017-05-27 15:48:56 +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